OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "components/autofill/content/renderer/password_autofill_agent.h" | 5 #include "components/autofill/content/renderer/password_autofill_agent.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/i18n/case_conversion.h" | 14 #include "base/i18n/case_conversion.h" |
| 15 #include "base/memory/linked_ptr.h" |
15 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
16 #include "base/metrics/field_trial.h" | 17 #include "base/metrics/field_trial.h" |
17 #include "base/metrics/histogram_macros.h" | 18 #include "base/metrics/histogram_macros.h" |
18 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
19 #include "build/build_config.h" | 20 #include "build/build_config.h" |
20 #include "components/autofill/content/common/autofill_messages.h" | 21 #include "components/autofill/content/common/autofill_messages.h" |
21 #include "components/autofill/content/renderer/form_autofill_util.h" | 22 #include "components/autofill/content/renderer/form_autofill_util.h" |
22 #include "components/autofill/content/renderer/password_form_conversion_utils.h" | 23 #include "components/autofill/content/renderer/password_form_conversion_utils.h" |
23 #include "components/autofill/content/renderer/renderer_save_password_progress_l
ogger.h" | 24 #include "components/autofill/content/renderer/renderer_save_password_progress_l
ogger.h" |
24 #include "components/autofill/core/common/autofill_constants.h" | 25 #include "components/autofill/core/common/autofill_constants.h" |
(...skipping 1482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1507 } | 1508 } |
1508 | 1509 |
1509 bool PasswordAutofillAgent::ProvisionallySavedPasswordIsValid() { | 1510 bool PasswordAutofillAgent::ProvisionallySavedPasswordIsValid() { |
1510 return provisionally_saved_form_ && | 1511 return provisionally_saved_form_ && |
1511 !provisionally_saved_form_->username_value.empty() && | 1512 !provisionally_saved_form_->username_value.empty() && |
1512 !(provisionally_saved_form_->password_value.empty() && | 1513 !(provisionally_saved_form_->password_value.empty() && |
1513 provisionally_saved_form_->new_password_value.empty()); | 1514 provisionally_saved_form_->new_password_value.empty()); |
1514 } | 1515 } |
1515 | 1516 |
1516 } // namespace autofill | 1517 } // namespace autofill |
OLD | NEW |