Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/policy/browser_policy_connector.h" | 5 #include "chrome/browser/policy/browser_policy_connector.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/policy/cloud_policy_subsystem.h" | 10 #include "chrome/browser/policy/cloud_policy_subsystem.h" |
| 11 #include "chrome/browser/policy/configuration_policy_pref_store.h" | 11 #include "chrome/browser/policy/configuration_policy_pref_store.h" |
| 12 #include "chrome/browser/policy/configuration_policy_provider.h" | 12 #include "chrome/browser/policy/configuration_policy_provider.h" |
| 13 #include "chrome/browser/policy/dummy_configuration_policy_provider.h" | 13 #include "chrome/browser/policy/dummy_configuration_policy_provider.h" |
| 14 #include "chrome/common/chrome_paths.h" | 14 #include "chrome/common/chrome_paths.h" |
| 15 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
| 16 #include "chrome/common/pref_names.h" | |
| 16 | 17 |
| 17 #if defined(OS_WIN) | 18 #if defined(OS_WIN) |
| 18 #include "chrome/browser/policy/configuration_policy_provider_win.h" | 19 #include "chrome/browser/policy/configuration_policy_provider_win.h" |
| 19 #elif defined(OS_MACOSX) | 20 #elif defined(OS_MACOSX) |
| 20 #include "chrome/browser/policy/configuration_policy_provider_mac.h" | 21 #include "chrome/browser/policy/configuration_policy_provider_mac.h" |
| 21 #elif defined(OS_POSIX) | 22 #elif defined(OS_POSIX) |
| 22 #include "chrome/browser/policy/config_dir_policy_provider.h" | 23 #include "chrome/browser/policy/config_dir_policy_provider.h" |
| 23 #endif | 24 #endif |
| 24 | 25 |
| 25 #if defined(OS_CHROMEOS) | 26 #if defined(OS_CHROMEOS) |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 185 void BrowserPolicyConnector::FetchPolicy() { | 186 void BrowserPolicyConnector::FetchPolicy() { |
| 186 #if defined(OS_CHROMEOS) | 187 #if defined(OS_CHROMEOS) |
| 187 if (identity_strategy_.get()) | 188 if (identity_strategy_.get()) |
| 188 return identity_strategy_->FetchPolicy(); | 189 return identity_strategy_->FetchPolicy(); |
| 189 #endif | 190 #endif |
| 190 } | 191 } |
| 191 | 192 |
| 192 void BrowserPolicyConnector::Initialize() { | 193 void BrowserPolicyConnector::Initialize() { |
| 193 // TODO(jkummerow, mnissler): Move this out of the browser startup path. | 194 // TODO(jkummerow, mnissler): Move this out of the browser startup path. |
| 194 if (cloud_policy_subsystem_.get()) { | 195 if (cloud_policy_subsystem_.get()) { |
| 195 cloud_policy_subsystem_->Initialize( | 196 cloud_policy_subsystem_->Initialize(prefs::kDevicePolicyRefreshRate, |
|
Mattias Nissler (ping if slow)
2011/05/13 09:45:03
Indentation
sfeuz
2011/05/17 14:27:42
Done.
| |
| 196 g_browser_process->local_state(), | |
| 197 g_browser_process->system_request_context()); | 197 g_browser_process->system_request_context()); |
| 198 } | 198 } |
| 199 } | 199 } |
| 200 | 200 |
| 201 } // namespace | 201 } // namespace |
| OLD | NEW |