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

Unified Diff: chrome/browser/storage_monitor/media_storage_util.h

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/storage_monitor/media_storage_util.h
diff --git a/chrome/browser/storage_monitor/media_storage_util.h b/chrome/browser/storage_monitor/media_storage_util.h
index baa1b19be7db923166a195f4cdd304ea19137971..6f1a5bbdcf3c140badfd4586373b34f54b5740b2 100644
--- a/chrome/browser/storage_monitor/media_storage_util.h
+++ b/chrome/browser/storage_monitor/media_storage_util.h
@@ -43,6 +43,11 @@ class MediaStorageUtil {
StorageInfo* device_info,
base::FilePath* relative_path);
+ // Get a display name for the given |absolute_path|.
+ // Return empty string if there is no corresponding storage device.
+ static string16 GetGalleryDisplayNameFromPath(
+ const base::FilePath& absolute_path);
+
// Get a base::FilePath for the given |device_id|. If the device isn't a mass
// storage type, the base::FilePath will be empty. This does not check that
// the device is connected.

Powered by Google App Engine
This is Rietveld 408576698