Index: chrome/browser/chromeos/policy/consumer_management_notifier_factory.h |
diff --git a/chrome/browser/chromeos/policy/consumer_management_notifier_factory.h b/chrome/browser/chromeos/policy/consumer_management_notifier_factory.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..86ef04d1d01e2966976f8b2558e4c54f0e90f9e3 |
--- /dev/null |
+++ b/chrome/browser/chromeos/policy/consumer_management_notifier_factory.h |
@@ -0,0 +1,44 @@ |
+// 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_POLICY_CONSUMER_MANAGEMENT_NOTIFIER_FACTORY_H_ |
+#define CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_MANAGEMENT_NOTIFIER_FACTORY_H_ |
+ |
+#include "base/macros.h" |
+#include "base/memory/singleton.h" |
+#include "components/keyed_service/content/browser_context_keyed_service_factory.h" |
+ |
+namespace content { |
+class BrowserContext; |
+} |
+ |
+namespace policy { |
+ |
+class ConsumerManagementNotifier; |
+ |
+class ConsumerManagementNotifierFactory |
+ : public BrowserContextKeyedServiceFactory { |
+ public: |
+ static ConsumerManagementNotifier* GetForBrowserContext( |
+ content::BrowserContext* context); |
+ |
+ static ConsumerManagementNotifierFactory* GetInstance(); |
+ |
+ private: |
+ friend struct DefaultSingletonTraits<ConsumerManagementNotifierFactory>; |
+ |
+ ConsumerManagementNotifierFactory(); |
+ virtual ~ConsumerManagementNotifierFactory(); |
bartfab (slow)
2014/11/27 14:09:09
Nit: Use |override| instead of |virtual|.
davidyu
2014/11/28 02:45:26
Done.
|
+ |
+ // BrowserContextKeyedServiceFactory: |
+ KeyedService* BuildServiceInstanceFor( |
+ content::BrowserContext* context) const override; |
+ virtual bool ServiceIsCreatedWithBrowserContext() const override; |
bartfab (slow)
2014/11/27 14:09:09
Nit: No |virtual| with |override|.
davidyu
2014/11/28 02:45:26
Done.
|
+ |
+ DISALLOW_COPY_AND_ASSIGN(ConsumerManagementNotifierFactory); |
+}; |
+ |
+} // namespace policy |
+ |
+#endif // CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_MANAGEMENT_NOTIFIER_FACTORY_H_ |