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

Side by Side Diff: chrome/browser/extensions/extension_test_notification_observer.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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/extensions/extension_test_notification_observer.h" 5 #include "chrome/browser/extensions/extension_test_notification_observer.h"
6 6
7 #include "base/callback_list.h" 7 #include "base/callback_list.h"
8 #include "chrome/browser/extensions/extension_action_test_util.h" 8 #include "chrome/browser/extensions/extension_action_test_util.h"
9 #include "chrome/browser/extensions/extension_service.h" 9 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/browser/profiles/profile_manager.h" 10 #include "chrome/browser/profiles/profile_manager.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // Notified any time an Add()ed notification is received. 60 // Notified any time an Add()ed notification is received.
61 // The details of the notification are dropped. 61 // The details of the notification are dropped.
62 base::CallbackList<void()>& callback_list() { 62 base::CallbackList<void()>& callback_list() {
63 return callback_list_; 63 return callback_list_;
64 } 64 }
65 65
66 private: 66 private:
67 // content::NotificationObserver: 67 // content::NotificationObserver:
68 virtual void Observe(int type, 68 virtual void Observe(int type,
69 const content::NotificationSource& source, 69 const content::NotificationSource& source,
70 const content::NotificationDetails& details) OVERRIDE; 70 const content::NotificationDetails& details) override;
71 71
72 content::NotificationRegistrar notification_registrar_; 72 content::NotificationRegistrar notification_registrar_;
73 base::CallbackList<void()> callback_list_; 73 base::CallbackList<void()> callback_list_;
74 }; 74 };
75 75
76 void ExtensionTestNotificationObserver::NotificationSet::Add( 76 void ExtensionTestNotificationObserver::NotificationSet::Add(
77 int type, 77 int type,
78 const content::NotificationSource& source) { 78 const content::NotificationSource& source) {
79 notification_registrar_.Add(this, type, source); 79 notification_registrar_.Add(this, type, source);
80 } 80 }
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 runner->Run(); 280 runner->Run();
281 281
282 condition_.Reset(); 282 condition_.Reset();
283 quit_closure_.Reset(); 283 quit_closure_.Reset();
284 } 284 }
285 285
286 void ExtensionTestNotificationObserver::MaybeQuit() { 286 void ExtensionTestNotificationObserver::MaybeQuit() {
287 if (condition_.Run()) 287 if (condition_.Run())
288 quit_closure_.Run(); 288 quit_closure_.Run();
289 } 289 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_test_notification_observer.h ('k') | chrome/browser/extensions/extension_toolbar_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698