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

Side by Side Diff: chrome/browser/chromeos/policy/consumer_enrollment_handler_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: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_ENROLLMENT_HANDLER_FACTORY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_ENROLLMENT_HANDLER_FACTORY_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_ENROLLMENT_HANDLER_FACTORY_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_ENROLLMENT_HANDLER_FACTORY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "components/keyed_service/content/browser_context_keyed_service_factory .h" 10 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
(...skipping 16 matching lines...) Expand all
27 content::BrowserContext* context); 27 content::BrowserContext* context);
28 28
29 static ConsumerEnrollmentHandlerFactory* GetInstance(); 29 static ConsumerEnrollmentHandlerFactory* GetInstance();
30 30
31 private: 31 private:
32 friend struct DefaultSingletonTraits<ConsumerEnrollmentHandlerFactory>; 32 friend struct DefaultSingletonTraits<ConsumerEnrollmentHandlerFactory>;
33 33
34 ConsumerEnrollmentHandlerFactory(); 34 ConsumerEnrollmentHandlerFactory();
35 virtual ~ConsumerEnrollmentHandlerFactory(); 35 virtual ~ConsumerEnrollmentHandlerFactory();
36 36
37 bool ShouldCreateHandler(Profile* profile,
38 ConsumerManagementService* service) const;
39
40 // BrowserContextKeyedServiceFactory: 37 // BrowserContextKeyedServiceFactory:
41 KeyedService* BuildServiceInstanceFor( 38 KeyedService* BuildServiceInstanceFor(
42 content::BrowserContext* context) const override; 39 content::BrowserContext* context) const override;
43 virtual bool ServiceIsCreatedWithBrowserContext() const override; 40 virtual bool ServiceIsCreatedWithBrowserContext() const override;
44 41
45 DISALLOW_COPY_AND_ASSIGN(ConsumerEnrollmentHandlerFactory); 42 DISALLOW_COPY_AND_ASSIGN(ConsumerEnrollmentHandlerFactory);
46 }; 43 };
47 44
48 } // namespace policy 45 } // namespace policy
49 46
50 #endif // CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_ENROLLMENT_HANDLER_FACTORY_H_ 47 #endif // CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_ENROLLMENT_HANDLER_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698