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

Unified Diff: chrome/browser/media_galleries/media_file_system_registry.cc

Issue 120303003: [StorageMonitor] Move gallery name generation to StorageInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 7 years 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/media_galleries/media_file_system_registry.cc
diff --git a/chrome/browser/media_galleries/media_file_system_registry.cc b/chrome/browser/media_galleries/media_file_system_registry.cc
index eef446cf8cccf9a79fe6efa2d8cf155b69e89d43..e05eae6b48d9e19790626c1a3ecc3b188e191842 100644
--- a/chrome/browser/media_galleries/media_file_system_registry.cc
+++ b/chrome/browser/media_galleries/media_file_system_registry.cc
@@ -326,7 +326,8 @@ class ExtensionGalleriesHost
continue;
MediaFileSystemInfo new_entry(
- gallery_info.GetGalleryDisplayName(),
+ MediaStorageUtil::GetGalleryDisplayNameFromPath(
+ gallery_info.AbsolutePath()),
path,
fsid,
pref_id,

Powered by Google App Engine
This is Rietveld 408576698