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

Unified Diff: chrome/browser/media_gallery/media_file_system_registry.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
« no previous file with comments | « no previous file | chrome/browser/media_gallery/media_galleries_preferences.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media_gallery/media_file_system_registry.cc
diff --git a/chrome/browser/media_gallery/media_file_system_registry.cc b/chrome/browser/media_gallery/media_file_system_registry.cc
index f999209c99d31cec1acdb51c7c573e771cc5dd9f..62121d03d10f8e56cc1a045e191fac2e32eea33d 100644
--- a/chrome/browser/media_gallery/media_file_system_registry.cc
+++ b/chrome/browser/media_gallery/media_file_system_registry.cc
@@ -293,10 +293,9 @@ class ExtensionGalleriesHost
continue;
}
- FilePath path = MediaStorageUtil::FindDevicePathById(device_id);
- if (path.empty())
+ FilePath path = gallery_info.AbsolutePath();
+ if (!path.IsAbsolute())
continue;
- path = path.Append(gallery_info.path);
std::string fsid;
if (MediaStorageUtil::IsMassStorageDevice(device_id)) {
« no previous file with comments | « no previous file | chrome/browser/media_gallery/media_galleries_preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698