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

Unified Diff: chrome/browser/search/hotword_service_factory.cc

Issue 289063012: [Hotword] Add error message display back in. Add error messages for NaCl. Add metrics for errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android compile error Created 6 years, 7 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/search/hotword_service_factory.cc
diff --git a/chrome/browser/search/hotword_service_factory.cc b/chrome/browser/search/hotword_service_factory.cc
index ba1d669806cdf8c55c6067584dec43bec0a000c1..6cc494948981ce9506e75323086ab028342a2083 100644
--- a/chrome/browser/search/hotword_service_factory.cc
+++ b/chrome/browser/search/hotword_service_factory.cc
@@ -44,9 +44,11 @@ bool HotwordServiceFactory::IsHotwordAllowed(BrowserContext* context) {
}
// static
-bool HotwordServiceFactory::RetryHotwordExtension(Profile* profile) {
- HotwordService* hotword_service = GetForProfile(profile);
- return hotword_service && hotword_service->RetryHotwordExtension();
+int HotwordServiceFactory::GetCurrentError(BrowserContext* context) {
+ HotwordService* hotword_service = GetForProfile(context);
+ if (!hotword_service)
+ return 0;
+ return hotword_service->error_message();
}
HotwordServiceFactory::HotwordServiceFactory()

Powered by Google App Engine
This is Rietveld 408576698