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

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

Issue 10134026: Remove browser from web intents UI code (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Browser test compilation Created 8 years, 8 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
Index: chrome/browser/intents/web_intents_util.h
diff --git a/chrome/browser/intents/web_intents_util.h b/chrome/browser/intents/web_intents_util.h
index 74557f5f72c0cd67c57db8d2f048717b3454f042..cd47ca2768e32a695f6c3ae536a0a313bacc562d 100644
--- a/chrome/browser/intents/web_intents_util.h
+++ b/chrome/browser/intents/web_intents_util.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_INTENTS_WEB_INTENTS_UTIL_H_
#pragma once
+class Profile;
class PrefService;
namespace web_intents {
@@ -13,9 +14,13 @@ namespace web_intents {
// Registers the preferences related to Web Intents.
void RegisterUserPrefs(PrefService* user_prefs);
-// Returns true if Web Intent is enabled due to various factors. |profile| is
-// the current, active Profile.
-bool IsWebIntentsEnabled();
+// Returns true if WebIntents are enabled due to various factors. |profile| is
+// the Profile to check that WebIntents are enabled for.
+bool IsWebIntentsEnabled(Profile* profile);
+
+// Returns true if WebIntents are enabled due to various factors. Check using
+// the profile of the currently active Browser.
+bool IsWebIntentsEnabledInActiveBrowser();
} // namespace web_intents
« no previous file with comments | « chrome/browser/intents/register_intent_handler_helper.cc ('k') | chrome/browser/intents/web_intents_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698