diff options
author | dcheng <dcheng@chromium.org> | 2014-11-12 16:48:56 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-13 00:49:52 +0000 |
commit | db3aefa5b23c8849848c3cdc817e46d666a1836c (patch) | |
tree | 548bff43524b903c302cc7521b4ee9cfdf64be12 /ui/base/win | |
parent | 8c6ae495cf2dd5117d0d209c25169710c491f992 (diff) | |
download | chromium_src-db3aefa5b23c8849848c3cdc817e46d666a1836c.zip chromium_src-db3aefa5b23c8849848c3cdc817e46d666a1836c.tar.gz chromium_src-db3aefa5b23c8849848c3cdc817e46d666a1836c.tar.bz2 |
Remove implicit conversions from scoped_refptr to T* in ui/
This patch was generated by running the rewrite_scoped_refptr clang tool
on a Windows build.
BUG=110610
Review URL: https://codereview.chromium.org/721983002
Cr-Commit-Position: refs/heads/master@{#303941}
Diffstat (limited to 'ui/base/win')
-rw-r--r-- | ui/base/win/shell.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ui/base/win/shell.cc b/ui/base/win/shell.cc index 91eaf93..60c3ac5 100644 --- a/ui/base/win/shell.cc +++ b/ui/base/win/shell.cc @@ -75,7 +75,7 @@ bool PreventWindowFromPinning(HWND hwnd) { return false; return base::win::SetBooleanValueForPropertyStore( - pps, PKEY_AppUserModel_PreventPinning, true); + pps.get(), PKEY_AppUserModel_PreventPinning, true); } // TODO(calamity): investigate moving this out of the UI thread as COM @@ -95,18 +95,19 @@ void SetAppDetailsForWindow(const base::string16& app_id, hwnd, __uuidof(*pps), reinterpret_cast<void**>(pps.Receive())); if (S_OK == result) { if (!app_id.empty()) - base::win::SetAppIdForPropertyStore(pps, app_id.c_str()); + base::win::SetAppIdForPropertyStore(pps.get(), app_id.c_str()); if (!app_icon.empty()) { base::win::SetStringValueForPropertyStore( - pps, PKEY_AppUserModel_RelaunchIconResource, app_icon.c_str()); + pps.get(), PKEY_AppUserModel_RelaunchIconResource, app_icon.c_str()); } if (!relaunch_command.empty()) { base::win::SetStringValueForPropertyStore( - pps, PKEY_AppUserModel_RelaunchCommand, relaunch_command.c_str()); + pps.get(), PKEY_AppUserModel_RelaunchCommand, + relaunch_command.c_str()); } if (!relaunch_display_name.empty()) { base::win::SetStringValueForPropertyStore( - pps, PKEY_AppUserModel_RelaunchDisplayNameResource, + pps.get(), PKEY_AppUserModel_RelaunchDisplayNameResource, relaunch_display_name.c_str()); } } |