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

Unified Diff: chrome/browser/extensions/api/media_gallery/media_gallery_api.cc

Issue 10713007: Make isolated file system works for a device root (e.g. X:\\) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 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/media_gallery/media_gallery_api.cc
diff --git a/chrome/browser/extensions/api/media_gallery/media_gallery_api.cc b/chrome/browser/extensions/api/media_gallery/media_gallery_api.cc
index 9485eb59d4e8a06480c5af4919b5b6bf30500882..7e46ee16e847275c47634231b44597cd3de7420d 100644
--- a/chrome/browser/extensions/api/media_gallery/media_gallery_api.cc
+++ b/chrome/browser/extensions/api/media_gallery/media_gallery_api.cc
@@ -43,13 +43,13 @@ bool GetMediaFileSystemsFunction::RunImpl() {
filesystems[i];
const std::string& fsid = fsid_and_path.first;
const FilePath& path = fsid_and_path.second;
- const std::string basepath_utf8(path.BaseName().AsUTF8Unsafe());
base::DictionaryValue* dict_value = new base::DictionaryValue();
dict_value->SetWithoutPathExpansion(
"fsid", Value::CreateStringValue(fsid));
+ // The directory name is not exposed to the js layer.
dict_value->SetWithoutPathExpansion(
- "dirname", Value::CreateStringValue(basepath_utf8));
+ "dirname", Value::CreateStringValue("_"));
list->Append(dict_value);
content::ChildProcessSecurityPolicy* policy =
« no previous file with comments | « chrome/browser/extensions/api/file_system/file_system_api.cc ('k') | chrome/browser/extensions/platform_app_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698