OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/printing/cups_print_job_manager_factory.h" | 5 #include "chrome/browser/chromeos/printing/cups_print_job_manager_factory.h" |
6 | 6 |
7 #include "chrome/browser/chromeos/printing/cups_print_job_manager.h" | 7 #include "chrome/browser/chromeos/printing/cups_print_job_manager.h" |
8 #include "chrome/browser/chromeos/printing/printers_manager_factory.h" | 8 #include "chrome/browser/chromeos/printing/printers_manager_factory.h" |
9 #include "chrome/browser/profiles/incognito_helpers.h" | 9 #include "chrome/browser/profiles/incognito_helpers.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 11 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
12 | 12 |
13 namespace chromeos { | 13 namespace chromeos { |
14 namespace { | 14 namespace { |
15 | 15 |
16 static base::LazyInstance<CupsPrintJobManagerFactory> | 16 static base::LazyInstance<CupsPrintJobManagerFactory>::DestructorAtExit |
17 g_cups_print_job_manager_factory = LAZY_INSTANCE_INITIALIZER; | 17 g_cups_print_job_manager_factory = LAZY_INSTANCE_INITIALIZER; |
18 | 18 |
19 } // namespace | 19 } // namespace |
20 | 20 |
21 // static | 21 // static |
22 CupsPrintJobManagerFactory* CupsPrintJobManagerFactory::GetInstance() { | 22 CupsPrintJobManagerFactory* CupsPrintJobManagerFactory::GetInstance() { |
23 return g_cups_print_job_manager_factory.Pointer(); | 23 return g_cups_print_job_manager_factory.Pointer(); |
24 } | 24 } |
25 | 25 |
26 // static | 26 // static |
(...skipping 17 matching lines...) Expand all Loading... |
44 | 44 |
45 CupsPrintJobManagerFactory::~CupsPrintJobManagerFactory() {} | 45 CupsPrintJobManagerFactory::~CupsPrintJobManagerFactory() {} |
46 | 46 |
47 KeyedService* CupsPrintJobManagerFactory::BuildServiceInstanceFor( | 47 KeyedService* CupsPrintJobManagerFactory::BuildServiceInstanceFor( |
48 content::BrowserContext* context) const { | 48 content::BrowserContext* context) const { |
49 return CupsPrintJobManager::CreateInstance( | 49 return CupsPrintJobManager::CreateInstance( |
50 Profile::FromBrowserContext(context)); | 50 Profile::FromBrowserContext(context)); |
51 } | 51 } |
52 | 52 |
53 } // namespace chromeos | 53 } // namespace chromeos |
OLD | NEW |