OLD | NEW |
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/ownership/owner_settings_service.h" | 5 #include "chrome/browser/chromeos/ownership/owner_settings_service.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "chrome/browser/chrome_notification_types.h" | 11 #include "chrome/browser/chrome_notification_types.h" |
12 #include "chrome/browser/chromeos/login/users/user_manager.h" | |
13 #include "chrome/browser/chromeos/ownership/owner_settings_service_factory.h" | 12 #include "chrome/browser/chromeos/ownership/owner_settings_service_factory.h" |
14 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 13 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
15 #include "chrome/browser/chromeos/settings/session_manager_operation.h" | 14 #include "chrome/browser/chromeos/settings/session_manager_operation.h" |
16 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
17 #include "chromeos/dbus/dbus_thread_manager.h" | 16 #include "chromeos/dbus/dbus_thread_manager.h" |
18 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 17 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
19 #include "components/user_manager/user.h" | |
20 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
21 #include "content/public/browser/notification_details.h" | 19 #include "content/public/browser/notification_details.h" |
22 #include "content/public/browser/notification_service.h" | 20 #include "content/public/browser/notification_service.h" |
23 #include "content/public/browser/notification_source.h" | 21 #include "content/public/browser/notification_source.h" |
24 #include "crypto/nss_util.h" | 22 #include "crypto/nss_util.h" |
25 #include "crypto/nss_util_internal.h" | 23 #include "crypto/nss_util_internal.h" |
26 #include "crypto/rsa_private_key.h" | 24 #include "crypto/rsa_private_key.h" |
27 #include "crypto/scoped_nss_types.h" | 25 #include "crypto/scoped_nss_types.h" |
28 #include "crypto/signature_creator.h" | 26 #include "crypto/signature_creator.h" |
29 | 27 |
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 DeviceSettingsService* OwnerSettingsService::GetDeviceSettingsService() { | 505 DeviceSettingsService* OwnerSettingsService::GetDeviceSettingsService() { |
508 DCHECK(thread_checker_.CalledOnValidThread()); | 506 DCHECK(thread_checker_.CalledOnValidThread()); |
509 if (g_device_settings_service_for_testing) | 507 if (g_device_settings_service_for_testing) |
510 return g_device_settings_service_for_testing; | 508 return g_device_settings_service_for_testing; |
511 if (DeviceSettingsService::IsInitialized()) | 509 if (DeviceSettingsService::IsInitialized()) |
512 return DeviceSettingsService::Get(); | 510 return DeviceSettingsService::Get(); |
513 return NULL; | 511 return NULL; |
514 } | 512 } |
515 | 513 |
516 } // namespace chromeos | 514 } // namespace chromeos |
OLD | NEW |