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

Side by Side Diff: chrome/browser/ui/webui/help/version_updater_basic.h

Issue 2039273003: Cleanup: Remove VersionUpdater::RelaunchBrowser interface method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comment. Created 4 years, 6 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 #ifndef CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_BASIC_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_BASIC_H_
6 #define CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_BASIC_H_ 6 #define CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_BASIC_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "chrome/browser/ui/webui/help/version_updater.h" 10 #include "chrome/browser/ui/webui/help/version_updater.h"
11 11
12 // Bare bones implementation just checks if a new version is ready. 12 // Bare bones implementation just checks if a new version is ready.
13 class VersionUpdaterBasic : public VersionUpdater { 13 class VersionUpdaterBasic : public VersionUpdater {
14 public: 14 public:
15 // VersionUpdater implementation. 15 // VersionUpdater implementation.
16 void CheckForUpdate(const StatusCallback& callback, 16 void CheckForUpdate(const StatusCallback& callback,
17 const PromoteCallback&) override; 17 const PromoteCallback&) override;
18 void RelaunchBrowser() const override;
19
20 protected: 18 protected:
21 friend class VersionUpdater; 19 friend class VersionUpdater;
22 20
23 // Clients must use VersionUpdater::Create(). 21 // Clients must use VersionUpdater::Create().
24 VersionUpdaterBasic() {} 22 VersionUpdaterBasic() {}
25 ~VersionUpdaterBasic() override {} 23 ~VersionUpdaterBasic() override {}
26 24
27 private: 25 private:
28 DISALLOW_COPY_AND_ASSIGN(VersionUpdaterBasic); 26 DISALLOW_COPY_AND_ASSIGN(VersionUpdaterBasic);
29 }; 27 };
30 28
31 #endif // CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_BASIC_H_ 29 #endif // CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_BASIC_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/help/version_updater.h ('k') | chrome/browser/ui/webui/help/version_updater_basic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698