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

Side by Side Diff: chrome/browser/chromeos/settings/device_settings_service.cc

Issue 108563005: Move the cloud policy protobufs into the component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 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 | Annotate | Revision Log
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/settings/device_settings_service.h" 5 #include "chrome/browser/chromeos/settings/device_settings_service.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
11 #include "chrome/browser/chrome_notification_types.h" 11 #include "chrome/browser/chrome_notification_types.h"
12 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h"
12 #include "chrome/browser/chromeos/settings/owner_key_util.h" 13 #include "chrome/browser/chromeos/settings/owner_key_util.h"
13 #include "chrome/browser/chromeos/settings/session_manager_operation.h" 14 #include "chrome/browser/chromeos/settings/session_manager_operation.h"
14 #include "chrome/browser/policy/proto/chromeos/chrome_device_policy.pb.h"
15 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h"
16 #include "content/public/browser/browser_thread.h" 15 #include "content/public/browser/browser_thread.h"
17 #include "content/public/browser/notification_service.h" 16 #include "content/public/browser/notification_service.h"
18 #include "content/public/browser/notification_source.h" 17 #include "content/public/browser/notification_source.h"
19 #include "crypto/rsa_private_key.h" 18 #include "crypto/rsa_private_key.h"
19 #include "policy/proto/device_management_backend.pb.h"
20 20
21 namespace em = enterprise_management; 21 namespace em = enterprise_management;
22 22
23 namespace { 23 namespace {
24 24
25 // Delay between load retries when there was a validation error. 25 // Delay between load retries when there was a validation error.
26 // NOTE: This code is here to mitigate clock loss on some devices where policy 26 // NOTE: This code is here to mitigate clock loss on some devices where policy
27 // loads will fail with a validation error caused by RTC clock bing reset when 27 // loads will fail with a validation error caused by RTC clock bing reset when
28 // the battery is drained. 28 // the battery is drained.
29 int kLoadRetryDelayMs = 1000 * 5; 29 int kLoadRetryDelayMs = 1000 * 5;
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 364
365 ScopedTestDeviceSettingsService::ScopedTestDeviceSettingsService() { 365 ScopedTestDeviceSettingsService::ScopedTestDeviceSettingsService() {
366 DeviceSettingsService::Initialize(); 366 DeviceSettingsService::Initialize();
367 } 367 }
368 368
369 ScopedTestDeviceSettingsService::~ScopedTestDeviceSettingsService() { 369 ScopedTestDeviceSettingsService::~ScopedTestDeviceSettingsService() {
370 DeviceSettingsService::Shutdown(); 370 DeviceSettingsService::Shutdown();
371 } 371 }
372 372
373 } // namespace chromeos 373 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698