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

Side by Side Diff: chrome/browser/chromeos/printing/printers_manager_factory.h

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 years, 9 months 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 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 #ifndef CHROME_BROWSER_CHROMEOS_PRINTING_PRINTERS_MANAGER_FACTORY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_PRINTING_PRINTERS_MANAGER_FACTORY_H_
6 #define CHROME_BROWSER_CHROMEOS_PRINTING_PRINTERS_MANAGER_FACTORY_H_ 6 #define CHROME_BROWSER_CHROMEOS_PRINTING_PRINTERS_MANAGER_FACTORY_H_
7 7
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "chrome/browser/chromeos/printing/printers_manager.h" 10 #include "chrome/browser/chromeos/printing/printers_manager.h"
(...skipping 10 matching lines...) Expand all
21 static PrintersManager* GetForBrowserContext( 21 static PrintersManager* GetForBrowserContext(
22 content::BrowserContext* context); 22 content::BrowserContext* context);
23 23
24 static PrintersManagerFactory* GetInstance(); 24 static PrintersManagerFactory* GetInstance();
25 25
26 protected: 26 protected:
27 content::BrowserContext* GetBrowserContextToUse( 27 content::BrowserContext* GetBrowserContextToUse(
28 content::BrowserContext* context) const override; 28 content::BrowserContext* context) const override;
29 29
30 private: 30 private:
31 friend struct base::DefaultLazyInstanceTraits<PrintersManagerFactory>; 31 friend struct base::LazyInstanceTraitsBase<PrintersManagerFactory>;
32 32
33 PrintersManagerFactory(); 33 PrintersManagerFactory();
34 ~PrintersManagerFactory() override; 34 ~PrintersManagerFactory() override;
35 35
36 // BrowserContextKeyedServiceFactory implementation: 36 // BrowserContextKeyedServiceFactory implementation:
37 PrintersManager* BuildServiceInstanceFor( 37 PrintersManager* BuildServiceInstanceFor(
38 content::BrowserContext* browser_context) const override; 38 content::BrowserContext* browser_context) const override;
39 39
40 DISALLOW_COPY_AND_ASSIGN(PrintersManagerFactory); 40 DISALLOW_COPY_AND_ASSIGN(PrintersManagerFactory);
41 }; 41 };
42 42
43 } // namespace chromeos 43 } // namespace chromeos
44 44
45 #endif // CHROME_BROWSER_CHROMEOS_PRINTING_PRINTERS_MANAGER_FACTORY_H_ 45 #endif // CHROME_BROWSER_CHROMEOS_PRINTING_PRINTERS_MANAGER_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698