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

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

Issue 19489006: Media Galleries: Move gallery name generation back to StorageMonitor. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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
Index: chrome/browser/extensions/api/system_info_storage/storage_info_provider.cc
===================================================================
--- chrome/browser/extensions/api/system_info_storage/storage_info_provider.cc (revision 213035)
+++ chrome/browser/extensions/api/system_info_storage/storage_info_provider.cc (working copy)
@@ -27,9 +27,9 @@
void BuildStorageUnitInfo(const chrome::StorageInfo& info,
StorageUnitInfo* unit) {
- unit->id = StorageInfoProvider::Get()->GetTransientIdForDeviceId(
- info.device_id());
- unit->name = UTF16ToUTF8(info.name());
+ unit->id =
+ StorageInfoProvider::Get()->GetTransientIdForDeviceId(info.device_id());
+ unit->name = base::UTF16ToUTF8(info.GetDisplayName(false));
// TODO(hmin): Might need to take MTP device into consideration.
unit->type = chrome::StorageInfo::IsRemovableDevice(info.device_id()) ?
STORAGE_UNIT_TYPE_REMOVABLE : STORAGE_UNIT_TYPE_FIXED;

Powered by Google App Engine
This is Rietveld 408576698