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

Unified Diff: chrome/browser/extensions/api/braille_display_private/braille_display_private_api.h

Issue 666153002: Standardize usage of virtual/override/final in chrome/browser/extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/braille_display_private/braille_display_private_api.h
diff --git a/chrome/browser/extensions/api/braille_display_private/braille_display_private_api.h b/chrome/browser/extensions/api/braille_display_private/braille_display_private_api.h
index d27554edfaf6f4b9fad9e6cb0adeaabca19a1fe9..c1b23e77e722f46b246a430ed0cfdfc55d242ee9 100644
--- a/chrome/browser/extensions/api/braille_display_private/braille_display_private_api.h
+++ b/chrome/browser/extensions/api/braille_display_private/braille_display_private_api.h
@@ -27,25 +27,24 @@ class BrailleDisplayPrivateAPI : public BrowserContextKeyedAPI,
EventRouter::Observer {
public:
explicit BrailleDisplayPrivateAPI(content::BrowserContext* context);
- virtual ~BrailleDisplayPrivateAPI();
+ ~BrailleDisplayPrivateAPI() override;
// ProfileKeyedService implementation.
- virtual void Shutdown() override;
+ void Shutdown() override;
// BrowserContextKeyedAPI implementation.
static BrowserContextKeyedAPIFactory<BrailleDisplayPrivateAPI>*
GetFactoryInstance();
// BrailleObserver implementation.
- virtual void OnBrailleDisplayStateChanged(
+ void OnBrailleDisplayStateChanged(
const api::braille_display_private::DisplayState& display_state) override;
- virtual void OnBrailleKeyEvent(
+ void OnBrailleKeyEvent(
const api::braille_display_private::KeyEvent& keyEvent) override;
// EventRouter::Observer implementation.
- virtual void OnListenerAdded(const EventListenerInfo& details) override;
- virtual void OnListenerRemoved(const EventListenerInfo& details) override;
-
+ void OnListenerAdded(const EventListenerInfo& details) override;
+ void OnListenerRemoved(const EventListenerInfo& details) override;
private:
friend class BrowserContextKeyedAPIFactory<BrailleDisplayPrivateAPI>;
@@ -85,10 +84,10 @@ class BrailleDisplayPrivateGetDisplayStateFunction : public AsyncApiFunction {
DECLARE_EXTENSION_FUNCTION("brailleDisplayPrivate.getDisplayState",
BRAILLEDISPLAYPRIVATE_GETDISPLAYSTATE)
protected:
- virtual ~BrailleDisplayPrivateGetDisplayStateFunction() {}
- virtual bool Prepare() override;
- virtual void Work() override;
- virtual bool Respond() override;
+ ~BrailleDisplayPrivateGetDisplayStateFunction() override {}
+ bool Prepare() override;
+ void Work() override;
+ bool Respond() override;
};
class BrailleDisplayPrivateWriteDotsFunction : public AsyncApiFunction {
@@ -98,10 +97,10 @@ class BrailleDisplayPrivateWriteDotsFunction : public AsyncApiFunction {
BrailleDisplayPrivateWriteDotsFunction();
protected:
- virtual ~BrailleDisplayPrivateWriteDotsFunction();
- virtual bool Prepare() override;
- virtual void Work() override;
- virtual bool Respond() override;
+ ~BrailleDisplayPrivateWriteDotsFunction() override;
+ bool Prepare() override;
+ void Work() override;
+ bool Respond() override;
private:
scoped_ptr<braille_display_private::WriteDots::Params> params_;

Powered by Google App Engine
This is Rietveld 408576698