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

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

Issue 23592017: Fix policy invalidator lifecycle bugs for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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
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/user_cloud_policy_manager_chromeos.h" 5 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 return; // Not connected. 252 return; // Not connected.
253 253
254 if (component_policy_service_ && 254 if (component_policy_service_ &&
255 !component_policy_service_->is_initialized()) { 255 !component_policy_service_->is_initialized()) {
256 // If the client doesn't have the list of components to fetch yet then don't 256 // If the client doesn't have the list of components to fetch yet then don't
257 // start the scheduler. The |component_policy_service_| will call back into 257 // start the scheduler. The |component_policy_service_| will call back into
258 // OnComponentCloudPolicyUpdated() once it's ready. 258 // OnComponentCloudPolicyUpdated() once it's ready.
259 return; 259 return;
260 } 260 }
261 261
262 StartRefreshScheduler(); 262 core()->StartRefreshScheduler();
263 core()->TrackRefreshDelayPref(local_state_, prefs::kUserPolicyRefreshRate); 263 core()->TrackRefreshDelayPref(local_state_, prefs::kUserPolicyRefreshRate);
264 } 264 }
265 265
266 } // namespace policy 266 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.cc ('k') | chrome/browser/policy/cloud/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698