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

Side by Side Diff: chrome/browser/search/hotword_service.h

Issue 981773003: Remove the flag to disable new hotwording. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SEARCH_HOTWORD_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SEARCH_HOTWORD_SERVICE_H_
6 #define CHROME_BROWSER_SEARCH_HOTWORD_SERVICE_H_ 6 #define CHROME_BROWSER_SEARCH_HOTWORD_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 false, 53 false,
54 callback) {} 54 callback) {}
55 void Shutdown(); 55 void Shutdown();
56 protected: 56 protected:
57 ~HotwordWebstoreInstaller() override {} 57 ~HotwordWebstoreInstaller() override {}
58 }; 58 };
59 59
60 // Returns true if the hotword supports the current system language. 60 // Returns true if the hotword supports the current system language.
61 static bool DoesHotwordSupportLanguage(Profile* profile); 61 static bool DoesHotwordSupportLanguage(Profile* profile);
62 62
63 // Returns true if the "enable-experimental-hotwording" flag is set. 63 // Always returns true.
64 // TODO(amistry): Remove this.
64 static bool IsExperimentalHotwordingEnabled(); 65 static bool IsExperimentalHotwordingEnabled();
65 66
66 explicit HotwordService(Profile* profile); 67 explicit HotwordService(Profile* profile);
67 ~HotwordService() override; 68 ~HotwordService() override;
68 69
69 // Overridden from ExtensionRegisterObserver: 70 // Overridden from ExtensionRegisterObserver:
70 void OnExtensionInstalled(content::BrowserContext* browser_context, 71 void OnExtensionInstalled(content::BrowserContext* browser_context,
71 const extensions::Extension* extension, 72 const extensions::Extension* extension,
72 bool is_update) override; 73 bool is_update) override;
73 void OnExtensionUninstalled(content::BrowserContext* browser_context, 74 void OnExtensionUninstalled(content::BrowserContext* browser_context,
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 220
220 // The WeakPtrFactory should be the last member, so the weak pointer 221 // The WeakPtrFactory should be the last member, so the weak pointer
221 // gets invalidated before the destructors for other members run, 222 // gets invalidated before the destructors for other members run,
222 // to avoid callbacks into a half-destroyed object. 223 // to avoid callbacks into a half-destroyed object.
223 base::WeakPtrFactory<HotwordService> weak_factory_; 224 base::WeakPtrFactory<HotwordService> weak_factory_;
224 225
225 DISALLOW_COPY_AND_ASSIGN(HotwordService); 226 DISALLOW_COPY_AND_ASSIGN(HotwordService);
226 }; 227 };
227 228
228 #endif // CHROME_BROWSER_SEARCH_HOTWORD_SERVICE_H_ 229 #endif // CHROME_BROWSER_SEARCH_HOTWORD_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/hotword_browsertest.cc ('k') | chrome/browser/search/hotword_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698