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

Side by Side Diff: chrome/browser/password_manager/account_chooser_infobar_delegate_android.h

Issue 1009953002: Integrate ManagePasswordsState into ManagePasswordsUIController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: last comments Created 5 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/password_manager/account_chooser_infobar_delegate_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PASSWORD_MANAGER_ACCOUNT_CHOOSER_INFOBAR_DELEGATE_ANDROID _H_ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_ACCOUNT_CHOOSER_INFOBAR_DELEGATE_ANDROID _H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_ACCOUNT_CHOOSER_INFOBAR_DELEGATE_ANDROID _H_ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_ACCOUNT_CHOOSER_INFOBAR_DELEGATE_ANDROID _H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" 9 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h"
10 #include "components/infobars/core/infobar_delegate.h" 10 #include "components/infobars/core/infobar_delegate.h"
(...skipping 11 matching lines...) Expand all
22 // Android-only infobar delegate to allow user to choose credentials for login. 22 // Android-only infobar delegate to allow user to choose credentials for login.
23 class AccountChooserInfoBarDelegateAndroid : public infobars::InfoBarDelegate { 23 class AccountChooserInfoBarDelegateAndroid : public infobars::InfoBarDelegate {
24 public: 24 public:
25 // Creates an account chooser infobar and delegate and adds the infobar to 25 // Creates an account chooser infobar and delegate and adds the infobar to
26 // |infobar_service|. 26 // |infobar_service|.
27 static void Create(InfoBarService* infobar_service, 27 static void Create(InfoBarService* infobar_service,
28 ManagePasswordsUIController* ui_controller); 28 ManagePasswordsUIController* ui_controller);
29 29
30 ~AccountChooserInfoBarDelegateAndroid() override; 30 ~AccountChooserInfoBarDelegateAndroid() override;
31 31
32 const ScopedVector<autofill::PasswordForm>& local_credentials_forms() const { 32 const std::vector<const autofill::PasswordForm*>&
33 return ui_controller_->local_credentials_forms(); 33 local_credentials_forms() const {
34 return ui_controller_->GetCurrentForms();
34 } 35 }
35 36
36 void ChooseCredential(size_t credential_index, 37 void ChooseCredential(size_t credential_index,
37 password_manager::CredentialType credential_type); 38 password_manager::CredentialType credential_type);
38 39
39 private: 40 private:
40 explicit AccountChooserInfoBarDelegateAndroid( 41 explicit AccountChooserInfoBarDelegateAndroid(
41 ManagePasswordsUIController* ui_controller); 42 ManagePasswordsUIController* ui_controller);
42 43
43 // infobars::InfoBarDelegate: 44 // infobars::InfoBarDelegate:
44 void InfoBarDismissed() override; 45 void InfoBarDismissed() override;
45 Type GetInfoBarType() const override; 46 Type GetInfoBarType() const override;
46 47
47 // Owned by WebContents. 48 // Owned by WebContents.
48 ManagePasswordsUIController* ui_controller_; 49 ManagePasswordsUIController* ui_controller_;
49 50
50 DISALLOW_COPY_AND_ASSIGN(AccountChooserInfoBarDelegateAndroid); 51 DISALLOW_COPY_AND_ASSIGN(AccountChooserInfoBarDelegateAndroid);
51 }; 52 };
52 53
53 #endif // CHROME_BROWSER_PASSWORD_MANAGER_ACCOUNT_CHOOSER_INFOBAR_DELEGATE_ANDR OID_H_ 54 #endif // CHROME_BROWSER_PASSWORD_MANAGER_ACCOUNT_CHOOSER_INFOBAR_DELEGATE_ANDR OID_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/password_manager/account_chooser_infobar_delegate_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698