| Index: content/browser/intents/intent_injector.cc
|
| ===================================================================
|
| --- content/browser/intents/intent_injector.cc (revision 119305)
|
| +++ content/browser/intents/intent_injector.cc (working copy)
|
| @@ -66,8 +66,8 @@
|
| // like it might be racy, though.
|
| void IntentInjector::SendIntent() {
|
| if (source_intent_.get() == NULL ||
|
| - CommandLine::ForCurrentProcess()->HasSwitch(
|
| - switches::kDisableWebIntents) ||
|
| + !CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kEnableWebIntents) ||
|
| web_contents()->GetRenderViewHost() == NULL) {
|
| return;
|
| }
|
| @@ -90,7 +90,7 @@
|
|
|
| void IntentInjector::OnReply(webkit_glue::WebIntentReplyType reply_type,
|
| const string16& data) {
|
| - if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableWebIntents))
|
| + if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableWebIntents))
|
| NOTREACHED();
|
|
|
| if (intents_dispatcher_) {
|
|
|