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

Unified Diff: chrome/browser/infobars/infobar_manager.h

Issue 243953002: Update PasswordManagerBrowserTest to use the new Observer class from InfoBarManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 6 years, 8 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/infobars/infobar_manager.h
diff --git a/chrome/browser/infobars/infobar_manager.h b/chrome/browser/infobars/infobar_manager.h
index f11768c59ae361ba20f6d35b56c36811097715bf..3b5b37947bb16963af1f5208dc1c208f42acd3c7 100644
--- a/chrome/browser/infobars/infobar_manager.h
+++ b/chrome/browser/infobars/infobar_manager.h
@@ -24,11 +24,13 @@ class InfoBarManager {
// Observer class for infobar events.
class Observer {
public:
- virtual void OnInfoBarAdded(InfoBar* infobar) = 0;
- virtual void OnInfoBarRemoved(InfoBar* infobar, bool animate) = 0;
+ virtual ~Observer() {}
Ilya Sherman 2014/04/19 19:46:04 nit: I don't think you need to explicitly define t
tfarina 2014/04/19 22:03:23 Done.
+
+ virtual void OnInfoBarAdded(InfoBar* infobar) {}
+ virtual void OnInfoBarRemoved(InfoBar* infobar, bool animate) {}
virtual void OnInfoBarReplaced(InfoBar* old_infobar,
- InfoBar* new_infobar) = 0;
- virtual void OnManagerShuttingDown(InfoBarManager* manager) = 0;
+ InfoBar* new_infobar) {}
+ virtual void OnManagerShuttingDown(InfoBarManager* manager) {}
};
InfoBarManager();

Powered by Google App Engine
This is Rietveld 408576698