| OLD | NEW |
| 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/login/signed_settings.h" | 5 #include "chrome/browser/chromeos/login/signed_settings.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/threading/thread_restrictions.h" | 12 #include "base/threading/thread_restrictions.h" |
| 13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
| 14 #include "chrome/browser/chromeos/cros/cros_library.h" | 14 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 15 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" | |
| 16 #include "chrome/browser/chromeos/dbus/session_manager_client.h" | |
| 17 #include "chrome/browser/chromeos/login/authenticator.h" | 15 #include "chrome/browser/chromeos/login/authenticator.h" |
| 18 #include "chrome/browser/chromeos/login/ownership_service.h" | 16 #include "chrome/browser/chromeos/login/ownership_service.h" |
| 19 #include "chrome/browser/policy/proto/chrome_device_policy.pb.h" | 17 #include "chrome/browser/policy/proto/chrome_device_policy.pb.h" |
| 20 #include "chrome/browser/policy/proto/device_management_backend.pb.h" | 18 #include "chrome/browser/policy/proto/device_management_backend.pb.h" |
| 19 #include "chromeos/dbus/dbus_thread_manager.h" |
| 20 #include "chromeos/dbus/session_manager_client.h" |
| 21 #include "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
| 22 | 22 |
| 23 namespace em = enterprise_management; | 23 namespace em = enterprise_management; |
| 24 | 24 |
| 25 namespace chromeos { | 25 namespace chromeos { |
| 26 using content::BrowserThread; | 26 using content::BrowserThread; |
| 27 | 27 |
| 28 const char kDevicePolicyType[] = "google/chromeos/device"; | 28 const char kDevicePolicyType[] = "google/chromeos/device"; |
| 29 | 29 |
| 30 SignedSettings::SignedSettings() | 30 SignedSettings::SignedSettings() |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 sig.assign(sig_ptr, sig_ptr + policy_.policy_data_signature().length()); | 277 sig.assign(sig_ptr, sig_ptr + policy_.policy_data_signature().length()); |
| 278 service_->StartVerifyAttempt(policy_.policy_data(), sig, this); | 278 service_->StartVerifyAttempt(policy_.policy_data(), sig, this); |
| 279 } | 279 } |
| 280 | 280 |
| 281 void RetrievePolicyOp::PerformCallback(SignedSettings::ReturnCode code, | 281 void RetrievePolicyOp::PerformCallback(SignedSettings::ReturnCode code, |
| 282 const em::PolicyFetchResponse& value) { | 282 const em::PolicyFetchResponse& value) { |
| 283 d_->OnSettingsOpCompleted(code, value); | 283 d_->OnSettingsOpCompleted(code, value); |
| 284 } | 284 } |
| 285 | 285 |
| 286 } // namespace chromeos | 286 } // namespace chromeos |
| OLD | NEW |