| 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 "chrome/browser/ui/passwords/password_dialog_controller_impl.h" | 5 #include "chrome/browser/ui/passwords/password_dialog_controller_impl.h" |
| 6 | 6 |
| 7 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
| 8 #include "chrome/browser/sync/profile_sync_service_factory.h" | 8 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 9 #include "chrome/browser/ui/passwords/manage_passwords_view_utils.h" | 9 #include "chrome/browser/ui/passwords/manage_passwords_view_utils.h" |
| 10 #include "chrome/browser/ui/passwords/password_dialog_prompts.h" | 10 #include "chrome/browser/ui/passwords/password_dialog_prompts.h" |
| 11 #include "chrome/browser/ui/passwords/passwords_model_delegate.h" | 11 #include "chrome/browser/ui/passwords/passwords_model_delegate.h" |
| 12 #include "chrome/grit/generated_resources.h" | 12 #include "chrome/grit/generated_resources.h" |
| 13 #include "components/autofill/core/common/password_form.h" | 13 #include "components/autofill/core/common/password_form.h" |
| 14 #include "components/browser_sync/browser/profile_sync_service.h" | 14 #include "components/browser_sync/profile_sync_service.h" |
| 15 #include "components/password_manager/core/browser/password_bubble_experiment.h" | 15 #include "components/password_manager/core/browser/password_bubble_experiment.h" |
| 16 #include "components/password_manager/core/browser/password_manager_metrics_util
.h" | 16 #include "components/password_manager/core/browser/password_manager_metrics_util
.h" |
| 17 #include "components/password_manager/core/common/password_manager_pref_names.h" | 17 #include "components/password_manager/core/common/password_manager_pref_names.h" |
| 18 #include "components/prefs/pref_service.h" | 18 #include "components/prefs/pref_service.h" |
| 19 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 bool IsSmartLockBrandingEnabled(Profile* profile) { | 23 bool IsSmartLockBrandingEnabled(Profile* profile) { |
| 24 const ProfileSyncService* sync_service = | 24 const ProfileSyncService* sync_service = |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 void PasswordDialogControllerImpl::ResetDialog() { | 175 void PasswordDialogControllerImpl::ResetDialog() { |
| 176 if (account_chooser_dialog_) { | 176 if (account_chooser_dialog_) { |
| 177 account_chooser_dialog_->ControllerGone(); | 177 account_chooser_dialog_->ControllerGone(); |
| 178 account_chooser_dialog_ = nullptr; | 178 account_chooser_dialog_ = nullptr; |
| 179 } | 179 } |
| 180 if (autosignin_dialog_) { | 180 if (autosignin_dialog_) { |
| 181 autosignin_dialog_->ControllerGone(); | 181 autosignin_dialog_->ControllerGone(); |
| 182 autosignin_dialog_ = nullptr; | 182 autosignin_dialog_ = nullptr; |
| 183 } | 183 } |
| 184 } | 184 } |
| OLD | NEW |