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

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

Issue 822523003: Implement device-local account policy pushing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@f_2_442800_switch_device_cloud_policy_invalidator
Patch Set: Removed the need to initialize singletons in unit tests. Created 5 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/browser_policy_connector_chromeos.h" 5 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
6 6
7 #include <string> 7 #include <string>
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 device_cloud_policy_manager_->Initialize(local_state); 178 device_cloud_policy_manager_->Initialize(local_state);
179 device_cloud_policy_manager_->AddDeviceCloudPolicyManagerObserver(this); 179 device_cloud_policy_manager_->AddDeviceCloudPolicyManagerObserver(this);
180 RestartDeviceCloudPolicyInitializer(); 180 RestartDeviceCloudPolicyInitializer();
181 } 181 }
182 182
183 device_local_account_policy_service_.reset( 183 device_local_account_policy_service_.reset(
184 new DeviceLocalAccountPolicyService( 184 new DeviceLocalAccountPolicyService(
185 chromeos::DBusThreadManager::Get()->GetSessionManagerClient(), 185 chromeos::DBusThreadManager::Get()->GetSessionManagerClient(),
186 chromeos::DeviceSettingsService::Get(), 186 chromeos::DeviceSettingsService::Get(),
187 chromeos::CrosSettings::Get(), 187 chromeos::CrosSettings::Get(),
188 affiliated_invalidation_service_provider_.get(),
188 GetBackgroundTaskRunner(), 189 GetBackgroundTaskRunner(),
189 GetBackgroundTaskRunner(), 190 GetBackgroundTaskRunner(),
190 GetBackgroundTaskRunner(), 191 GetBackgroundTaskRunner(),
191 content::BrowserThread::GetMessageLoopProxyForThread( 192 content::BrowserThread::GetMessageLoopProxyForThread(
192 content::BrowserThread::IO), 193 content::BrowserThread::IO),
193 request_context)); 194 request_context));
194 device_local_account_policy_service_->Connect(device_management_service()); 195 device_local_account_policy_service_->Connect(device_management_service());
195 device_cloud_policy_invalidator_.reset(new DeviceCloudPolicyInvalidator( 196 device_cloud_policy_invalidator_.reset(new DeviceCloudPolicyInvalidator(
196 affiliated_invalidation_service_provider_.get())); 197 affiliated_invalidation_service_provider_.get()));
197 198
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 consumer_device_management_service_.get(), 355 consumer_device_management_service_.get(),
355 GetBackgroundTaskRunner(), 356 GetBackgroundTaskRunner(),
356 install_attributes_.get(), 357 install_attributes_.get(),
357 state_keys_broker_.get(), 358 state_keys_broker_.get(),
358 device_cloud_policy_manager_->device_store(), 359 device_cloud_policy_manager_->device_store(),
359 device_cloud_policy_manager_)); 360 device_cloud_policy_manager_));
360 device_cloud_policy_initializer_->Init(); 361 device_cloud_policy_initializer_->Init();
361 } 362 }
362 363
363 } // namespace policy 364 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698