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

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

Issue 2621413007: Revert of Re-enable fetching component policies for login screen apps (Closed)
Patch Set: Created 3 years, 11 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/device_cloud_policy_manager_chromeos.h" 5 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 236
237 void DeviceCloudPolicyManagerChromeOS::StartConnection( 237 void DeviceCloudPolicyManagerChromeOS::StartConnection(
238 std::unique_ptr<CloudPolicyClient> client_to_connect, 238 std::unique_ptr<CloudPolicyClient> client_to_connect,
239 chromeos::InstallAttributes* install_attributes) { 239 chromeos::InstallAttributes* install_attributes) {
240 CHECK(!service()); 240 CHECK(!service());
241 241
242 // Set state keys here so the first policy fetch submits them to the server. 242 // Set state keys here so the first policy fetch submits them to the server.
243 if (ForcedReEnrollmentEnabled()) 243 if (ForcedReEnrollmentEnabled())
244 client_to_connect->SetStateKeysToUpload(state_keys_broker_->state_keys()); 244 client_to_connect->SetStateKeysToUpload(state_keys_broker_->state_keys());
245 245
246 // Create the component cloud policy service for fetching, caching and 246 if (is_component_policy_enabled_) {
247 // exposing policy for extensions.
248 if (!component_policy_disabled_for_testing_) {
249 base::FilePath component_policy_cache_dir; 247 base::FilePath component_policy_cache_dir;
250 CHECK(PathService::Get(chromeos::DIR_SIGNIN_PROFILE_COMPONENT_POLICY, 248 CHECK(PathService::Get(chromeos::DIR_SIGNIN_PROFILE_COMPONENT_POLICY,
251 &component_policy_cache_dir)); 249 &component_policy_cache_dir));
252 CHECK(signin_profile_forwarding_schema_registry_); 250 CHECK(signin_profile_forwarding_schema_registry_);
253 CreateComponentCloudPolicyService( 251 CreateComponentCloudPolicyService(
254 dm_protocol::kChromeSigninExtensionPolicyType, 252 dm_protocol::kChromeSigninExtensionPolicyType,
255 component_policy_cache_dir, g_browser_process->system_request_context(), 253 component_policy_cache_dir, g_browser_process->system_request_context(),
256 client_to_connect.get(), 254 client_to_connect.get(),
257 signin_profile_forwarding_schema_registry_.get()); 255 signin_profile_forwarding_schema_registry_.get());
258 } 256 }
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 base::MakeUnique<DeviceStatusCollector>( 363 base::MakeUnique<DeviceStatusCollector>(
366 local_state_, chromeos::system::StatisticsProvider::GetInstance(), 364 local_state_, chromeos::system::StatisticsProvider::GetInstance(),
367 DeviceStatusCollector::VolumeInfoFetcher(), 365 DeviceStatusCollector::VolumeInfoFetcher(),
368 DeviceStatusCollector::CPUStatisticsFetcher(), 366 DeviceStatusCollector::CPUStatisticsFetcher(),
369 DeviceStatusCollector::CPUTempFetcher(), 367 DeviceStatusCollector::CPUTempFetcher(),
370 DeviceStatusCollector::AndroidStatusFetcher()), 368 DeviceStatusCollector::AndroidStatusFetcher()),
371 task_runner_)); 369 task_runner_));
372 } 370 }
373 371
374 } // namespace policy 372 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698