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

Unified Diff: content/renderer/web_intents_host.cc

Issue 10829210: Set the device name as isolated file system name. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/web_intents_host.cc
diff --git a/content/renderer/web_intents_host.cc b/content/renderer/web_intents_host.cc
index 9f23ac0253b9fa3132af7dcc774458ed4b23a067..9c60da3529fcf5f99ced41035fcc56b57fa0142a 100644
--- a/content/renderer/web_intents_host.cc
+++ b/content/renderer/web_intents_host.cc
@@ -174,8 +174,6 @@ void WebIntentsHost::DidClearWindowObject(WebFrame* frame) {
const GURL origin = GURL(frame->document().securityOrigin().toString());
const GURL root_url =
fileapi::GetFileSystemRootURI(origin, fileapi::kFileSystemTypeIsolated);
- const std::string fsname =
- fileapi::GetIsolatedFileSystemName(origin, intent_->filesystem_id);
const std::string url = base::StringPrintf(
"%s%s/%s/",
root_url.spec().c_str(),
@@ -186,7 +184,7 @@ void WebIntentsHost::DidClearWindowObject(WebFrame* frame) {
// remove this hack.
v8::Handle<v8::Value> filesystem_V8 = frame->createSerializableFileSystem(
WebKit::WebFileSystem::TypeIsolated,
- WebKit::WebString::fromUTF8(fsname),
+ WebKit::WebString::fromUTF8(intent_->root_name),
WebKit::WebString::fromUTF8(url));
WebSerializedScriptValue serialized_data =
WebSerializedScriptValue::serialize(filesystem_V8);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698