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

Unified Diff: components/storage_monitor/portable_device_watcher_win.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 | « chrome/utility/shell_handler_impl_win.cc ('k') | components/update_client/background_downloader_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/storage_monitor/portable_device_watcher_win.cc
diff --git a/components/storage_monitor/portable_device_watcher_win.cc b/components/storage_monitor/portable_device_watcher_win.cc
index 368c4cf2bfa534d83a1f7db41a193e7bac10a67a..826a2af8ce3a3a70ba3ca1e83c49178c87d8aea4 100644
--- a/components/storage_monitor/portable_device_watcher_win.cc
+++ b/components/storage_monitor/portable_device_watcher_win.cc
@@ -211,14 +211,14 @@ bool GetObjectUniqueId(IPortableDevice* device,
DCHECK(device);
DCHECK(unique_id);
base::win::ScopedComPtr<IPortableDeviceContent> content;
- HRESULT hr = device->Content(content.Receive());
+ HRESULT hr = device->Content(content.GetAddressOf());
if (FAILED(hr)) {
DPLOG(ERROR) << "Failed to get IPortableDeviceContent interface";
return false;
}
base::win::ScopedComPtr<IPortableDeviceProperties> properties;
- hr = content->Properties(properties.Receive());
+ hr = content->Properties(properties.GetAddressOf());
if (FAILED(hr)) {
DPLOG(ERROR) << "Failed to get IPortableDeviceProperties interface";
return false;
@@ -229,9 +229,8 @@ bool GetObjectUniqueId(IPortableDevice* device,
return false;
base::win::ScopedComPtr<IPortableDeviceValues> properties_values;
- if (FAILED(properties->GetValues(object_id.c_str(),
- properties_to_read.Get(),
- properties_values.Receive()))) {
+ if (FAILED(properties->GetValues(object_id.c_str(), properties_to_read.Get(),
+ properties_values.GetAddressOf()))) {
return false;
}
@@ -262,7 +261,7 @@ bool GetRemovableStorageObjectIds(
DCHECK(device);
DCHECK(storage_object_ids);
base::win::ScopedComPtr<IPortableDeviceCapabilities> capabilities;
- HRESULT hr = device->Capabilities(capabilities.Receive());
+ HRESULT hr = device->Capabilities(capabilities.GetAddressOf());
if (FAILED(hr)) {
DPLOG(ERROR) << "Failed to get IPortableDeviceCapabilities interface";
return false;
@@ -270,7 +269,7 @@ bool GetRemovableStorageObjectIds(
base::win::ScopedComPtr<IPortableDevicePropVariantCollection> storage_ids;
hr = capabilities->GetFunctionalObjects(WPD_FUNCTIONAL_CATEGORY_STORAGE,
- storage_ids.Receive());
+ storage_ids.GetAddressOf());
if (FAILED(hr)) {
DPLOG(ERROR) << "Failed to get IPortableDevicePropVariantCollection";
return false;
« no previous file with comments | « chrome/utility/shell_handler_impl_win.cc ('k') | components/update_client/background_downloader_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698