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

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

Issue 23727009: Cleanup: Remove chrome namespace for storage monitor and media galleries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nit Created 7 years, 3 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
Index: chrome/browser/extensions/api/system_storage/storage_info_provider.cc
diff --git a/chrome/browser/extensions/api/system_storage/storage_info_provider.cc b/chrome/browser/extensions/api/system_storage/storage_info_provider.cc
index fd4208b7ad67a80788b4c73172120b283a5e70b0..0c1abf196565ef5a3cc053bc5cad2299b15f250a 100644
--- a/chrome/browser/extensions/api/system_storage/storage_info_provider.cc
+++ b/chrome/browser/extensions/api/system_storage/storage_info_provider.cc
@@ -14,20 +14,19 @@
namespace extensions {
using content::BrowserThread;
-using chrome::StorageMonitor;
using api::system_storage::StorageUnitInfo;
using api::system_storage::STORAGE_UNIT_TYPE_FIXED;
using api::system_storage::STORAGE_UNIT_TYPE_REMOVABLE;
namespace systeminfo {
-void BuildStorageUnitInfo(const chrome::StorageInfo& info,
+void BuildStorageUnitInfo(const StorageInfo& info,
StorageUnitInfo* unit) {
unit->id = StorageMonitor::GetInstance()->GetTransientIdForDeviceId(
info.device_id());
unit->name = UTF16ToUTF8(info.name());
// TODO(hmin): Might need to take MTP device into consideration.
- unit->type = chrome::StorageInfo::IsRemovableDevice(info.device_id()) ?
+ unit->type = StorageInfo::IsRemovableDevice(info.device_id()) ?
STORAGE_UNIT_TYPE_REMOVABLE : STORAGE_UNIT_TYPE_FIXED;
unit->capacity = static_cast<double>(info.total_size_in_bytes());
}
@@ -77,11 +76,11 @@ bool StorageInfoProvider::QueryInfo() {
void StorageInfoProvider::GetAllStoragesIntoInfoList() {
info_.clear();
- std::vector<chrome::StorageInfo> storage_list =
+ std::vector<StorageInfo> storage_list =
StorageMonitor::GetInstance()->GetAllAvailableStorages();
- std::vector<chrome::StorageInfo>::const_iterator it = storage_list.begin();
- for (; it != storage_list.end(); ++it) {
+ 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);

Powered by Google App Engine
This is Rietveld 408576698