Fix the duplicatedly commited composition text when switching IME.
[chromium-blink-merge.git] / chrome / browser / chromeos / policy / consumer_unenrollment_handler_factory.h
blobc706eb308c9491f6c168b0536f69d8ec67979d21
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_UNENROLLMENT_HANDLER_FACTORY_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_UNENROLLMENT_HANDLER_FACTORY_H_
8 #include "base/macros.h"
9 #include "base/memory/singleton.h"
10 #include "components/keyed_service/content/browser_context_keyed_service_factory.h"
12 namespace policy {
14 class ConsumerUnenrollmentHandler;
16 class ConsumerUnenrollmentHandlerFactory
17 : public BrowserContextKeyedServiceFactory {
18 public:
19 static ConsumerUnenrollmentHandler* GetForBrowserContext(
20 content::BrowserContext* context);
22 static ConsumerUnenrollmentHandlerFactory* GetInstance();
24 private:
25 friend struct base::DefaultSingletonTraits<
26 ConsumerUnenrollmentHandlerFactory>;
28 ConsumerUnenrollmentHandlerFactory();
29 ~ConsumerUnenrollmentHandlerFactory() override;
31 KeyedService* BuildServiceInstanceFor(
32 content::BrowserContext* context) const override;
34 DISALLOW_COPY_AND_ASSIGN(ConsumerUnenrollmentHandlerFactory);
37 } // namespace policy
39 #endif // CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_UNENROLLMENT_HANDLER_FACTORY_H_