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

Unified Diff: chrome/renderer/extensions/media_gallery_custom_bindings.cc

Issue 10827057: Plumb file system name down from MediaFileSystemRegistry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/renderer/extensions/media_gallery_custom_bindings.cc
diff --git a/chrome/renderer/extensions/media_gallery_custom_bindings.cc b/chrome/renderer/extensions/media_gallery_custom_bindings.cc
index 2b8a6d3a8c7233a651abf104443e6697284385b8..61358178a1887ea12d168d162e1cc230e462f46e 100644
--- a/chrome/renderer/extensions/media_gallery_custom_bindings.cc
+++ b/chrome/renderer/extensions/media_gallery_custom_bindings.cc
@@ -47,8 +47,8 @@ v8::Handle<v8::Value> MediaGalleryCustomBindings::GetMediaFileSystemObject(
NOTREACHED();
return v8::Undefined();
}
- std::string dirname(*v8::String::Utf8Value(args[1]));
- if (dirname.empty()) {
+ std::string name(*v8::String::Utf8Value(args[1]));
+ if (name.empty()) {
NOTREACHED();
return v8::Undefined();
}
@@ -57,13 +57,11 @@ v8::Handle<v8::Value> MediaGalleryCustomBindings::GetMediaFileSystemObject(
const GURL origin = GURL(webframe->document().securityOrigin().toString());
const GURL root_url =
fileapi::GetFileSystemRootURI(origin, fileapi::kFileSystemTypeIsolated);
- const std::string fsname = fileapi::GetIsolatedFileSystemName(origin, fsid);
- const std::string url = base::StringPrintf("%s%s/%s/",
+ const std::string url = base::StringPrintf("%s%s/_/",
Lei Zhang 2012/07/30 20:56:32 Hard coding the '_' is a bit hacky. This has to ma
vandebo (ex-Chrome) 2012/07/31 18:27:17 Changed to a constant.
root_url.spec().c_str(),
- fsid.c_str(),
- dirname.c_str());
+ fsid.c_str());
return webframe->createFileSystem(WebKit::WebFileSystem::TypeIsolated,
- WebKit::WebString::fromUTF8(fsname),
+ WebKit::WebString::fromUTF8(name),
WebKit::WebString::fromUTF8(url));
}

Powered by Google App Engine
This is Rietveld 408576698