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

Unified Diff: chrome/browser/intents/web_intents_util.cc

Issue 11410040: Delete WebUI for web intents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Return value from flag for profile disablement Created 8 years, 1 month 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
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) {
« no previous file with comments | « chrome/browser/intents/web_intents_registry.h ('k') | chrome/browser/resources/options/content_settings.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698