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

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

Issue 9271084: Revert 119306 - Turn web intents build flag on. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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 | « chrome/common/extensions/extension_manifests_unittest.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »
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 65daff0e010daef8cdd99b794d15e3d06b96d432..f61afcae83d1b3bfc93911f9dc6bc57c4a3d8415 100644
--- a/content/browser/intents/intent_injector.cc
+++ b/content/browser/intents/intent_injector.cc
@@ -66,8 +66,8 @@ void IntentInjector::DidNavigateMainFrame(
// like it might be racy, though.
void IntentInjector::SendIntent() {
if (source_intent_.get() == NULL ||
- !CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableWebIntents) ||
+ CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableWebIntents) ||
web_contents()->GetRenderViewHost() == NULL) {
return;
}
@@ -90,7 +90,7 @@ bool IntentInjector::OnMessageReceived(const IPC::Message& message) {
void IntentInjector::OnReply(webkit_glue::WebIntentReplyType reply_type,
const string16& data) {
- if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableWebIntents))
+ if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableWebIntents))
NOTREACHED();
if (intents_dispatcher_) {
« no previous file with comments | « chrome/common/extensions/extension_manifests_unittest.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698