Chromium Code Reviews| 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) |