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

Side by Side Diff: chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller.h

Issue 563093003: Fix Mac password bubble crash due to the "nope" menu hanging around. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
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 #ifndef CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
11 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" 11 #import "chrome/browser/ui/cocoa/base_bubble_controller.h"
12 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_content_view_ controller.h" 12 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_content_view_ controller.h"
13 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_never_save_vi ew_controller.h" 13 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_never_save_vi ew_controller.h"
14 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_pending_view_ controller.h" 14 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_pending_view_ controller.h"
15 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" 15 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h"
16 16
17 // Controller for the Cocoa manage passwords bubble. Transitions through several 17 // Controller for the Cocoa manage passwords bubble. Transitions through several
18 // views according to user interaction and updates the password management state 18 // views according to user interaction and updates the password management state
19 // accordingly. 19 // accordingly.
20 @interface ManagePasswordsBubbleController 20 @interface ManagePasswordsBubbleController
21 : BaseBubbleController<ManagePasswordsBubbleContentViewDelegate, 21 : BaseBubbleController<ManagePasswordsBubbleContentViewDelegate,
22 ManagePasswordsBubbleNeverSaveViewDelegate, 22 ManagePasswordsBubbleNeverSaveViewDelegate,
23 ManagePasswordsBubblePendingViewDelegate> { 23 ManagePasswordsBubblePendingViewDelegate> {
24 @private 24 @private
25 ManagePasswordsBubbleModel* model_; 25 ManagePasswordsBubbleModel* model_;
26 base::scoped_nsobject<NSViewController> currentController_; 26 base::scoped_nsobject<ManagePasswordsBubbleContentViewController>
27 currentController_;
27 } 28 }
28 - (id)initWithParentWindow:(NSWindow*)parentWindow 29 - (id)initWithParentWindow:(NSWindow*)parentWindow
29 model:(ManagePasswordsBubbleModel*)model; 30 model:(ManagePasswordsBubbleModel*)model;
30 @end 31 @end
31 32
32 @interface ManagePasswordsBubbleController (Testing) 33 @interface ManagePasswordsBubbleController (Testing)
33 @property(readonly) NSViewController* currentController; 34 @property(readonly) NSViewController* currentController;
34 @end 35 @end
35 36
36 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_CONTROLLER_ H_ 37 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_CONTROLLER_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698