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() |