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

Unified Diff: components/storage_monitor/portable_device_watcher_win.cc

Issue 2824773002: Rename ScopedComPtr::get() to ScopedComPtr::Get() (Closed)
Patch Set: Update to 5293966 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/utility/importer/ie_importer_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 1fa2e2320f5f6f38bce1e36d6186343422afb58a..44d2885277c3fb0959bcc97734f86c13ab127bf1 100644
--- a/components/storage_monitor/portable_device_watcher_win.cc
+++ b/components/storage_monitor/portable_device_watcher_win.cc
@@ -158,7 +158,7 @@ bool SetUp(const base::string16& pnp_device_id,
return false;
}
- hr = (*device)->Open(pnp_device_id.c_str(), client_info.get());
+ hr = (*device)->Open(pnp_device_id.c_str(), client_info.Get());
if (SUCCEEDED(hr))
return true;
@@ -231,13 +231,13 @@ bool GetObjectUniqueId(IPortableDevice* device,
base::win::ScopedComPtr<IPortableDeviceValues> properties_values;
if (FAILED(properties->GetValues(object_id.c_str(),
- properties_to_read.get(),
+ properties_to_read.Get(),
properties_values.Receive()))) {
return false;
}
REFPROPERTYKEY key = GetUniqueIdPropertyKey(object_id);
- return GetStringPropertyValue(properties_values.get(), key, unique_id);
+ return GetStringPropertyValue(properties_values.Get(), key, unique_id);
}
// Constructs the device storage unique identifier using |device_serial_num| and
@@ -336,18 +336,18 @@ bool GetDeviceStorageObjectsOnBlockingThread(
return false;
base::string16 device_serial_num;
- if (!GetObjectUniqueId(device.get(), WPD_DEVICE_OBJECT_ID,
+ if (!GetObjectUniqueId(device.Get(), WPD_DEVICE_OBJECT_ID,
&device_serial_num)) {
return false;
}
PortableDeviceWatcherWin::StorageObjectIDs storage_obj_ids;
- if (!GetRemovableStorageObjectIds(device.get(), &storage_obj_ids))
+ if (!GetRemovableStorageObjectIds(device.Get(), &storage_obj_ids))
return false;
for (PortableDeviceWatcherWin::StorageObjectIDs::const_iterator id_iter =
storage_obj_ids.begin(); id_iter != storage_obj_ids.end(); ++id_iter) {
base::string16 storage_persistent_id;
- if (!GetObjectUniqueId(device.get(), *id_iter, &storage_persistent_id))
+ if (!GetObjectUniqueId(device.Get(), *id_iter, &storage_persistent_id))
continue;
std::string device_storage_id;
@@ -423,7 +423,7 @@ bool EnumerateAttachedDevicesOnBlockingThread(
for (DWORD index = 0; index < pnp_device_count; ++index) {
PortableDeviceWatcherWin::DeviceDetails device_details;
- if (GetDeviceInfoOnBlockingThread(portable_device_mgr.get(),
+ if (GetDeviceInfoOnBlockingThread(portable_device_mgr.Get(),
pnp_device_ids[index], &device_details))
devices->push_back(device_details);
CoTaskMemFree(pnp_device_ids[index]);
@@ -446,7 +446,7 @@ bool HandleDeviceAttachedEventOnBlockingThread(
// Sometimes, portable device manager doesn't have the new device details.
// Refresh the manager device list to update its details.
portable_device_mgr->RefreshDeviceList();
- return GetDeviceInfoOnBlockingThread(portable_device_mgr.get(), pnp_device_id,
+ return GetDeviceInfoOnBlockingThread(portable_device_mgr.Get(), pnp_device_id,
device_details);
}
« no previous file with comments | « chrome/utility/importer/ie_importer_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