summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-30 20:11:14 +0000
committercpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-30 20:11:14 +0000
commitee95b719ced3c107e803569440954256f77d98fe (patch)
treed25c1ef78b0d2aeb597efcd84a499b4df3b58679
parentad6da855e4860f681b90e83eaa2da721e7f6011d (diff)
downloadchromium_src-ee95b719ced3c107e803569440954256f77d98fe.zip
chromium_src-ee95b719ced3c107e803569440954256f77d98fe.tar.gz
chromium_src-ee95b719ced3c107e803569440954256f77d98fe.tar.bz2
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
-rw-r--r--chrome/renderer/renderer_main_platform_delegate_win.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/renderer/renderer_main_platform_delegate_win.cc b/chrome/renderer/renderer_main_platform_delegate_win.cc
index a3dd4a5..743fc63 100644
--- a/chrome/renderer/renderer_main_platform_delegate_win.cc
+++ b/chrome/renderer/renderer_main_platform_delegate_win.cc
@@ -4,8 +4,6 @@
#include "chrome/renderer/renderer_main_platform_delegate.h"
-#include <objbase.h>
-
#include "base/command_line.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_switches.h"
@@ -22,11 +20,11 @@ RendererMainPlatformDelegate::~RendererMainPlatformDelegate() {
}
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() {
- CoUninitialize();
}
bool RendererMainPlatformDelegate::InitSandboxTests(bool no_sandbox) {