Index: chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller.mm |
diff --git a/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller.mm b/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller.mm |
index ac2b825a1e46a06483872ff431d2ae6b086069b8..1f6b53570d477116a8ea93662e7d7191b8979fb8 100644 |
--- a/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller.mm |
+++ b/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller.mm |
@@ -10,6 +10,7 @@ |
#import "chrome/browser/ui/cocoa/info_bubble_window.h" |
#import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_manage_view_controller.h" |
#include "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" |
+#import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_blacklist_view_controller.h" |
#import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_confirmation_view_controller.h" |
#include "ui/base/cocoa/window_size_constants.h" |
@@ -43,7 +44,6 @@ |
- (void)updateState { |
// Find the next view controller. |
- // TODO(dconnelly): Handle other states once they're implemented. |
currentController_.reset(); |
if (password_manager::ui::IsPendingState(model_->state())) { |
currentController_.reset( |
@@ -59,6 +59,13 @@ |
currentController_.reset([[ManagePasswordsBubbleManageViewController alloc] |
initWithModel:model_ |
delegate:self]); |
+ } else if (model_->state() == password_manager::ui::BLACKLIST_STATE) { |
+ currentController_.reset( |
+ [[ManagePasswordsBubbleBlacklistViewController alloc] |
+ initWithModel:model_ |
+ delegate:self]); |
+ } else { |
+ NOTREACHED(); |
} |
[self performLayout]; |
} |