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

Unified Diff: chrome/browser/extensions/api/notifications/notifications_api.cc

Issue 624153002: replace OVERRIDE and FINAL with override and 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/notifications/notifications_api.cc
diff --git a/chrome/browser/extensions/api/notifications/notifications_api.cc b/chrome/browser/extensions/api/notifications/notifications_api.cc
index 631dbf4b219164e35619178184d2440805a7cc69..d5e6e56e4656c6a61bc4996bfea6e81dd97a397c 100644
--- a/chrome/browser/extensions/api/notifications/notifications_api.cc
+++ b/chrome/browser/extensions/api/notifications/notifications_api.cc
@@ -85,11 +85,11 @@ class NotificationsApiDelegate : public NotificationDelegate {
DCHECK(api_function_.get());
}
- virtual void Display() OVERRIDE { }
+ virtual void Display() override { }
- virtual void Error() OVERRIDE {}
+ virtual void Error() override {}
- virtual void Close(bool by_user) OVERRIDE {
+ virtual void Close(bool by_user) override {
EventRouter::UserGestureState gesture =
by_user ? EventRouter::USER_GESTURE_ENABLED
: EventRouter::USER_GESTURE_NOT_ENABLED;
@@ -98,19 +98,19 @@ class NotificationsApiDelegate : public NotificationDelegate {
SendEvent(notifications::OnClosed::kEventName, gesture, args.Pass());
}
- virtual void Click() OVERRIDE {
+ virtual void Click() override {
scoped_ptr<base::ListValue> args(CreateBaseEventArgs());
SendEvent(notifications::OnClicked::kEventName,
EventRouter::USER_GESTURE_ENABLED,
args.Pass());
}
- virtual bool HasClickedListener() OVERRIDE {
+ virtual bool HasClickedListener() override {
return EventRouter::Get(profile_)->HasEventListener(
notifications::OnClicked::kEventName);
}
- virtual void ButtonClick(int index) OVERRIDE {
+ virtual void ButtonClick(int index) override {
scoped_ptr<base::ListValue> args(CreateBaseEventArgs());
args->Append(new base::FundamentalValue(index));
SendEvent(notifications::OnButtonClicked::kEventName,
@@ -118,11 +118,11 @@ class NotificationsApiDelegate : public NotificationDelegate {
args.Pass());
}
- virtual std::string id() const OVERRIDE {
+ virtual std::string id() const override {
return scoped_id_;
}
- virtual content::WebContents* GetWebContents() const OVERRIDE {
+ virtual content::WebContents* GetWebContents() const override {
// We're holding a reference to api_function_, so we know it'll be valid
// until ReleaseRVH is called, and api_function_ (as a
// AsyncExtensionFunction) will zero out its copy of render_view_host
@@ -135,7 +135,7 @@ class NotificationsApiDelegate : public NotificationDelegate {
return content::WebContents::FromRenderViewHost(rvh);
}
- virtual void ReleaseRenderViewHost() OVERRIDE {
+ virtual void ReleaseRenderViewHost() override {
api_function_ = NULL;
}

Powered by Google App Engine
This is Rietveld 408576698