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

Side by Side Diff: chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chromeos.cc

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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/policy/user_cloud_policy_manager_factory_chrom eos.h" 5 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chrom eos.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 // Timeout in seconds after which to abandon the initial policy fetch and start 67 // Timeout in seconds after which to abandon the initial policy fetch and start
68 // the session regardless. 68 // the session regardless.
69 const int kInitialPolicyFetchTimeoutSeconds = 10; 69 const int kInitialPolicyFetchTimeoutSeconds = 10;
70 70
71 } // namespace 71 } // namespace
72 72
73 // static 73 // static
74 UserCloudPolicyManagerFactoryChromeOS* 74 UserCloudPolicyManagerFactoryChromeOS*
75 UserCloudPolicyManagerFactoryChromeOS::GetInstance() { 75 UserCloudPolicyManagerFactoryChromeOS::GetInstance() {
76 return Singleton<UserCloudPolicyManagerFactoryChromeOS>::get(); 76 return base::Singleton<UserCloudPolicyManagerFactoryChromeOS>::get();
77 } 77 }
78 78
79 // static 79 // static
80 UserCloudPolicyManagerChromeOS* 80 UserCloudPolicyManagerChromeOS*
81 UserCloudPolicyManagerFactoryChromeOS::GetForProfile( 81 UserCloudPolicyManagerFactoryChromeOS::GetForProfile(
82 Profile* profile) { 82 Profile* profile) {
83 return GetInstance()->GetManagerForProfile(profile); 83 return GetInstance()->GetManagerForProfile(profile);
84 } 84 }
85 85
86 // static 86 // static
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 247
248 bool UserCloudPolicyManagerFactoryChromeOS::HasTestingFactory( 248 bool UserCloudPolicyManagerFactoryChromeOS::HasTestingFactory(
249 content::BrowserContext* context) { 249 content::BrowserContext* context) {
250 return false; 250 return false;
251 } 251 }
252 252
253 void UserCloudPolicyManagerFactoryChromeOS::CreateServiceNow( 253 void UserCloudPolicyManagerFactoryChromeOS::CreateServiceNow(
254 content::BrowserContext* context) {} 254 content::BrowserContext* context) {}
255 255
256 } // namespace policy 256 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698