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

Unified Diff: chrome/browser/chromeos/login/owner_settings_service_factory.h

Issue 270663002: Implemented profile-aware owner key loading. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes. 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/chromeos/login/owner_settings_service_factory.h
diff --git a/chrome/browser/chromeos/login/owner_settings_service_factory.h b/chrome/browser/chromeos/login/owner_settings_service_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..8759ef72f328eed16b74b19b48a58a5f4ee5495e
--- /dev/null
+++ b/chrome/browser/chromeos/login/owner_settings_service_factory.h
@@ -0,0 +1,46 @@
+// 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_CHROMEOS_LOGIN_OWNER_SETTINGS_SERVICE_FACTORY_H_
+#define CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_SETTINGS_SERVICE_FACTORY_H_
+
+#include "base/compiler_specific.h"
+#include "base/macros.h"
+#include "base/memory/singleton.h"
+#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
+
+class KeyedService;
+class Profile;
+
+namespace chromeos {
+
+class OwnerSettingsService;
+
+class OwnerSettingsServiceFactory : public BrowserContextKeyedServiceFactory {
+ public:
+ static OwnerSettingsService* GetForProfile(Profile* profile);
+
+ static OwnerSettingsServiceFactory* GetInstance();
+
+ private:
+ friend struct DefaultSingletonTraits<OwnerSettingsServiceFactory>;
+
+ OwnerSettingsServiceFactory();
+ virtual ~OwnerSettingsServiceFactory();
+
+ static KeyedService* BuildInstanceFor(content::BrowserContext* context);
+
+ // BrowserContextKeyedBaseFactory overrides:
+ virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE;
+
+ // BrowserContextKeyedServiceFactory implementation:
+ virtual KeyedService* BuildServiceInstanceFor(
+ content::BrowserContext* browser_context) const OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(OwnerSettingsServiceFactory);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_SETTINGS_SERVICE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698