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

Unified Diff: chrome_frame/urlmon_url_request.cc

Issue 11050009: Use ScopedCOMInitializer in more places. While this doesn't always simplify code, it does mean we … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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
Index: chrome_frame/urlmon_url_request.cc
===================================================================
--- chrome_frame/urlmon_url_request.cc (revision 159813)
+++ chrome_frame/urlmon_url_request.cc (working copy)
@@ -1455,9 +1455,9 @@
}
void UrlmonUrlRequestManager::ResourceFetcherThread::Init() {
- CoInitialize(NULL);
+ com_initializer_.reset(new base::win::ScopedCOMInitializer());
}
void UrlmonUrlRequestManager::ResourceFetcherThread::CleanUp() {
- CoUninitialize();
+ com_initializer_.reset();
}

Powered by Google App Engine
This is Rietveld 408576698