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

Unified Diff: base/test/test_shortcut_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 | « no previous file | base/win/scoped_comptr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/test_shortcut_win.cc
diff --git a/base/test/test_shortcut_win.cc b/base/test/test_shortcut_win.cc
index ef07da604fc2c223dabc5151d52a02e61aefb39c..e226734172239efbfc41b6c0095864dc0213d855 100644
--- a/base/test/test_shortcut_win.cc
+++ b/base/test/test_shortcut_win.cc
@@ -67,7 +67,8 @@ void ValidateShortcut(const base::FilePath& shortcut_path,
if (FAILED(hr))
return;
- EXPECT_TRUE(SUCCEEDED(hr = i_persist_file.QueryFrom(i_shell_link.Get())));
+ EXPECT_TRUE(
+ SUCCEEDED(hr = i_shell_link.CopyTo(i_persist_file.GetAddressOf())));
if (FAILED(hr))
return;
@@ -112,7 +113,8 @@ void ValidateShortcut(const base::FilePath& shortcut_path,
if (GetVersion() >= VERSION_WIN7) {
ScopedComPtr<IPropertyStore> property_store;
- EXPECT_TRUE(SUCCEEDED(hr = property_store.QueryFrom(i_shell_link.Get())));
+ EXPECT_TRUE(
+ SUCCEEDED(hr = i_shell_link.CopyTo(property_store.GetAddressOf())));
if (FAILED(hr))
return;
« no previous file with comments | « no previous file | base/win/scoped_comptr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698