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

Unified Diff: chrome/browser/supervised_user/child_accounts/child_account_service_factory.h

Issue 783083002: Add support for child accounts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove CrOS for now Created 6 years 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/supervised_user/child_accounts/child_account_service_factory.h
diff --git a/chrome/browser/supervised_user/child_accounts/child_account_service_factory.h b/chrome/browser/supervised_user/child_accounts/child_account_service_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..543c0c4057d3c85eeddbbf3d6a919fdd4814bce9
--- /dev/null
+++ b/chrome/browser/supervised_user/child_accounts/child_account_service_factory.h
@@ -0,0 +1,34 @@
+// 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_SUPERVISED_USER_CHILD_ACCOUNTS_CHILD_ACCOUNT_SERVICE_FACTORY_H_
+#define CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_CHILD_ACCOUNT_SERVICE_FACTORY_H_
+
+#include "base/macros.h"
+#include "base/memory/singleton.h"
+#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
+
+class ChildAccountService;
+class Profile;
+
+class ChildAccountServiceFactory : public BrowserContextKeyedServiceFactory {
+ public:
+ static ChildAccountService* GetForProfile(Profile* profile);
+
+ static ChildAccountServiceFactory* GetInstance();
+
+ private:
+ friend struct DefaultSingletonTraits<ChildAccountServiceFactory>;
+
+ ChildAccountServiceFactory();
+ virtual ~ChildAccountServiceFactory();
+
+ // BrowserContextKeyedServiceFactory:
+ virtual KeyedService* BuildServiceInstanceFor(
+ content::BrowserContext* profile) const override;
+
+ DISALLOW_COPY_AND_ASSIGN(ChildAccountServiceFactory);
+};
+
+#endif // CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_CHILD_ACCOUNT_SERVICE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698