| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |