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

Side by Side Diff: chrome/browser/policy/browser_policy_connector.cc

Issue 6882038: Move writing information to the lockbox after registering with the DM server. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Reverted some whitespaces. Created 9 years, 8 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 | Annotate | Revision Log
OLDNEW
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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 #endif 171 #endif
172 172
173 return std::string(); 173 return std::string();
174 } 174 }
175 175
176 void BrowserPolicyConnector::StopAutoRetry() { 176 void BrowserPolicyConnector::StopAutoRetry() {
177 if (cloud_policy_subsystem_.get()) 177 if (cloud_policy_subsystem_.get())
178 cloud_policy_subsystem_->StopAutoRetry(); 178 cloud_policy_subsystem_->StopAutoRetry();
179 } 179 }
180 180
181 void BrowserPolicyConnector::FetchPolicy() {
182 #if defined(OS_CHROMEOS)
183 if (identity_strategy_.get())
184 return identity_strategy_->FetchPolicy();
185 #endif
186 }
187
181 void BrowserPolicyConnector::Initialize() { 188 void BrowserPolicyConnector::Initialize() {
182 // TODO(jkummerow, mnissler): Move this out of the browser startup path. 189 // TODO(jkummerow, mnissler): Move this out of the browser startup path.
183 if (cloud_policy_subsystem_.get()) { 190 if (cloud_policy_subsystem_.get()) {
184 cloud_policy_subsystem_->Initialize( 191 cloud_policy_subsystem_->Initialize(
185 g_browser_process->local_state(), 192 g_browser_process->local_state(),
186 g_browser_process->system_request_context()); 193 g_browser_process->system_request_context());
187 } 194 }
188 } 195 }
189 196
190 } // namespace 197 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698