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_) { |