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

Unified Diff: net/url_request/url_request_unittest.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: net/url_request/url_request_unittest.cc
===================================================================
--- net/url_request/url_request_unittest.cc (revision 159813)
+++ net/url_request/url_request_unittest.cc (working copy)
@@ -64,6 +64,7 @@
#include "testing/platform_test.h"
#if defined(OS_WIN)
+#include "base/win/scoped_com_initializer.h"
#include "base/win/windows_version.h"
#endif
@@ -702,7 +703,7 @@
std::wstring lnk_path = app_path.value() + L".lnk";
- CoInitialize(NULL);
+ base::win::ScopedCOMInitializer com_initializer_;
Ryan Sleevi 2012/10/03 12:50:43 nit: naming
// Temporarily create a shortcut for test
IShellLink* shell = NULL;
@@ -751,7 +752,6 @@
// Clean the shortcut
DeleteFile(lnk_path.c_str());
- CoUninitialize();
}
#endif // defined(OS_WIN)

Powered by Google App Engine
This is Rietveld 408576698