Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Unified Diff: chrome/renderer/renderer_main_platform_delegate_win.cc

Issue 99230: Remove COM initialization from renderer... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/renderer_main_platform_delegate_win.cc
===================================================================
--- chrome/renderer/renderer_main_platform_delegate_win.cc (revision 14889)
+++ chrome/renderer/renderer_main_platform_delegate_win.cc (working copy)
@@ -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 @@
}
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) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698