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

Unified Diff: chrome/browser/importer/ie_importer_browsertest_win.cc

Issue 2885063003: Remove ScopedComPtr::QueryFrom() (Closed)
Patch Set: Created 3 years, 7 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 | « base/win/shortcut.cc ('k') | chrome/browser/shell_integration_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/importer/ie_importer_browsertest_win.cc
diff --git a/chrome/browser/importer/ie_importer_browsertest_win.cc b/chrome/browser/importer/ie_importer_browsertest_win.cc
index 211540e083d26ced81dc460ec30b92e346e3255b..d18e6eabeab559e6a695064b02fa92a123ade749 100644
--- a/chrome/browser/importer/ie_importer_browsertest_win.cc
+++ b/chrome/browser/importer/ie_importer_browsertest_win.cc
@@ -175,7 +175,7 @@ bool CreateUrlFileWithFavicon(const base::FilePath& file,
if (FAILED(result))
return false;
base::win::ScopedComPtr<IPersistFile> persist_file;
- result = persist_file.QueryFrom(locator.Get());
+ result = locator.CopyTo(persist_file.GetAddressOf());
if (FAILED(result))
return false;
result = locator->SetURL(url.c_str(), 0);
@@ -185,7 +185,7 @@ bool CreateUrlFileWithFavicon(const base::FilePath& file,
// Write favicon url if specified.
if (!favicon_url.empty()) {
base::win::ScopedComPtr<IPropertySetStorage> property_set_storage;
- if (FAILED(property_set_storage.QueryFrom(locator.Get())))
+ if (FAILED(locator.CopyTo(property_set_storage.GetAddressOf())))
return false;
base::win::ScopedComPtr<IPropertyStorage> property_storage;
if (FAILED(property_set_storage->Open(FMTID_Intshcut, STGM_WRITE,
« no previous file with comments | « base/win/shortcut.cc ('k') | chrome/browser/shell_integration_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698