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

Unified Diff: chrome/browser/ui/app_list/start_page_service_factory.h

Issue 158143002: Fine tuned availability of hotword plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 10 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/ui/app_list/start_page_service_factory.h
diff --git a/chrome/browser/ui/app_list/start_page_service_factory.h b/chrome/browser/ui/app_list/start_page_service_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..01ee036e67a3ec398484af1aa0bc25f4a1e6d502
--- /dev/null
+++ b/chrome/browser/ui/app_list/start_page_service_factory.h
@@ -0,0 +1,42 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_FACTORY_H_
+#define CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_FACTORY_H_
+
+#include "base/memory/singleton.h"
+#include "components/browser_context_keyed_service/browser_context_keyed_service_factory.h"
+
+class Profile;
+
+namespace app_list {
+class StartPageService;
+
+// Singleton factory to create StartPageService.
+class StartPageServiceFactory : public BrowserContextKeyedServiceFactory {
+ public:
+ // Gets or creates the instance of StartPageService for |profile|.
+ static StartPageService* GetForProfile(Profile* profile);
+
+ // Gets the singleton instance of this factory.
+ static StartPageServiceFactory* GetInstance();
+
+ private:
+ friend struct DefaultSingletonTraits<StartPageServiceFactory>;
+
+ StartPageServiceFactory();
+ virtual ~StartPageServiceFactory();
+
+ // BrowserContextKeyedServiceFactory overrides:
+ virtual BrowserContextKeyedService* BuildServiceInstanceFor(
+ content::BrowserContext* context) const OVERRIDE;
+ virtual void RegisterProfilePrefs(
+ user_prefs::PrefRegistrySyncable* registry) OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(StartPageServiceFactory);
+};
+
+} // namespace app_list
+
+#endif // CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_FACTORY_H_
« no previous file with comments | « chrome/browser/ui/app_list/start_page_service.cc ('k') | chrome/browser/ui/app_list/start_page_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698