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

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

Issue 1645503002: Remove dangling ManagePasswordsBubbleModel pointers. Test that different password bubbles don't pin… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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_AUTO_SIGNIN_VIEW_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_PASSWORDS_AUTO_SIGNIN_VIEW_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_AUTO_SIGNIN_VIEW_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_AUTO_SIGNIN_VIEW_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 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #import "chrome/browser/ui/cocoa/passwords/base_passwords_content_view_controlle r.h" 12 #import "chrome/browser/ui/cocoa/passwords/base_passwords_content_view_controlle r.h"
13 13
14 @class AccountAvatarFetcherManager; 14 @class AccountAvatarFetcherManager;
15 @class CredentialItemView; 15 @class CredentialItemView;
16 class ManagePasswordsBubbleModel;
17 16
18 namespace base { 17 namespace base {
19 class Timer; 18 class Timer;
20 } // namespace base 19 } // namespace base
21 20
22 // Manages the view that informs the user they're being automatically signed in. 21 // Manages the view that informs the user they're being automatically signed in.
23 @interface ManagePasswordsBubbleAutoSigninViewController 22 @interface AutoSigninViewController : BasePasswordsContentViewController {
24 : ManagePasswordsBubbleContentViewController {
25 @private 23 @private
26 ManagePasswordsBubbleModel* model_; // weak
27 base::scoped_nsobject<CredentialItemView> credentialView_; 24 base::scoped_nsobject<CredentialItemView> credentialView_;
28 base::scoped_nsobject<AccountAvatarFetcherManager> avatarManager_; 25 base::scoped_nsobject<AccountAvatarFetcherManager> avatarManager_;
29 scoped_ptr<base::Timer> timer_; 26 scoped_ptr<base::Timer> timer_;
30 } 27 }
31 - (id)initWithModel:(ManagePasswordsBubbleModel*)model 28 - (instancetype)initWithDelegate:(id<BasePasswordsContentViewDelegate>)delegate;
32 delegate:(id<ManagePasswordsBubbleContentViewDelegate>)delegate;
33 @end 29 @end
34 30
35 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_AUTO_SIGNIN_VIEW_CONTROLLER_H_ 31 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_AUTO_SIGNIN_VIEW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698