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

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

Issue 450643003: Add ManagePasswordsBubbleNeverSaveViewController and unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: style 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 6b368d8111125c0f3339bd6cbb700841bbfb5349..ac2b825a1e46a06483872ff431d2ae6b086069b8 100644
--- a/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller.mm
+++ b/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller.mm
@@ -101,10 +101,18 @@
#pragma mark ManagePasswordsBubblePendingViewDelegate
- (void)passwordShouldNeverBeSavedOnSiteWithExistingPasswords {
- // TODO(dconnelly): Set the NeverSaveViewController once it's implemented.
+ currentController_.reset([[ManagePasswordsBubbleNeverSaveViewController alloc]
+ initWithModel:model_
+ delegate:self]);
[self performLayout];
}
+#pragma mark ManagePasswordsBubbleNeverSaveViewDelegate
+
+- (void)neverSavePasswordCancelled {
+ [self updateState];
+}
+
@end
@implementation ManagePasswordsBubbleController (Testing)

Powered by Google App Engine
This is Rietveld 408576698