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

Unified Diff: content/browser/intents/intent_injector.cc

Issue 10810053: Enables internal filesystem types via Isolated filesystems (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: content/browser/intents/intent_injector.cc
diff --git a/content/browser/intents/intent_injector.cc b/content/browser/intents/intent_injector.cc
index 06c1a8f5949c26ad8dc167d526b51fa2c449b8df..453d51da7a0f5e49da198e8d9f1f6eb8126b16c7 100644
--- a/content/browser/intents/intent_injector.cc
+++ b/content/browser/intents/intent_injector.cc
@@ -92,16 +92,15 @@ void IntentInjector::RenderViewCreated(RenderViewHost* render_view_host) {
} else if (source_intent_->data_type ==
webkit_glue::WebIntentData::FILESYSTEM) {
const int child_id = render_view_host->GetProcess()->GetID();
- std::vector<fileapi::IsolatedContext::FileInfo> files;
+ FilePath path;
const bool valid =
- fileapi::IsolatedContext::GetInstance()->GetRegisteredFileInfo(
- source_intent_->filesystem_id, &files);
+ fileapi::IsolatedContext::GetInstance()->GetRegisteredPath(
+ source_intent_->filesystem_id, &path);
DCHECK(valid);
- DCHECK_EQ(1U, files.size());
ChildProcessSecurityPolicy* policy =
ChildProcessSecurityPolicy::GetInstance();
- if (!policy->CanReadFile(child_id, files[0].path))
- policy->GrantReadFile(child_id, files[0].path);
+ if (!policy->CanReadFile(child_id, path))
+ policy->GrantReadFile(child_id, path);
policy->GrantReadFileSystem(child_id, source_intent_->filesystem_id);
}

Powered by Google App Engine
This is Rietveld 408576698