| 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 <cmath> | 7 #include <cmath> |
| 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/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
| 12 #include "chrome/browser/chromeos/login/startup_utils.h" | 12 #include "chrome/browser/chromeos/login/startup_utils.h" |
| 13 #include "chrome/browser/chromeos/login/wizard_controller.h" | 13 #include "chrome/browser/chromeos/login/wizard_controller.h" |
| 14 #include "chrome/browser/chromeos/settings/cros_settings.h" | 14 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 15 #include "chrome/browser/ui/webui/help/help_utils_chromeos.h" | 15 #include "chrome/browser/ui/webui/help/help_utils_chromeos.h" |
| 16 #include "chrome/grit/generated_resources.h" |
| 16 #include "chromeos/dbus/dbus_thread_manager.h" | 17 #include "chromeos/dbus/dbus_thread_manager.h" |
| 17 #include "chromeos/dbus/power_manager_client.h" | 18 #include "chromeos/dbus/power_manager_client.h" |
| 18 #include "chromeos/network/network_handler.h" | 19 #include "chromeos/network/network_handler.h" |
| 19 #include "chromeos/network/network_state.h" | 20 #include "chromeos/network/network_state.h" |
| 20 #include "chromeos/network/network_state_handler.h" | 21 #include "chromeos/network/network_state_handler.h" |
| 21 #include "chromeos/settings/cros_settings_names.h" | 22 #include "chromeos/settings/cros_settings_names.h" |
| 22 #include "components/user_manager/user_manager.h" | 23 #include "components/user_manager/user_manager.h" |
| 23 #include "grit/generated_resources.h" | |
| 24 #include "third_party/cros_system_api/dbus/service_constants.h" | 24 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 25 #include "ui/base/l10n/l10n_util.h" | 25 #include "ui/base/l10n/l10n_util.h" |
| 26 | 26 |
| 27 using chromeos::CrosSettings; | 27 using chromeos::CrosSettings; |
| 28 using chromeos::DBusThreadManager; | 28 using chromeos::DBusThreadManager; |
| 29 using chromeos::UpdateEngineClient; | 29 using chromeos::UpdateEngineClient; |
| 30 using user_manager::UserManager; | 30 using user_manager::UserManager; |
| 31 using chromeos::WizardController; | 31 using chromeos::WizardController; |
| 32 | 32 |
| 33 namespace { | 33 namespace { |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 last_operation_ = status.status; | 231 last_operation_ = status.status; |
| 232 } | 232 } |
| 233 | 233 |
| 234 void VersionUpdaterCros::OnUpdateCheck( | 234 void VersionUpdaterCros::OnUpdateCheck( |
| 235 UpdateEngineClient::UpdateCheckResult result) { | 235 UpdateEngineClient::UpdateCheckResult result) { |
| 236 // If version updating is not implemented, this binary is the most up-to-date | 236 // If version updating is not implemented, this binary is the most up-to-date |
| 237 // possible with respect to automatic updating. | 237 // possible with respect to automatic updating. |
| 238 if (result == UpdateEngineClient::UPDATE_RESULT_NOTIMPLEMENTED) | 238 if (result == UpdateEngineClient::UPDATE_RESULT_NOTIMPLEMENTED) |
| 239 callback_.Run(UPDATED, 0, base::string16()); | 239 callback_.Run(UPDATED, 0, base::string16()); |
| 240 } | 240 } |
| OLD | NEW |