OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/manage_passwords_state.h" | 5 #include "chrome/browser/ui/passwords/manage_passwords_state.h" |
6 | 6 |
7 #include "components/password_manager/content/common/credential_manager_types.h" | |
8 #include "components/password_manager/core/browser/browser_save_password_progres
s_logger.h" | 7 #include "components/password_manager/core/browser/browser_save_password_progres
s_logger.h" |
9 #include "components/password_manager/core/browser/password_form_manager.h" | 8 #include "components/password_manager/core/browser/password_form_manager.h" |
10 #include "components/password_manager/core/browser/password_manager_client.h" | 9 #include "components/password_manager/core/browser/password_manager_client.h" |
| 10 #include "components/password_manager/core/common/credential_manager_types.h" |
11 | 11 |
12 using password_manager::PasswordFormManager; | 12 using password_manager::PasswordFormManager; |
13 using autofill::PasswordFormMap; | 13 using autofill::PasswordFormMap; |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 // Converts the map with pointers or const pointers to the vector of const | 17 // Converts the map with pointers or const pointers to the vector of const |
18 // pointers. | 18 // pointers. |
19 template <typename T> | 19 template <typename T> |
20 std::vector<const T*> MapToVector( | 20 std::vector<const T*> MapToVector( |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 void ManagePasswordsState::SetState(password_manager::ui::State state) { | 275 void ManagePasswordsState::SetState(password_manager::ui::State state) { |
276 DCHECK(client_); | 276 DCHECK(client_); |
277 if (client_->IsLoggingActive()) { | 277 if (client_->IsLoggingActive()) { |
278 password_manager::BrowserSavePasswordProgressLogger logger(client_); | 278 password_manager::BrowserSavePasswordProgressLogger logger(client_); |
279 logger.LogNumber( | 279 logger.LogNumber( |
280 autofill::SavePasswordProgressLogger::STRING_NEW_UI_STATE, | 280 autofill::SavePasswordProgressLogger::STRING_NEW_UI_STATE, |
281 state); | 281 state); |
282 } | 282 } |
283 state_ = state; | 283 state_ = state; |
284 } | 284 } |
OLD | NEW |