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

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

Issue 58313002: Removed the PolicyDefinitionList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome-policy-schema-10-use-registry
Patch Set: rebase Created 7 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_external_data_serv ice.h" 5 #include "chrome/browser/chromeos/policy/device_local_account_external_data_serv ice.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 scoped_refptr<DeviceLocalAccountExternalDataManager> 70 scoped_refptr<DeviceLocalAccountExternalDataManager>
71 DeviceLocalAccountExternalDataService::GetExternalDataManager( 71 DeviceLocalAccountExternalDataService::GetExternalDataManager(
72 const std::string& account_id, 72 const std::string& account_id,
73 CloudPolicyStore* policy_store) { 73 CloudPolicyStore* policy_store) {
74 scoped_refptr<DeviceLocalAccountExternalDataManager>& external_data_manager = 74 scoped_refptr<DeviceLocalAccountExternalDataManager>& external_data_manager =
75 external_data_managers_[account_id]; 75 external_data_managers_[account_id];
76 if (!external_data_manager) { 76 if (!external_data_manager) {
77 external_data_manager = new DeviceLocalAccountExternalDataManager( 77 external_data_manager = new DeviceLocalAccountExternalDataManager(
78 account_id, 78 account_id,
79 GetChromePolicyDefinitionList(), 79 base::Bind(&GetChromePolicyDetails),
80 backend_task_runner_, 80 backend_task_runner_,
81 io_task_runner_, 81 io_task_runner_,
82 resource_cache_.get()); 82 resource_cache_.get());
83 } 83 }
84 external_data_manager->SetPolicyStore(policy_store); 84 external_data_manager->SetPolicyStore(policy_store);
85 return external_data_manager; 85 return external_data_manager;
86 } 86 }
87 87
88 } // namespace policy 88 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698