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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller.h" 5 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller.h"
6 6
7 #include "base/mac/scoped_nsobject.h" 7 #include "base/mac/scoped_nsobject.h"
8 #import "chrome/browser/ui/cocoa/browser_window_controller.h" 8 #import "chrome/browser/ui/cocoa/browser_window_controller.h"
9 #import "chrome/browser/ui/cocoa/info_bubble_view.h" 9 #import "chrome/browser/ui/cocoa/info_bubble_view.h"
10 #import "chrome/browser/ui/cocoa/info_bubble_window.h" 10 #import "chrome/browser/ui/cocoa/info_bubble_window.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 #pragma mark ManagePasswordsBubbleContentViewDelegate 95 #pragma mark ManagePasswordsBubbleContentViewDelegate
96 96
97 - (void)viewShouldDismiss { 97 - (void)viewShouldDismiss {
98 [self close]; 98 [self close];
99 } 99 }
100 100
101 #pragma mark ManagePasswordsBubblePendingViewDelegate 101 #pragma mark ManagePasswordsBubblePendingViewDelegate
102 102
103 - (void)passwordShouldNeverBeSavedOnSiteWithExistingPasswords { 103 - (void)passwordShouldNeverBeSavedOnSiteWithExistingPasswords {
104 // TODO(dconnelly): Set the NeverSaveViewController once it's implemented. 104 currentController_.reset([[ManagePasswordsBubbleNeverSaveViewController alloc]
105 initWithModel:model_
106 delegate:self]);
105 [self performLayout]; 107 [self performLayout];
106 } 108 }
107 109
110 #pragma mark ManagePasswordsBubbleNeverSaveViewDelegate
111
112 - (void)neverSavePasswordCancelled {
113 [self updateState];
114 }
115
108 @end 116 @end
109 117
110 @implementation ManagePasswordsBubbleController (Testing) 118 @implementation ManagePasswordsBubbleController (Testing)
111 119
112 - (NSViewController*)currentController { 120 - (NSViewController*)currentController {
113 return currentController_.get(); 121 return currentController_.get();
114 } 122 }
115 123
116 @end 124 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698