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

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

Issue 11026070: Add API to construct new vector interchange MIME data type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Switch to switch Created 8 years, 2 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 | content/content_tests.gypi » ('j') | content/renderer/web_intents_host.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/intents/intent_injector.cc
diff --git a/content/browser/intents/intent_injector.cc b/content/browser/intents/intent_injector.cc
index 664576072f74d178c5666772a73fcb13cb243c18..d76cd6449e92fa9d7adecbb033669eb6fd8276b8 100644
--- a/content/browser/intents/intent_injector.cc
+++ b/content/browser/intents/intent_injector.cc
@@ -82,7 +82,9 @@ void IntentInjector::RenderViewCreated(RenderViewHost* render_view_host) {
return;
}
- if (source_intent_->data_type == webkit_glue::WebIntentData::BLOB) {
+ if (source_intent_->data_type == webkit_glue::WebIntentData::BLOB ||
Steve McKay 2012/10/15 19:31:10 The checks are crystal clear, why you are doing th
Greg Billock 2012/10/15 21:01:43 The new WebIntentsHost will grow to accomodate thi
+ (source_intent_->data_type == webkit_glue::WebIntentData::MIME_TYPE &&
+ !source_intent_->blob_file.empty())) {
// Grant read permission on the blob file to the delivered context.
const int child_id = render_view_host->GetProcess()->GetID();
ChildProcessSecurityPolicy* policy =
« no previous file with comments | « no previous file | content/content_tests.gypi » ('j') | content/renderer/web_intents_host.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698