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

Unified Diff: chrome/browser/ui/views/passwords/password_dialog_view_browsertest.cc

Issue 1735013004: CREDENTIAL: Only toggle 'skip_zero_click' state if API is used. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ugh. Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/passwords/password_dialog_view_browsertest.cc
diff --git a/chrome/browser/ui/views/passwords/password_dialog_view_browsertest.cc b/chrome/browser/ui/views/passwords/password_dialog_view_browsertest.cc
index 2f96f7f25034484c945885f2fa144ad893d2cd0e..9453c8a6d4ddce4139f03a5f6864c7181e785db3 100644
--- a/chrome/browser/ui/views/passwords/password_dialog_view_browsertest.cc
+++ b/chrome/browser/ui/views/passwords/password_dialog_view_browsertest.cc
@@ -406,12 +406,12 @@ IN_PROC_BROWSER_TEST_F(PasswordDialogViewTest,
// Blocked automatic sign-in will not prompt:
scoped_ptr<autofill::PasswordForm> blocked_form(
new autofill::PasswordForm(form));
- client()->NotifyUserAutoSigninBlockedOnFirstRun(std::move(blocked_form));
+ client()->NotifyUserCouldBeAutoSignedIn(std::move(blocked_form));
ASSERT_FALSE(controller()->current_autosignin_prompt());
// Successful login with a distinct form after block will not prompt:
blocked_form.reset(new autofill::PasswordForm(form));
- client()->NotifyUserAutoSigninBlockedOnFirstRun(std::move(blocked_form));
+ client()->NotifyUserCouldBeAutoSignedIn(std::move(blocked_form));
form.username_value = base::ASCIIToUTF16("notpeter@pan.test");
client()->NotifySuccessfulLoginWithExistingPassword(form);
ASSERT_FALSE(controller()->current_autosignin_prompt());
@@ -421,7 +421,7 @@ IN_PROC_BROWSER_TEST_F(PasswordDialogViewTest,
browser()->profile()->GetPrefs()->SetBoolean(
password_manager::prefs::kCredentialsEnableAutosignin, false);
blocked_form.reset(new autofill::PasswordForm(form));
- client()->NotifyUserAutoSigninBlockedOnFirstRun(std::move(blocked_form));
+ client()->NotifyUserCouldBeAutoSignedIn(std::move(blocked_form));
client()->NotifySuccessfulLoginWithExistingPassword(form);
ASSERT_FALSE(controller()->current_autosignin_prompt());
browser()->profile()->GetPrefs()->SetBoolean(
@@ -429,7 +429,7 @@ IN_PROC_BROWSER_TEST_F(PasswordDialogViewTest,
// Successful login with the same form after block will prompt:
blocked_form.reset(new autofill::PasswordForm(form));
- client()->NotifyUserAutoSigninBlockedOnFirstRun(std::move(blocked_form));
+ client()->NotifyUserCouldBeAutoSignedIn(std::move(blocked_form));
client()->NotifySuccessfulLoginWithExistingPassword(form);
ASSERT_TRUE(controller()->current_autosignin_prompt());
}

Powered by Google App Engine
This is Rietveld 408576698