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

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

Issue 27536003: Moved prefs::kUserPolicyRefreshRate to component/policy/policy_pref_names. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/policy/browser_policy_connector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
12 #include "base/metrics/sparse_histogram.h" 12 #include "base/metrics/sparse_histogram.h"
13 #include "base/sequenced_task_runner.h" 13 #include "base/sequenced_task_runner.h"
14 #include "chrome/browser/browser_process.h" 14 #include "chrome/browser/browser_process.h"
15 #include "chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.h" 15 #include "chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.h"
16 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chrom eos.h" 16 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chrom eos.h"
17 #include "chrome/browser/chromeos/profiles/profile_helper.h" 17 #include "chrome/browser/chromeos/profiles/profile_helper.h"
18 #include "chrome/browser/policy/cloud/cloud_external_data_manager.h" 18 #include "chrome/browser/policy/cloud/cloud_external_data_manager.h"
19 #include "chrome/browser/policy/cloud/cloud_policy_refresh_scheduler.h" 19 #include "chrome/browser/policy/cloud/cloud_policy_refresh_scheduler.h"
20 #include "chrome/browser/policy/cloud/resource_cache.h" 20 #include "chrome/browser/policy/cloud/resource_cache.h"
21 #include "chrome/browser/policy/policy_bundle.h" 21 #include "chrome/browser/policy/policy_bundle.h"
22 #include "chrome/browser/policy/policy_domain_descriptor.h" 22 #include "chrome/browser/policy/policy_domain_descriptor.h"
23 #include "chrome/common/pref_names.h" 23 #include "components/policy/core/common/policy_pref_names.h"
24 #include "content/public/browser/browser_thread.h" 24 #include "content/public/browser/browser_thread.h"
25 #include "net/url_request/url_request_context_getter.h" 25 #include "net/url_request/url_request_context_getter.h"
26 26
27 namespace em = enterprise_management; 27 namespace em = enterprise_management;
28 28
29 namespace policy { 29 namespace policy {
30 30
31 namespace { 31 namespace {
32 32
33 // UMA histogram names. 33 // UMA histogram names.
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 344
345 if (component_policy_service_ && 345 if (component_policy_service_ &&
346 !component_policy_service_->is_initialized()) { 346 !component_policy_service_->is_initialized()) {
347 // If the client doesn't have the list of components to fetch yet then don't 347 // If the client doesn't have the list of components to fetch yet then don't
348 // start the scheduler. The |component_policy_service_| will call back into 348 // start the scheduler. The |component_policy_service_| will call back into
349 // OnComponentCloudPolicyUpdated() once it's ready. 349 // OnComponentCloudPolicyUpdated() once it's ready.
350 return; 350 return;
351 } 351 }
352 352
353 core()->StartRefreshScheduler(); 353 core()->StartRefreshScheduler();
354 core()->TrackRefreshDelayPref(local_state_, prefs::kUserPolicyRefreshRate); 354 core()->TrackRefreshDelayPref(local_state_,
355 policy_prefs::kUserPolicyRefreshRate);
355 } 356 }
356 357
357 } // namespace policy 358 } // namespace policy
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/browser_policy_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698