Commit ee95b719 authored by cpu@google.com's avatar cpu@google.com

Remove COM initialization from renderer

- Renderers should not use COM

TEST= existing tests suffice
BUG= 11205

Review URL: http://codereview.chromium.org/99230

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14983 0039d316-1c4b-4281-b951-d872f2087c98
parent ad6da855
...@@ -4,8 +4,6 @@ ...@@ -4,8 +4,6 @@
#include "chrome/renderer/renderer_main_platform_delegate.h" #include "chrome/renderer/renderer_main_platform_delegate.h"
#include <objbase.h>
#include "base/command_line.h" #include "base/command_line.h"
#include "chrome/common/chrome_constants.h" #include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_switches.h" #include "chrome/common/chrome_switches.h"
...@@ -22,11 +20,11 @@ RendererMainPlatformDelegate::~RendererMainPlatformDelegate() { ...@@ -22,11 +20,11 @@ RendererMainPlatformDelegate::~RendererMainPlatformDelegate() {
} }
void RendererMainPlatformDelegate::PlatformInitialize() { void RendererMainPlatformDelegate::PlatformInitialize() {
CoInitialize(NULL); // Be mindful of what resources you acquire here. They can be used by
// malicious code if the renderer gets compromised.
} }
void RendererMainPlatformDelegate::PlatformUninitialize() { void RendererMainPlatformDelegate::PlatformUninitialize() {
CoUninitialize();
} }
bool RendererMainPlatformDelegate::InitSandboxTests(bool no_sandbox) { bool RendererMainPlatformDelegate::InitSandboxTests(bool no_sandbox) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment