Index: chrome/utility/importer/ie_importer_win.cc |
diff --git a/chrome/utility/importer/ie_importer_win.cc b/chrome/utility/importer/ie_importer_win.cc |
index fdb68abc3be85d1fa60b03346411a2dfe6115c36..d46dbf4abe89a9f56d18287868ecf913bb9ccfb2 100644 |
--- a/chrome/utility/importer/ie_importer_win.cc |
+++ b/chrome/utility/importer/ie_importer_win.cc |
@@ -292,8 +292,9 @@ bool LoadInternetShortcut( |
const base::string16& file, |
base::win::ScopedComPtr<IUniformResourceLocator>* shortcut) { |
base::win::ScopedComPtr<IUniformResourceLocator> url_locator; |
- if (FAILED(url_locator.CreateInstance(CLSID_InternetShortcut, NULL, |
- CLSCTX_INPROC_SERVER))) |
+ if (FAILED(::CoCreateInstance(CLSID_InternetShortcut, NULL, |
+ CLSCTX_INPROC_SERVER, |
+ IID_PPV_ARGS(&url_locator)))) |
return false; |
base::win::ScopedComPtr<IPersistFile> persist_file; |
@@ -509,8 +510,8 @@ void IEImporter::ImportHistory() { |
int total_schemes = arraysize(kSchemes); |
base::win::ScopedComPtr<IUrlHistoryStg2> url_history_stg2; |
- if (FAILED(url_history_stg2.CreateInstance(CLSID_CUrlHistory, NULL, |
- CLSCTX_INPROC_SERVER))) { |
+ if (FAILED(::CoCreateInstance(CLSID_CUrlHistory, NULL, CLSCTX_INPROC_SERVER, |
+ IID_PPV_ARGS(&url_history_stg2)))) { |
return; |
} |
base::win::ScopedComPtr<IEnumSTATURL> enum_url; |