OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "base/memory/ptr_util.h" |
5 #include "base/strings/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
6 #include "chrome/browser/password_manager/chrome_password_manager_client.h" | 7 #include "chrome/browser/password_manager/chrome_password_manager_client.h" |
7 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
8 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
9 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" | 10 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" |
10 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 11 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
11 #include "chrome/browser/ui/views/frame/browser_view.h" | 12 #include "chrome/browser/ui/views/frame/browser_view.h" |
12 #include "chrome/browser/ui/views/passwords/account_chooser_dialog_view.h" | 13 #include "chrome/browser/ui/views/passwords/account_chooser_dialog_view.h" |
13 #include "chrome/browser/ui/views/passwords/auto_signin_first_run_dialog_view.h" | 14 #include "chrome/browser/ui/views/passwords/auto_signin_first_run_dialog_view.h" |
14 #include "chrome/test/base/in_process_browser_test.h" | 15 #include "chrome/test/base/in_process_browser_test.h" |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 password_manager::prefs::kCredentialsEnableAutosignin, true); | 459 password_manager::prefs::kCredentialsEnableAutosignin, true); |
459 | 460 |
460 // Successful login with the same form after block will prompt: | 461 // Successful login with the same form after block will prompt: |
461 blocked_form.reset(new autofill::PasswordForm(form)); | 462 blocked_form.reset(new autofill::PasswordForm(form)); |
462 client()->NotifyUserCouldBeAutoSignedIn(std::move(blocked_form)); | 463 client()->NotifyUserCouldBeAutoSignedIn(std::move(blocked_form)); |
463 client()->NotifySuccessfulLoginWithExistingPassword(form); | 464 client()->NotifySuccessfulLoginWithExistingPassword(form); |
464 ASSERT_TRUE(controller()->current_autosignin_prompt()); | 465 ASSERT_TRUE(controller()->current_autosignin_prompt()); |
465 } | 466 } |
466 | 467 |
467 } // namespace | 468 } // namespace |
OLD | NEW |