| 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/core/browser/autofill_manager.h" | 5 #include "components/autofill/core/browser/autofill_manager.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <limits> | 9 #include <limits> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 #include "components/autofill/core/common/autofill_data_validation.h" | 39 #include "components/autofill/core/common/autofill_data_validation.h" |
| 40 #include "components/autofill/core/common/autofill_pref_names.h" | 40 #include "components/autofill/core/common/autofill_pref_names.h" |
| 41 #include "components/autofill/core/common/autofill_switches.h" | 41 #include "components/autofill/core/common/autofill_switches.h" |
| 42 #include "components/autofill/core/common/form_data.h" | 42 #include "components/autofill/core/common/form_data.h" |
| 43 #include "components/autofill/core/common/form_data_predictions.h" | 43 #include "components/autofill/core/common/form_data_predictions.h" |
| 44 #include "components/autofill/core/common/form_field_data.h" | 44 #include "components/autofill/core/common/form_field_data.h" |
| 45 #include "components/autofill/core/common/password_form_fill_data.h" | 45 #include "components/autofill/core/common/password_form_fill_data.h" |
| 46 #include "components/pref_registry/pref_registry_syncable.h" | 46 #include "components/pref_registry/pref_registry_syncable.h" |
| 47 #include "grit/components_strings.h" | 47 #include "grit/components_strings.h" |
| 48 #include "ui/base/l10n/l10n_util.h" | 48 #include "ui/base/l10n/l10n_util.h" |
| 49 #include "ui/gfx/rect.h" | 49 #include "ui/gfx/geometry/rect.h" |
| 50 #include "url/gurl.h" | 50 #include "url/gurl.h" |
| 51 | 51 |
| 52 namespace autofill { | 52 namespace autofill { |
| 53 | 53 |
| 54 using base::TimeTicks; | 54 using base::TimeTicks; |
| 55 | 55 |
| 56 namespace { | 56 namespace { |
| 57 | 57 |
| 58 // We only send a fraction of the forms to upload server. | 58 // We only send a fraction of the forms to upload server. |
| 59 // The rate for positive/negative matches potentially could be different. | 59 // The rate for positive/negative matches potentially could be different. |
| (...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1247 return false; | 1247 return false; |
| 1248 | 1248 |
| 1249 // Disregard forms that we wouldn't ever autofill in the first place. | 1249 // Disregard forms that we wouldn't ever autofill in the first place. |
| 1250 if (!form.ShouldBeParsed()) | 1250 if (!form.ShouldBeParsed()) |
| 1251 return false; | 1251 return false; |
| 1252 | 1252 |
| 1253 return true; | 1253 return true; |
| 1254 } | 1254 } |
| 1255 | 1255 |
| 1256 } // namespace autofill | 1256 } // namespace autofill |
| OLD | NEW |