| Index: chrome/browser/intents/web_intents_util.cc
|
| diff --git a/chrome/browser/intents/web_intents_util.cc b/chrome/browser/intents/web_intents_util.cc
|
| index 5eeaf85500db9ff975a30eb47406f11d9808b1d6..1d419a962886b4b04868e3c865cebf092d842f9e 100644
|
| --- a/chrome/browser/intents/web_intents_util.cc
|
| +++ b/chrome/browser/intents/web_intents_util.cc
|
| @@ -11,6 +11,7 @@
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/ui/browser.h"
|
| #include "chrome/browser/ui/browser_list.h"
|
| +#include "chrome/common/chrome_switches.h"
|
| #include "chrome/common/pref_names.h"
|
| #include "chrome/common/url_constants.h"
|
| #include "content/public/common/content_switches.h"
|
| @@ -63,7 +64,8 @@ void RegisterUserPrefs(PrefService* user_prefs) {
|
| }
|
|
|
| bool IsWebIntentsEnabled(PrefService* prefs) {
|
| - return prefs->GetBoolean(prefs::kWebIntentsEnabled);
|
| + return CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kWebIntentsInvocationEnabled);
|
| }
|
|
|
| bool IsWebIntentsEnabledForProfile(Profile* profile) {
|
|
|