| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "chrome/browser/chromeos/printer_detector/printer_detector_factory.h" | 5 #include "chrome/browser/chromeos/printer_detector/printer_detector_factory.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "chrome/browser/chromeos/printer_detector/printer_detector.h" | 8 #include "chrome/browser/chromeos/printer_detector/printer_detector.h" |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/common/chrome_switches.h" | 10 #include "chrome/common/chrome_switches.h" |
| 11 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 11 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| 12 #include "extensions/browser/extensions_browser_client.h" | 12 #include "extensions/browser/extensions_browser_client.h" |
| 13 | 13 |
| 14 namespace chromeos { | 14 namespace chromeos { |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 static base::LazyInstance<PrinterDetectorFactory> g_factory = | 18 static base::LazyInstance<PrinterDetectorFactory>::DestructorAtExit g_factory = |
| 19 LAZY_INSTANCE_INITIALIZER; | 19 LAZY_INSTANCE_INITIALIZER; |
| 20 | 20 |
| 21 } // namespace | 21 } // namespace |
| 22 | 22 |
| 23 // static | 23 // static |
| 24 PrinterDetectorFactory* PrinterDetectorFactory::GetInstance() { | 24 PrinterDetectorFactory* PrinterDetectorFactory::GetInstance() { |
| 25 return g_factory.Pointer(); | 25 return g_factory.Pointer(); |
| 26 } | 26 } |
| 27 | 27 |
| 28 PrinterDetector* PrinterDetectorFactory::Get(content::BrowserContext* context) { | 28 PrinterDetector* PrinterDetectorFactory::Get(content::BrowserContext* context) { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 55 | 55 |
| 56 bool PrinterDetectorFactory::ServiceIsCreatedWithBrowserContext() const { | 56 bool PrinterDetectorFactory::ServiceIsCreatedWithBrowserContext() const { |
| 57 return true; | 57 return true; |
| 58 } | 58 } |
| 59 | 59 |
| 60 bool PrinterDetectorFactory::ServiceIsNULLWhileTesting() const { | 60 bool PrinterDetectorFactory::ServiceIsNULLWhileTesting() const { |
| 61 return true; | 61 return true; |
| 62 } | 62 } |
| 63 | 63 |
| 64 } // namespace chromeos | 64 } // namespace chromeos |
| OLD | NEW |