| 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/ui/webui/help/version_updater_chromeos.h" | 5 #include "chrome/browser/ui/webui/help/version_updater_chromeos.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "chrome/browser/chromeos/cros_settings.h" | 9 #include "chrome/browser/chromeos/cros_settings.h" |
| 10 #include "chrome/browser/chromeos/cros_settings_names.h" | 10 #include "chrome/browser/chromeos/cros_settings_names.h" |
| 11 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" | |
| 12 #include "chrome/browser/chromeos/dbus/power_manager_client.h" | |
| 13 #include "chrome/browser/chromeos/login/user_manager.h" | 11 #include "chrome/browser/chromeos/login/user_manager.h" |
| 14 #include "chrome/browser/chromeos/login/wizard_controller.h" | 12 #include "chrome/browser/chromeos/login/wizard_controller.h" |
| 13 #include "chromeos/dbus/dbus_thread_manager.h" |
| 14 #include "chromeos/dbus/power_manager_client.h" |
| 15 | 15 |
| 16 using chromeos::CrosSettings; | 16 using chromeos::CrosSettings; |
| 17 using chromeos::DBusThreadManager; | 17 using chromeos::DBusThreadManager; |
| 18 using chromeos::UpdateEngineClient; | 18 using chromeos::UpdateEngineClient; |
| 19 using chromeos::UserManager; | 19 using chromeos::UserManager; |
| 20 using chromeos::WizardController; | 20 using chromeos::WizardController; |
| 21 | 21 |
| 22 VersionUpdater* VersionUpdater::Create() { | 22 VersionUpdater* VersionUpdater::Create() { |
| 23 return new VersionUpdaterCros; | 23 return new VersionUpdaterCros; |
| 24 } | 24 } |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 UpdateEngineClient::UpdateCheckResult result) { | 108 UpdateEngineClient::UpdateCheckResult result) { |
| 109 // If version updating is not implemented, this binary is the most up-to-date | 109 // If version updating is not implemented, this binary is the most up-to-date |
| 110 // possible with respect to automatic updating. | 110 // possible with respect to automatic updating. |
| 111 if (result == UpdateEngineClient::UPDATE_RESULT_NOTIMPLEMENTED) | 111 if (result == UpdateEngineClient::UPDATE_RESULT_NOTIMPLEMENTED) |
| 112 callback_.Run(UPDATED, 0, string16()); | 112 callback_.Run(UPDATED, 0, string16()); |
| 113 } | 113 } |
| 114 | 114 |
| 115 void VersionUpdaterCros::UpdateSelectedChannel(const std::string& channel) { | 115 void VersionUpdaterCros::UpdateSelectedChannel(const std::string& channel) { |
| 116 channel_callback_.Run(channel); | 116 channel_callback_.Run(channel); |
| 117 } | 117 } |
| OLD | NEW |