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

Side by Side Diff: chrome/browser/policy/cloud_policy_subsystem.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: 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/cloud_policy_subsystem.h" 5 #include "chrome/browser/policy/cloud_policy_subsystem.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 CloudPolicySubsystem::ErrorDetails CloudPolicySubsystem::error_details() { 121 CloudPolicySubsystem::ErrorDetails CloudPolicySubsystem::error_details() {
122 return notifier_->error_details(); 122 return notifier_->error_details();
123 } 123 }
124 124
125 void CloudPolicySubsystem::StopAutoRetry() { 125 void CloudPolicySubsystem::StopAutoRetry() {
126 cloud_policy_controller_->StopAutoRetry(); 126 cloud_policy_controller_->StopAutoRetry();
127 device_token_fetcher_->StopAutoRetry(); 127 device_token_fetcher_->StopAutoRetry();
128 } 128 }
129 129
130 void CloudPolicySubsystem::StopAfterTokenFetch(bool enabled) {
131 cloud_policy_controller_->StopAfterTokenFetch(enabled);
132 }
133
134 void CloudPolicySubsystem::SendPolicyRequest() {
135 cloud_policy_controller_->OnDeviceTokenAvailable();
136 }
137
130 ConfigurationPolicyProvider* CloudPolicySubsystem::GetManagedPolicyProvider() { 138 ConfigurationPolicyProvider* CloudPolicySubsystem::GetManagedPolicyProvider() {
131 if (cloud_policy_cache_.get()) 139 if (cloud_policy_cache_.get())
132 return cloud_policy_cache_->GetManagedPolicyProvider(); 140 return cloud_policy_cache_->GetManagedPolicyProvider();
133 141
134 return NULL; 142 return NULL;
135 } 143 }
136 144
137 ConfigurationPolicyProvider* 145 ConfigurationPolicyProvider*
138 CloudPolicySubsystem::GetRecommendedPolicyProvider() { 146 CloudPolicySubsystem::GetRecommendedPolicyProvider() {
139 if (cloud_policy_cache_.get()) 147 if (cloud_policy_cache_.get())
(...skipping 25 matching lines...) Expand all
165 policy_refresh_rate_.GetPrefName() == 173 policy_refresh_rate_.GetPrefName() ==
166 *(Details<std::string>(details).ptr()) && 174 *(Details<std::string>(details).ptr()) &&
167 prefs_ == Source<PrefService>(source).ptr()) { 175 prefs_ == Source<PrefService>(source).ptr()) {
168 UpdatePolicyRefreshRate(); 176 UpdatePolicyRefreshRate();
169 } else { 177 } else {
170 NOTREACHED(); 178 NOTREACHED();
171 } 179 }
172 } 180 }
173 181
174 } // namespace policy 182 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698