| 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/settings/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/login/authenticator.h" | 15 #include "chrome/browser/chromeos/login/authenticator.h" |
| 16 #include "chrome/browser/chromeos/login/ownership_service.h" | 16 #include "chrome/browser/chromeos/settings/ownership_service.h" |
| 17 #include "chrome/browser/policy/proto/chrome_device_policy.pb.h" | 17 #include "chrome/browser/policy/proto/chrome_device_policy.pb.h" |
| 18 #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" | 19 #include "chromeos/dbus/dbus_thread_manager.h" |
| 20 #include "chromeos/dbus/session_manager_client.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; |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 sig.assign(sig_ptr, sig_ptr + policy_.policy_data_signature().length()); | 281 sig.assign(sig_ptr, sig_ptr + policy_.policy_data_signature().length()); |
| 282 service_->StartVerifyAttempt(policy_.policy_data(), sig, this); | 282 service_->StartVerifyAttempt(policy_.policy_data(), sig, this); |
| 283 } | 283 } |
| 284 | 284 |
| 285 void RetrievePolicyOp::PerformCallback(SignedSettings::ReturnCode code, | 285 void RetrievePolicyOp::PerformCallback(SignedSettings::ReturnCode code, |
| 286 const em::PolicyFetchResponse& value) { | 286 const em::PolicyFetchResponse& value) { |
| 287 d_->OnSettingsOpCompleted(code, value); | 287 d_->OnSettingsOpCompleted(code, value); |
| 288 } | 288 } |
| 289 | 289 |
| 290 } // namespace chromeos | 290 } // namespace chromeos |
| OLD | NEW |