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

Unified Diff: chrome/browser/chromeos/policy/consumer_management_notifier_factory.h

Issue 733613005: Move the notification part out of ConsumerEnrollmentHandler so that it can be reused for unenrollme… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@enroll
Patch Set: Added a check for UserManager. Created 6 years, 1 month 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/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_

Powered by Google App Engine
This is Rietveld 408576698