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

Unified Diff: extensions/browser/api/system_storage/storage_info_provider.cc

Issue 1842953002: [Extensions] Convert APIs to use movable types [13] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « extensions/browser/api/system_storage/storage_info_provider.h ('k') | extensions/common/api/serial.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/system_storage/storage_info_provider.cc
diff --git a/extensions/browser/api/system_storage/storage_info_provider.cc b/extensions/browser/api/system_storage/storage_info_provider.cc
index d6758dd54e11c7d07e8cfa1d199649b9c0a35220..7943b892f31cec263046d4462f62a6b5ae624ea5 100644
--- a/extensions/browser/api/system_storage/storage_info_provider.cc
+++ b/extensions/browser/api/system_storage/storage_info_provider.cc
@@ -47,10 +47,6 @@ StorageInfoProvider::StorageInfoProvider() {
StorageInfoProvider::~StorageInfoProvider() {
}
-const StorageUnitInfoList& StorageInfoProvider::storage_unit_info_list() const {
- return info_;
-}
-
void StorageInfoProvider::InitializeForTesting(
scoped_refptr<StorageInfoProvider> provider) {
DCHECK(provider.get() != NULL);
@@ -86,9 +82,9 @@ void StorageInfoProvider::GetAllStoragesIntoInfoList() {
for (std::vector<StorageInfo>::const_iterator it = storage_list.begin();
it != storage_list.end();
++it) {
- linked_ptr<StorageUnitInfo> unit(new StorageUnitInfo());
- systeminfo::BuildStorageUnitInfo(*it, unit.get());
- info_.push_back(unit);
+ StorageUnitInfo unit;
+ systeminfo::BuildStorageUnitInfo(*it, &unit);
+ info_.push_back(std::move(unit));
}
}
« no previous file with comments | « extensions/browser/api/system_storage/storage_info_provider.h ('k') | extensions/common/api/serial.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698