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

Unified Diff: chrome/browser/media_gallery/media_galleries_preferences.cc

Issue 10911242: make media gallery directory tooltips in media gallery config dialog absolute paths (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 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/media_gallery/media_galleries_preferences.cc
diff --git a/chrome/browser/media_gallery/media_galleries_preferences.cc b/chrome/browser/media_gallery/media_galleries_preferences.cc
index 37434199a3b63ae0e27c914c461b0a41a6ff98a5..9c1eed68b2ec8b7d7a8de190d778c5ea6e2648fe 100644
--- a/chrome/browser/media_gallery/media_galleries_preferences.cc
+++ b/chrome/browser/media_gallery/media_galleries_preferences.cc
@@ -124,6 +124,11 @@ MediaGalleryPrefInfo::MediaGalleryPrefInfo()
}
MediaGalleryPrefInfo::~MediaGalleryPrefInfo() {}
+FilePath MediaGalleryPrefInfo::AbsolutePath() const {
+ FilePath base_path = MediaStorageUtil::FindDevicePathById(device_id);
+ return base_path.Append(path);
+}
+
MediaGalleriesPreferences::MediaGalleriesPreferences(Profile* profile)
: profile_(profile) {
// Populate the default galleries if this is a fresh profile.

Powered by Google App Engine
This is Rietveld 408576698