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/ownership/owner_settings_service_chromeos.h" | 14 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h" |
15 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos_fact
ory.h" | 15 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos_fact
ory.h" |
16 #include "chrome/browser/chromeos/settings/cros_settings.h" | 16 #include "chrome/browser/chromeos/settings/cros_settings.h" |
17 #include "chrome/browser/ui/webui/help/help_utils_chromeos.h" | 17 #include "chrome/browser/ui/webui/help/help_utils_chromeos.h" |
18 #include "chrome/grit/generated_resources.h" | 18 #include "chrome/grit/generated_resources.h" |
19 #include "chromeos/dbus/dbus_thread_manager.h" | 19 #include "chromeos/dbus/dbus_thread_manager.h" |
20 #include "chromeos/dbus/power_manager_client.h" | 20 #include "chromeos/dbus/power_manager_client.h" |
21 #include "chromeos/network/network_handler.h" | 21 #include "chromeos/network/network_handler.h" |
22 #include "chromeos/network/network_state.h" | 22 #include "chromeos/network/network_state.h" |
23 #include "chromeos/network/network_state_handler.h" | 23 #include "chromeos/network/network_state_handler.h" |
24 #include "chromeos/settings/cros_settings_names.h" | 24 #include "chromeos/settings/cros_settings_names.h" |
25 #include "content/public/browser/web_contents.h" | 25 #include "content/public/browser/web_contents.h" |
26 #include "third_party/cros_system_api/dbus/service_constants.h" | |
27 #include "ui/base/l10n/l10n_util.h" | 26 #include "ui/base/l10n/l10n_util.h" |
28 | 27 |
29 using chromeos::CrosSettings; | 28 using chromeos::CrosSettings; |
30 using chromeos::DBusThreadManager; | 29 using chromeos::DBusThreadManager; |
31 using chromeos::OwnerSettingsServiceChromeOS; | 30 using chromeos::OwnerSettingsServiceChromeOS; |
32 using chromeos::OwnerSettingsServiceChromeOSFactory; | 31 using chromeos::OwnerSettingsServiceChromeOSFactory; |
33 using chromeos::UpdateEngineClient; | 32 using chromeos::UpdateEngineClient; |
34 using chromeos::WizardController; | 33 using chromeos::WizardController; |
35 | 34 |
36 namespace { | 35 namespace { |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 } | 256 } |
258 } | 257 } |
259 | 258 |
260 void VersionUpdaterCros::OnUpdateCheck( | 259 void VersionUpdaterCros::OnUpdateCheck( |
261 UpdateEngineClient::UpdateCheckResult result) { | 260 UpdateEngineClient::UpdateCheckResult result) { |
262 // If version updating is not implemented, this binary is the most up-to-date | 261 // If version updating is not implemented, this binary is the most up-to-date |
263 // possible with respect to automatic updating. | 262 // possible with respect to automatic updating. |
264 if (result == UpdateEngineClient::UPDATE_RESULT_NOTIMPLEMENTED) | 263 if (result == UpdateEngineClient::UPDATE_RESULT_NOTIMPLEMENTED) |
265 callback_.Run(UPDATED, 0, base::string16()); | 264 callback_.Run(UPDATED, 0, base::string16()); |
266 } | 265 } |
OLD | NEW |