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

Unified Diff: chrome/browser/search/hotword_service.h

Issue 210473002: Merge 258106 "[Hotword] Making enabling/disabling the setting en..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1847/src/
Patch Set: Created 6 years, 9 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
« no previous file with comments | « chrome/browser/extensions/extension_service.cc ('k') | chrome/browser/search/hotword_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/hotword_service.h
===================================================================
--- chrome/browser/search/hotword_service.h (revision 259015)
+++ chrome/browser/search/hotword_service.h (working copy)
@@ -6,8 +6,10 @@
#define CHROME_BROWSER_SEARCH_HOTWORD_SERVICE_H_
#include "base/basictypes.h"
+#include "base/prefs/pref_change_registrar.h"
#include "components/browser_context_keyed_service/browser_context_keyed_service.h"
+class ExtensionService;
class Profile;
namespace hotword_internal {
@@ -44,9 +46,19 @@
// and language.
virtual bool IsHotwordAllowed();
+ // Control the state of the hotword extension.
+ void EnableHotwordExtension(ExtensionService* extension_service);
+ void DisableHotwordExtension(ExtensionService* extension_service);
+
+ // Handles enabling/disabling the hotword extension when the user
+ // turns it off via the settings menu.
+ void OnHotwordSearchEnabledChanged(const std::string& pref_name);
+
private:
Profile* profile_;
+ PrefChangeRegistrar pref_registrar_;
+
DISALLOW_COPY_AND_ASSIGN(HotwordService);
};
« no previous file with comments | « chrome/browser/extensions/extension_service.cc ('k') | chrome/browser/search/hotword_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698