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

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

Issue 554603002: Fix a browser crash on opening 'chrome://voicesearch' in guest mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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.h
diff --git a/chrome/browser/search/hotword_service_factory.h b/chrome/browser/search/hotword_service_factory.h
index a29aaeb5dfb4de707c04fd481c3aa24acbe15f8d..dd67cfb98892906e78c06c216c87b1e23d6ce1bd 100644
--- a/chrome/browser/search/hotword_service_factory.h
+++ b/chrome/browser/search/hotword_service_factory.h
@@ -58,6 +58,8 @@ class HotwordServiceFactory : public MediaCaptureDevicesDispatcher::Observer,
user_prefs::PrefRegistrySyncable* registry) OVERRIDE;
virtual KeyedService* BuildServiceInstanceFor(
content::BrowserContext* context) const OVERRIDE;
+ virtual content::BrowserContext* GetBrowserContextToUse(
+ content::BrowserContext* context) const OVERRIDE;
// Must be called from the UI thread since the instance of
// MediaCaptureDevicesDispatcher can only be accessed on the UI thread.
« no previous file with comments | « no previous file | chrome/browser/search/hotword_service_factory.cc » ('j') | chrome/browser/search/hotword_service_factory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698