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

Unified Diff: ui/base/win/shell.cc

Issue 2870263002: Rename ScopedComPtr::Receive to ScopedComPtr::GetAddressOf (Closed)
Patch Set: Rebase to 2a6f440 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 | « ui/base/dragdrop/os_exchange_data_win_unittest.cc ('k') | ui/gfx/font_fallback_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/win/shell.cc
diff --git a/ui/base/win/shell.cc b/ui/base/win/shell.cc
index d6a98dfabe828b86886312a3071f2d4f85b28e2c..0cace9bb1ce42b1e7e665e4095a0e4e7a70452a6 100644
--- a/ui/base/win/shell.cc
+++ b/ui/base/win/shell.cc
@@ -104,8 +104,8 @@ bool PreventWindowFromPinning(HWND hwnd) {
return false;
base::win::ScopedComPtr<IPropertyStore> pps;
- if (FAILED(SHGetPropertyStoreForWindow(hwnd,
- IID_PPV_ARGS(pps.Receive()))))
+ if (FAILED(
+ SHGetPropertyStoreForWindow(hwnd, IID_PPV_ARGS(pps.GetAddressOf()))))
return false;
return base::win::SetBooleanValueForPropertyStore(
@@ -127,8 +127,8 @@ void SetAppDetailsForWindow(const base::string16& app_id,
return;
base::win::ScopedComPtr<IPropertyStore> pps;
- if (FAILED(SHGetPropertyStoreForWindow(hwnd,
- IID_PPV_ARGS(pps.Receive()))))
+ if (FAILED(
+ SHGetPropertyStoreForWindow(hwnd, IID_PPV_ARGS(pps.GetAddressOf()))))
return;
if (!app_id.empty())
@@ -181,8 +181,8 @@ void ClearWindowPropertyStore(HWND hwnd) {
return;
base::win::ScopedComPtr<IPropertyStore> pps;
- if (FAILED(SHGetPropertyStoreForWindow(hwnd,
- IID_PPV_ARGS(pps.Receive()))))
+ if (FAILED(
+ SHGetPropertyStoreForWindow(hwnd, IID_PPV_ARGS(pps.GetAddressOf()))))
return;
DWORD property_count;
« no previous file with comments | « ui/base/dragdrop/os_exchange_data_win_unittest.cc ('k') | ui/gfx/font_fallback_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698