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

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

Issue 762863002: Removed policy::PolicyNamespaceKey. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 UserCloudPolicyManagerChromeOS::UserCloudPolicyManagerChromeOS( 74 UserCloudPolicyManagerChromeOS::UserCloudPolicyManagerChromeOS(
75 scoped_ptr<CloudPolicyStore> store, 75 scoped_ptr<CloudPolicyStore> store,
76 scoped_ptr<CloudExternalDataManager> external_data_manager, 76 scoped_ptr<CloudExternalDataManager> external_data_manager,
77 const base::FilePath& component_policy_cache_path, 77 const base::FilePath& component_policy_cache_path,
78 bool wait_for_policy_fetch, 78 bool wait_for_policy_fetch,
79 base::TimeDelta initial_policy_fetch_timeout, 79 base::TimeDelta initial_policy_fetch_timeout,
80 const scoped_refptr<base::SequencedTaskRunner>& task_runner, 80 const scoped_refptr<base::SequencedTaskRunner>& task_runner,
81 const scoped_refptr<base::SequencedTaskRunner>& file_task_runner, 81 const scoped_refptr<base::SequencedTaskRunner>& file_task_runner,
82 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner) 82 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner)
83 : CloudPolicyManager( 83 : CloudPolicyManager(
84 PolicyNamespaceKey(dm_protocol::kChromeUserPolicyType, std::string()), 84 dm_protocol::kChromeUserPolicyType,
85 store.get(), 85 store.get(),
86 task_runner, 86 task_runner,
87 file_task_runner, 87 file_task_runner,
88 io_task_runner), 88 io_task_runner),
89 store_(store.Pass()), 89 store_(store.Pass()),
90 external_data_manager_(external_data_manager.Pass()), 90 external_data_manager_(external_data_manager.Pass()),
91 component_policy_cache_path_(component_policy_cache_path), 91 component_policy_cache_path_(component_policy_cache_path),
92 wait_for_policy_fetch_(wait_for_policy_fetch), 92 wait_for_policy_fetch_(wait_for_policy_fetch),
93 policy_fetch_timeout_(false, false) { 93 policy_fetch_timeout_(false, false) {
94 time_init_started_ = base::Time::Now(); 94 time_init_started_ = base::Time::Now();
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 // OnComponentCloudPolicyUpdated() once it's ready. 386 // OnComponentCloudPolicyUpdated() once it's ready.
387 return; 387 return;
388 } 388 }
389 389
390 core()->StartRefreshScheduler(); 390 core()->StartRefreshScheduler();
391 core()->TrackRefreshDelayPref(local_state_, 391 core()->TrackRefreshDelayPref(local_state_,
392 policy_prefs::kUserPolicyRefreshRate); 392 policy_prefs::kUserPolicyRefreshRate);
393 } 393 }
394 394
395 } // namespace policy 395 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698