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

Unified Diff: chrome/browser/ui/views/frame/browser_window_property_manager_browsertest_win.cc

Issue 2830893004: Migrate IID Coupled Uses of ScopedComPtr::ReceiveVoid() to IID_PPV_ARGS (Closed)
Patch Set: Created 3 years, 8 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 | « chrome/browser/metrics/antivirus_metrics_provider_win.cc ('k') | chrome/browser/win/jumplist_updater.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_window_property_manager_browsertest_win.cc
diff --git a/chrome/browser/ui/views/frame/browser_window_property_manager_browsertest_win.cc b/chrome/browser/ui/views/frame/browser_window_property_manager_browsertest_win.cc
index 699c1a2b4251fa936ff06106962b10960c05b809..2b1914540a1e8e596ef33ffab438a0d47eb41d1e 100644
--- a/chrome/browser/ui/views/frame/browser_window_property_manager_browsertest_win.cc
+++ b/chrome/browser/ui/views/frame/browser_window_property_manager_browsertest_win.cc
@@ -2,13 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <string>
-
+#include <objbase.h>
#include <shlobj.h> // Must be before propkey.
#include <propkey.h>
#include <shellapi.h>
#include <stddef.h>
+#include <string>
+
#include "base/command_line.h"
#include "base/macros.h"
#include "base/strings/string16.h"
@@ -61,8 +62,7 @@ void ValidateBrowserWindowProperties(
HWND hwnd = views::HWNDForNativeWindow(browser->window()->GetNativeWindow());
base::win::ScopedComPtr<IPropertyStore> pps;
- HRESULT result = SHGetPropertyStoreForWindow(hwnd, IID_IPropertyStore,
- pps.ReceiveVoid());
+ HRESULT result = SHGetPropertyStoreForWindow(hwnd, IID_PPV_ARGS(&pps));
EXPECT_TRUE(SUCCEEDED(result));
base::win::ScopedPropVariant prop_var;
@@ -105,8 +105,7 @@ void ValidateHostedAppWindowProperties(const Browser* browser,
HWND hwnd = views::HWNDForNativeWindow(browser->window()->GetNativeWindow());
base::win::ScopedComPtr<IPropertyStore> pps;
- HRESULT result =
- SHGetPropertyStoreForWindow(hwnd, IID_IPropertyStore, pps.ReceiveVoid());
+ HRESULT result = SHGetPropertyStoreForWindow(hwnd, IID_PPV_ARGS(&pps));
EXPECT_TRUE(SUCCEEDED(result));
base::win::ScopedPropVariant prop_var;
« no previous file with comments | « chrome/browser/metrics/antivirus_metrics_provider_win.cc ('k') | chrome/browser/win/jumplist_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698