Chromium Code Reviews| Index: components/password_manager/core/browser/form_fetcher_impl.cc |
| diff --git a/components/password_manager/core/browser/form_fetcher_impl.cc b/components/password_manager/core/browser/form_fetcher_impl.cc |
| index 6bff00d8fc6926e333c0316ff59925cc77ad3387..2d6a388e4e8425288b7ed908d72a0436c780ef5e 100644 |
| --- a/components/password_manager/core/browser/form_fetcher_impl.cc |
| +++ b/components/password_manager/core/browser/form_fetcher_impl.cc |
| @@ -110,9 +110,13 @@ void FormFetcherImpl::OnGetPasswordStoreResults( |
| if (should_migrate_http_passwords_ && results.empty() && |
| form_digest_.origin.SchemeIs(url::kHttpsScheme)) { |
| + const auto migration_mode = |
|
vasilii
2017/02/28 09:10:36
HttpPasswordMigrator::MigrationMode is better
jdoerrie
2017/03/06 17:54:28
Done.
|
| + client_->IsHSTSActiveForHost(form_digest_.origin) |
| + ? HttpPasswordMigrator::MigrationMode::MOVE |
| + : HttpPasswordMigrator::MigrationMode::COPY; |
| + |
| http_migrator_ = base::MakeUnique<HttpPasswordMigrator>( |
| - form_digest_.origin, HttpPasswordMigrator::MigrationMode::COPY, |
| - client_->GetPasswordStore(), this); |
| + form_digest_.origin, migration_mode, client_->GetPasswordStore(), this); |
| return; |
| } |