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

Unified Diff: chrome/browser/extensions/api/system_info_storage/test_storage_info_provider.cc

Issue 18290002: [SystemInfo API] Finish TODOs in SystemInfoProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dev_rewrite_storage_info_api
Patch Set: Pass chromeos unit_tests Created 7 years, 5 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/browser/extensions/api/system_info_storage/test_storage_info_provider.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/system_info_storage/test_storage_info_provider.cc
diff --git a/chrome/browser/extensions/api/system_info_storage/test_storage_info_provider.cc b/chrome/browser/extensions/api/system_info_storage/test_storage_info_provider.cc
index 884bbf22d1d05fa98d490b6fe3023c78303c56d1..f90d2e1e5ccfcac59cc50249486b4450634d7652 100644
--- a/chrome/browser/extensions/api/system_info_storage/test_storage_info_provider.cc
+++ b/chrome/browser/extensions/api/system_info_storage/test_storage_info_provider.cc
@@ -40,18 +40,16 @@ chrome::StorageInfo TestStorageInfoProvider::BuildStorageInfo(
return info;
}
-bool TestStorageInfoProvider::QueryInfo(extensions::StorageInfo* info) {
- info->clear();
+void TestStorageInfoProvider::GetAllStoragesIntoInfoList() {
+ info_.clear();
for (size_t i = 0; i < testing_data_.size(); ++i) {
linked_ptr<StorageUnitInfo> unit(new StorageUnitInfo());
unit->id = testing_data_[i].transient_id;
unit->name = testing_data_[i].name;
unit->type = ParseStorageUnitType(testing_data_[i].type);
unit->capacity = testing_data_[i].capacity;
- unit->available_capacity = testing_data_[i].available_capacity;
- info->push_back(unit);
+ info_.push_back(unit);
}
- return true;
}
std::vector<chrome::StorageInfo>
« no previous file with comments | « chrome/browser/extensions/api/system_info_storage/test_storage_info_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698