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

Unified Diff: chrome/browser/metrics/thread_watcher.cc

Issue 7301009: Removed unnecessary call to initialize the COM library (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 | « chrome/browser/metrics/thread_watcher.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/thread_watcher.cc
===================================================================
--- chrome/browser/metrics/thread_watcher.cc (revision 90773)
+++ chrome/browser/metrics/thread_watcher.cc (working copy)
@@ -649,12 +649,6 @@
// This thread shouldn't be allowed to perform any blocking disk I/O.
base::ThreadRestrictions::SetIOAllowed(false);
-#if defined(OS_WIN)
- // Initializes the COM library on the current thread.
- HRESULT result = CoInitialize(NULL);
- CHECK(result == S_OK);
-#endif
-
base::AutoLock lock(lock_);
CHECK(!watchdog_thread_);
watchdog_thread_ = this;
@@ -664,11 +658,3 @@
base::AutoLock lock(lock_);
watchdog_thread_ = NULL;
}
-
-void WatchDogThread::CleanUpAfterMessageLoopDestruction() {
-#if defined(OS_WIN)
- // Closes the COM library on the current thread. CoInitialize must be balanced
- // by a corresponding call to CoUninitialize.
- CoUninitialize();
-#endif
-}
« no previous file with comments | « chrome/browser/metrics/thread_watcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698