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

Side by Side Diff: chrome/browser/chromeos/policy/device_local_account_policy_service.cc

Issue 106433007: Update some uses of Value in chrome/browser to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/device_local_account_policy_service.h" 5 #include "chrome/browser/chromeos/policy/device_local_account_policy_service.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 return; 159 return;
160 160
161 core_.Connect(client.Pass()); 161 core_.Connect(client.Pass());
162 external_data_manager_->Connect(request_context); 162 external_data_manager_->Connect(request_context);
163 core_.StartRefreshScheduler(); 163 core_.StartRefreshScheduler();
164 UpdateRefreshDelay(); 164 UpdateRefreshDelay();
165 } 165 }
166 166
167 void DeviceLocalAccountPolicyBroker::UpdateRefreshDelay() { 167 void DeviceLocalAccountPolicyBroker::UpdateRefreshDelay() {
168 if (core_.refresh_scheduler()) { 168 if (core_.refresh_scheduler()) {
169 const Value* policy_value = 169 const base::Value* policy_value =
170 store_->policy_map().GetValue(key::kPolicyRefreshRate); 170 store_->policy_map().GetValue(key::kPolicyRefreshRate);
171 int delay = 0; 171 int delay = 0;
172 if (policy_value && policy_value->GetAsInteger(&delay)) 172 if (policy_value && policy_value->GetAsInteger(&delay))
173 core_.refresh_scheduler()->SetRefreshDelay(delay); 173 core_.refresh_scheduler()->SetRefreshDelay(delay);
174 } 174 }
175 } 175 }
176 176
177 std::string DeviceLocalAccountPolicyBroker::GetDisplayName() const { 177 std::string DeviceLocalAccountPolicyBroker::GetDisplayName() const {
178 std::string display_name; 178 std::string display_name;
179 const base::Value* display_name_value = 179 const base::Value* display_name_value =
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 CloudPolicyStore* store) { 503 CloudPolicyStore* store) {
504 for (PolicyBrokerMap::iterator it(policy_brokers_.begin()); 504 for (PolicyBrokerMap::iterator it(policy_brokers_.begin());
505 it != policy_brokers_.end(); ++it) { 505 it != policy_brokers_.end(); ++it) {
506 if (it->second->core()->store() == store) 506 if (it->second->core()->store() == store)
507 return it->second; 507 return it->second;
508 } 508 }
509 return NULL; 509 return NULL;
510 } 510 }
511 511
512 } // namespace policy 512 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698