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

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

Issue 1850923004: Disable the autofill password manager when a credential is sent via CM API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 8 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/chrome_password_manager_client.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 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_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 148
149 // Shows the dialog where the user can accept or decline the global autosignin 149 // Shows the dialog where the user can accept or decline the global autosignin
150 // setting as a first run experience. The dialog won't appear in Incognito or 150 // setting as a first run experience. The dialog won't appear in Incognito or
151 // when the autosign-in is off. 151 // when the autosign-in is off.
152 void PromptUserToEnableAutosigninIfNecessary(); 152 void PromptUserToEnableAutosigninIfNecessary();
153 153
154 // Notify the PasswordManager that generation is available for |form|. Used 154 // Notify the PasswordManager that generation is available for |form|. Used
155 // for UMA stats. 155 // for UMA stats.
156 void GenerationAvailableForForm(const autofill::PasswordForm& form); 156 void GenerationAvailableForForm(const autofill::PasswordForm& form);
157 157
158 // Called as a response to PromptUserToChooseCredentials. nullptr means that 158 // Called as a response to PromptUserToChooseCredentials. nullptr in |form|
159 // nothing was chosen. 159 // means that nothing was chosen. |one_local_credential| is true if there was
160 // just one local credential to be chosen from.
160 void OnCredentialsChosen(const CredentialsCallback& callback, 161 void OnCredentialsChosen(const CredentialsCallback& callback,
162 bool one_local_credential,
161 const autofill::PasswordForm* form); 163 const autofill::PasswordForm* form);
162 164
163 Profile* const profile_; 165 Profile* const profile_;
164 166
165 password_manager::PasswordManager password_manager_; 167 password_manager::PasswordManager password_manager_;
166 168
167 password_manager::ContentPasswordManagerDriverFactory* driver_factory_; 169 password_manager::ContentPasswordManagerDriverFactory* driver_factory_;
168 170
169 password_manager::CredentialManagerDispatcher 171 password_manager::CredentialManagerDispatcher
170 credential_manager_dispatcher_; 172 credential_manager_dispatcher_;
(...skipping 14 matching lines...) Expand all
185 std::unique_ptr<password_manager::LogManager> log_manager_; 187 std::unique_ptr<password_manager::LogManager> log_manager_;
186 188
187 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the 189 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the
188 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. 190 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'.
189 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_; 191 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_;
190 192
191 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); 193 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient);
192 }; 194 };
193 195
194 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ 196 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/password_manager/chrome_password_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698