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

Side by Side Diff: chrome/browser/sync/sync_error_notifier_ash.cc

Issue 629603002: replace OVERRIDE and FINAL with override and final in chrome/browser/[r-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/sync/sync_error_notifier_ash.h" 5 #include "chrome/browser/sync/sync_error_notifier_ash.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/shell_delegate.h" 8 #include "ash/shell_delegate.h"
9 #include "ash/system/system_notifier.h" 9 #include "ash/system/system_notifier.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 27 matching lines...) Expand all
38 38
39 const char kProfileSyncNotificationId[] = "chrome://settings/sync/"; 39 const char kProfileSyncNotificationId[] = "chrome://settings/sync/";
40 40
41 // A simple notification delegate for the sync setup button. 41 // A simple notification delegate for the sync setup button.
42 class SyncNotificationDelegate : public NotificationDelegate { 42 class SyncNotificationDelegate : public NotificationDelegate {
43 public: 43 public:
44 SyncNotificationDelegate(const std::string& id, 44 SyncNotificationDelegate(const std::string& id,
45 Profile* profile); 45 Profile* profile);
46 46
47 // NotificationDelegate: 47 // NotificationDelegate:
48 virtual void Display() OVERRIDE; 48 virtual void Display() override;
49 virtual void Error() OVERRIDE; 49 virtual void Error() override;
50 virtual void Close(bool by_user) OVERRIDE; 50 virtual void Close(bool by_user) override;
51 virtual bool HasClickedListener() OVERRIDE; 51 virtual bool HasClickedListener() override;
52 virtual void Click() OVERRIDE; 52 virtual void Click() override;
53 virtual void ButtonClick(int button_index) OVERRIDE; 53 virtual void ButtonClick(int button_index) override;
54 virtual std::string id() const OVERRIDE; 54 virtual std::string id() const override;
55 virtual content::WebContents* GetWebContents() const OVERRIDE; 55 virtual content::WebContents* GetWebContents() const override;
56 56
57 protected: 57 protected:
58 virtual ~SyncNotificationDelegate(); 58 virtual ~SyncNotificationDelegate();
59 59
60 private: 60 private:
61 void ShowSyncSetup(); 61 void ShowSyncSetup();
62 62
63 // Unique id of the notification. 63 // Unique id of the notification.
64 const std::string id_; 64 const std::string id_;
65 65
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 ui::ResourceBundle::GetSharedInstance().GetImageNamed( 199 ui::ResourceBundle::GetSharedInstance().GetImageNamed(
200 IDR_NOTIFICATION_ALERT), 200 IDR_NOTIFICATION_ALERT),
201 blink::WebTextDirectionDefault, 201 blink::WebTextDirectionDefault,
202 notifier_id, 202 notifier_id,
203 base::string16(), // display_source 203 base::string16(), // display_source
204 base::ASCIIToUTF16(notification_id_), 204 base::ASCIIToUTF16(notification_id_),
205 data, 205 data,
206 delegate); 206 delegate);
207 notification_ui_manager->Add(notification, profile_); 207 notification_ui_manager->Add(notification, profile_);
208 } 208 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/sync_error_notifier_ash.h ('k') | chrome/browser/sync/sync_error_notifier_ash_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698