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

Unified Diff: trunk/src/chrome/browser/ui/cocoa/infobars/infobar_controller.mm

Issue 102163002: Revert 238283 "Infobar system refactor." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years 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: trunk/src/chrome/browser/ui/cocoa/infobars/infobar_controller.mm
===================================================================
--- trunk/src/chrome/browser/ui/cocoa/infobars/infobar_controller.mm (revision 238401)
+++ trunk/src/chrome/browser/ui/cocoa/infobars/infobar_controller.mm (working copy)
@@ -116,16 +116,13 @@
}
- (void)removeSelf {
- infobar_->RemoveSelf();
+ infobar_->RemoveSelfCocoa();
}
- (void)addAdditionalControls {
// Default implementation does nothing.
}
-- (void)infobarWillHide {
-}
-
- (void)infobarWillClose {
}
@@ -152,6 +149,9 @@
}
- (void)disablePopUpMenu:(NSMenu*)menu {
+ // Remove the menu if visible.
+ [menu cancelTracking];
+
// If the menu is re-opened, prevent queries to update items.
[menu setDelegate:nil];

Powered by Google App Engine
This is Rietveld 408576698