diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-11-20 10:33:36 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-11-22 11:45:12 +0000 |
commit | be59a35641616a4cf23c4a13fa0632624b021c1b (patch) | |
tree | 9da183258bdf9cc413f7562079d25ace6955467f /chromium/chrome/browser/extensions/api/image_writer_private/removable_storage_provider.h | |
parent | d702e4b6a64574e97fc7df8fe3238cde70242080 (diff) | |
download | qtwebengine-chromium-be59a35641616a4cf23c4a13fa0632624b021c1b.tar.gz |
BASELINE: Update Chromium to 62.0.3202.101
Change-Id: I2d5eca8117600df6d331f6166ab24d943d9814ac
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/chrome/browser/extensions/api/image_writer_private/removable_storage_provider.h')
-rw-r--r-- | chromium/chrome/browser/extensions/api/image_writer_private/removable_storage_provider.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chromium/chrome/browser/extensions/api/image_writer_private/removable_storage_provider.h b/chromium/chrome/browser/extensions/api/image_writer_private/removable_storage_provider.h index 7c6724242e4..5dd00878cfd 100644 --- a/chromium/chrome/browser/extensions/api/image_writer_private/removable_storage_provider.h +++ b/chromium/chrome/browser/extensions/api/image_writer_private/removable_storage_provider.h @@ -19,8 +19,8 @@ typedef RefCountedVector<api::image_writer_private::RemovableStorageDevice> // storage devices class RemovableStorageProvider { public: - typedef base::Callback<void(scoped_refptr<StorageDeviceList>, bool)> - DeviceListReadyCallback; + using DeviceListReadyCallback = + base::OnceCallback<void(scoped_refptr<StorageDeviceList>)>; // Gets the list of all available devices and returns it via callback. static void GetAllDevices(DeviceListReadyCallback callback); @@ -34,8 +34,9 @@ class RemovableStorageProvider { static void ClearDeviceListForTesting(); private: - // Fills the provided empty device list with the available devices. - static bool PopulateDeviceList(scoped_refptr<StorageDeviceList> device_list); + // Returns available list of devices. If there is an error retrieving devices, + // then returns nullptr. + static scoped_refptr<StorageDeviceList> PopulateDeviceList(); }; } // namespace extensions |