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

Unified Diff: chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller.mm

Issue 479123003: Add ManagePasswordsBubbleConfirmationViewController and unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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/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 b8be2f43fa4a387267cf12a543f717bb63697bb3..d0b18cfd4e962f66d7750fbee75f81ac662e3311 100644
--- a/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller.mm
+++ b/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller.mm
@@ -9,6 +9,7 @@
#import "chrome/browser/ui/cocoa/info_bubble_view.h"
#import "chrome/browser/ui/cocoa/info_bubble_window.h"
#include "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h"
+#import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_confirmation_view_controller.h"
#include "ui/base/cocoa/window_size_constants.h"
@interface ManagePasswordsBubbleController ()
@@ -48,6 +49,11 @@
[[ManagePasswordsBubblePendingViewController alloc]
initWithModel:model_
delegate:self]);
+ } else if (model_->state() == password_manager::ui::CONFIRMATION_STATE) {
+ currentController_.reset(
+ [[ManagePasswordsBubbleConfirmationViewController alloc]
+ initWithModel:model_
+ delegate:self]);
}
[self performLayout];
}

Powered by Google App Engine
This is Rietveld 408576698