| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/ref_counted.h" | 10 #include "base/ref_counted.h" |
| 11 #include "base/stringprintf.h" | 11 #include "base/stringprintf.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/browser_thread.h" | |
| 15 #include "chrome/browser/chromeos/cros/cros_library.h" | 14 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 16 #include "chrome/browser/chromeos/cros/login_library.h" | 15 #include "chrome/browser/chromeos/cros/login_library.h" |
| 17 #include "chrome/browser/chromeos/login/authenticator.h" | 16 #include "chrome/browser/chromeos/login/authenticator.h" |
| 18 #include "chrome/browser/chromeos/login/ownership_service.h" | 17 #include "chrome/browser/chromeos/login/ownership_service.h" |
| 19 #include "chrome/browser/chromeos/login/signed_settings_temp_storage.h" | 18 #include "chrome/browser/chromeos/login/signed_settings_temp_storage.h" |
| 19 #include "content/browser/browser_thread.h" |
| 20 | 20 |
| 21 namespace chromeos { | 21 namespace chromeos { |
| 22 | 22 |
| 23 SignedSettings::SignedSettings() | 23 SignedSettings::SignedSettings() |
| 24 : service_(OwnershipService::GetSharedInstance()) { | 24 : service_(OwnershipService::GetSharedInstance()) { |
| 25 } | 25 } |
| 26 | 26 |
| 27 SignedSettings::~SignedSettings() {} | 27 SignedSettings::~SignedSettings() {} |
| 28 | 28 |
| 29 SignedSettings::ReturnCode SignedSettings::MapKeyOpCode( | 29 SignedSettings::ReturnCode SignedSettings::MapKeyOpCode( |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 } | 346 } |
| 347 // Now, sure we're on the UI thread. | 347 // Now, sure we're on the UI thread. |
| 348 if (return_code == OwnerManager::SUCCESS) | 348 if (return_code == OwnerManager::SUCCESS) |
| 349 d_->OnSettingsOpCompleted(SUCCESS, value_); | 349 d_->OnSettingsOpCompleted(SUCCESS, value_); |
| 350 else | 350 else |
| 351 d_->OnSettingsOpCompleted(SignedSettings::MapKeyOpCode(return_code), | 351 d_->OnSettingsOpCompleted(SignedSettings::MapKeyOpCode(return_code), |
| 352 std::string()); | 352 std::string()); |
| 353 } | 353 } |
| 354 | 354 |
| 355 } // namespace chromeos | 355 } // namespace chromeos |
| OLD | NEW |