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" |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 #endif | 170 #endif |
171 | 171 |
172 return std::string(); | 172 return std::string(); |
173 } | 173 } |
174 | 174 |
175 void BrowserPolicyConnector::StopAutoRetry() { | 175 void BrowserPolicyConnector::StopAutoRetry() { |
176 if (cloud_policy_subsystem_.get()) | 176 if (cloud_policy_subsystem_.get()) |
177 cloud_policy_subsystem_->StopAutoRetry(); | 177 cloud_policy_subsystem_->StopAutoRetry(); |
178 } | 178 } |
179 | 179 |
| 180 void BrowserPolicyConnector::FetchPolicy() { |
| 181 #if defined(OS_CHROMEOS) |
| 182 if (identity_strategy_.get()) |
| 183 return identity_strategy_->FetchPolicy(); |
| 184 #endif |
| 185 } |
| 186 |
180 void BrowserPolicyConnector::Initialize() { | 187 void BrowserPolicyConnector::Initialize() { |
181 // TODO(jkummerow, mnissler): Move this out of the browser startup path. | 188 // TODO(jkummerow, mnissler): Move this out of the browser startup path. |
182 if (cloud_policy_subsystem_.get()) { | 189 if (cloud_policy_subsystem_.get()) { |
183 cloud_policy_subsystem_->Initialize( | 190 cloud_policy_subsystem_->Initialize( |
184 g_browser_process->local_state(), | 191 g_browser_process->local_state(), |
185 g_browser_process->system_request_context()); | 192 g_browser_process->system_request_context()); |
186 } | 193 } |
187 } | 194 } |
188 | 195 |
189 } // namespace | 196 } // namespace |
OLD | NEW |