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

Side by Side Diff: chrome/browser/chromeos/ownership/owner_settings_service_chromeos_factory.h

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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 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_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_FACTOR Y_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_FACTOR Y_H_
6 #define CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_FACTOR Y_H_ 6 #define CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_FACTOR Y_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 25 matching lines...) Expand all
36 36
37 static void SetDeviceSettingsServiceForTesting( 37 static void SetDeviceSettingsServiceForTesting(
38 DeviceSettingsService* device_settings_service); 38 DeviceSettingsService* device_settings_service);
39 39
40 scoped_refptr<ownership::OwnerKeyUtil> GetOwnerKeyUtil(); 40 scoped_refptr<ownership::OwnerKeyUtil> GetOwnerKeyUtil();
41 41
42 void SetOwnerKeyUtilForTesting( 42 void SetOwnerKeyUtilForTesting(
43 const scoped_refptr<ownership::OwnerKeyUtil>& owner_key_util); 43 const scoped_refptr<ownership::OwnerKeyUtil>& owner_key_util);
44 44
45 private: 45 private:
46 friend struct DefaultSingletonTraits<OwnerSettingsServiceChromeOSFactory>; 46 friend struct base::DefaultSingletonTraits<
47 OwnerSettingsServiceChromeOSFactory>;
47 48
48 OwnerSettingsServiceChromeOSFactory(); 49 OwnerSettingsServiceChromeOSFactory();
49 ~OwnerSettingsServiceChromeOSFactory() override; 50 ~OwnerSettingsServiceChromeOSFactory() override;
50 51
51 static KeyedService* BuildInstanceFor(content::BrowserContext* context); 52 static KeyedService* BuildInstanceFor(content::BrowserContext* context);
52 53
53 // BrowserContextKeyedBaseFactory overrides: 54 // BrowserContextKeyedBaseFactory overrides:
54 bool ServiceIsCreatedWithBrowserContext() const override; 55 bool ServiceIsCreatedWithBrowserContext() const override;
55 56
56 // BrowserContextKeyedServiceFactory implementation: 57 // BrowserContextKeyedServiceFactory implementation:
57 KeyedService* BuildServiceInstanceFor( 58 KeyedService* BuildServiceInstanceFor(
58 content::BrowserContext* browser_context) const override; 59 content::BrowserContext* browser_context) const override;
59 60
60 scoped_refptr<ownership::OwnerKeyUtil> owner_key_util_; 61 scoped_refptr<ownership::OwnerKeyUtil> owner_key_util_;
61 62
62 DISALLOW_COPY_AND_ASSIGN(OwnerSettingsServiceChromeOSFactory); 63 DISALLOW_COPY_AND_ASSIGN(OwnerSettingsServiceChromeOSFactory);
63 }; 64 };
64 65
65 } // namespace chromeos 66 } // namespace chromeos
66 67
67 #endif // CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_FAC TORY_H_ 68 #endif // CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_FAC TORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/mobile_config.cc ('k') | chrome/browser/chromeos/ownership/owner_settings_service_chromeos_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698