Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: chrome/browser/ui/webui/help/version_updater_chromeos.cc

Issue 2081873002: Incorporate comments in Dbus code and add Eol icon (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporate comments from isherman@ Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/webui/help/version_updater.h ('k') | chromeos/chromeos_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/help/version_updater.h ('k') | chromeos/chromeos_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698