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

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

Issue 1100223002: Update {virtual,override} to follow C++11 style in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 8 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
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 "base/memory/ref_counted.h" 5 #include "base/memory/ref_counted.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "base/memory/weak_ptr.h" 7 #include "base/memory/weak_ptr.h"
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "base/version.h" 9 #include "base/version.h"
10 #include "base/win/win_util.h" 10 #include "base/win/win_util.h"
(...skipping 18 matching lines...) Expand all
29 29
30 // Windows implementation of version update functionality, used by the WebUI 30 // Windows implementation of version update functionality, used by the WebUI
31 // About/Help page. 31 // About/Help page.
32 class VersionUpdaterWin : public VersionUpdater { 32 class VersionUpdaterWin : public VersionUpdater {
33 private: 33 private:
34 friend class VersionReader; 34 friend class VersionReader;
35 friend class VersionUpdater; 35 friend class VersionUpdater;
36 36
37 // Clients must use VersionUpdater::Create(). 37 // Clients must use VersionUpdater::Create().
38 VersionUpdaterWin(); 38 VersionUpdaterWin();
39 virtual ~VersionUpdaterWin(); 39 ~VersionUpdaterWin() override;
40 40
41 // VersionUpdater implementation. 41 // VersionUpdater implementation.
42 virtual void CheckForUpdate(const StatusCallback& callback) override; 42 void CheckForUpdate(const StatusCallback& callback) override;
43 virtual void RelaunchBrowser() const override; 43 void RelaunchBrowser() const override;
44 44
45 // chrome::UpdateCheckCallback. 45 // chrome::UpdateCheckCallback.
46 void OnUpdateCheckResults(GoogleUpdateUpgradeResult result, 46 void OnUpdateCheckResults(GoogleUpdateUpgradeResult result,
47 GoogleUpdateErrorCode error_code, 47 GoogleUpdateErrorCode error_code,
48 const base::string16& error_message, 48 const base::string16& error_message,
49 const base::string16& version); 49 const base::string16& version);
50 50
51 // Update the UI to show the status of the upgrade. 51 // Update the UI to show the status of the upgrade.
52 void UpdateStatus(GoogleUpdateUpgradeResult result, 52 void UpdateStatus(GoogleUpdateUpgradeResult result,
53 GoogleUpdateErrorCode error_code, 53 GoogleUpdateErrorCode error_code,
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 BeginUpdateCheck(task_runner, install_if_newer, GetElevationParent(), 261 BeginUpdateCheck(task_runner, install_if_newer, GetElevationParent(),
262 base::Bind(&VersionUpdaterWin::OnUpdateCheckResults, 262 base::Bind(&VersionUpdaterWin::OnUpdateCheckResults,
263 weak_factory_.GetWeakPtr())); 263 weak_factory_.GetWeakPtr()));
264 } 264 }
265 265
266 } // namespace 266 } // namespace
267 267
268 VersionUpdater* VersionUpdater::Create(content::BrowserContext* /* context */) { 268 VersionUpdater* VersionUpdater::Create(content::BrowserContext* /* context */) {
269 return new VersionUpdaterWin; 269 return new VersionUpdaterWin;
270 } 270 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/uninstall_view.h ('k') | chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698