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

Side by Side Diff: chrome/browser/notifications/extension_welcome_notification.h

Issue 624173002: replace OVERRIDE and FINAL with override and final in chrome/browser/[j-q]* (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 #ifndef CHROME_BROWSER_NOTIFICATIONS_EXTENSION_WELCOME_NOTIFICATION_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_EXTENSION_WELCOME_NOTIFICATION_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_EXTENSION_WELCOME_NOTIFICATION_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_EXTENSION_WELCOME_NOTIFICATION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // To workaround the lack of delegating constructors prior to C++11, we use 69 // To workaround the lack of delegating constructors prior to C++11, we use
70 // static Create methods. 70 // static Create methods.
71 // Creates an ExtensionWelcomeNotification with the default delegate. 71 // Creates an ExtensionWelcomeNotification with the default delegate.
72 static ExtensionWelcomeNotification* Create(Profile* const profile); 72 static ExtensionWelcomeNotification* Create(Profile* const profile);
73 73
74 // Creates an ExtensionWelcomeNotification with the specified delegate. 74 // Creates an ExtensionWelcomeNotification with the specified delegate.
75 static ExtensionWelcomeNotification* Create(Profile* const profile, 75 static ExtensionWelcomeNotification* Create(Profile* const profile,
76 Delegate* const delegate); 76 Delegate* const delegate);
77 77
78 // PrefServiceSyncableObserver 78 // PrefServiceSyncableObserver
79 virtual void OnIsSyncingChanged() OVERRIDE; 79 virtual void OnIsSyncingChanged() override;
80 80
81 // Adds in the welcome notification if required for components built 81 // Adds in the welcome notification if required for components built
82 // into Chrome that show notifications like Chrome Now. 82 // into Chrome that show notifications like Chrome Now.
83 void ShowWelcomeNotificationIfNecessary(const Notification& notification); 83 void ShowWelcomeNotificationIfNecessary(const Notification& notification);
84 84
85 // Handles Preference Registration for the Welcome Notification. 85 // Handles Preference Registration for the Welcome Notification.
86 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* prefs); 86 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* prefs);
87 87
88 private: 88 private:
89 enum PopUpRequest { POP_UP_HIDDEN = 0, POP_UP_SHOWN = 1, }; 89 enum PopUpRequest { POP_UP_HIDDEN = 0, POP_UP_SHOWN = 1, };
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 expiration_timer_; 155 expiration_timer_;
156 156
157 // Delegate for Chrome global calls like base::Time::GetTime() for 157 // Delegate for Chrome global calls like base::Time::GetTime() for
158 // testability. 158 // testability.
159 scoped_ptr<Delegate> delegate_; 159 scoped_ptr<Delegate> delegate_;
160 160
161 DISALLOW_COPY_AND_ASSIGN(ExtensionWelcomeNotification); 161 DISALLOW_COPY_AND_ASSIGN(ExtensionWelcomeNotification);
162 }; 162 };
163 163
164 #endif // CHROME_BROWSER_NOTIFICATIONS_EXTENSION_WELCOME_NOTIFICATION_H_ 164 #endif // CHROME_BROWSER_NOTIFICATIONS_EXTENSION_WELCOME_NOTIFICATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698