Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: components/autofill/core/browser/form_structure.cc

Issue 2510803003: Pass RapporService to content/browser/ (Closed)
Patch Set: Fix an Android compile error Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/form_structure.h" 5 #include "components/autofill/core/browser/form_structure.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <map> 10 #include <map>
(...skipping 15 matching lines...) Expand all
26 #include "components/autofill/core/browser/field_candidates.h" 26 #include "components/autofill/core/browser/field_candidates.h"
27 #include "components/autofill/core/browser/field_types.h" 27 #include "components/autofill/core/browser/field_types.h"
28 #include "components/autofill/core/browser/form_field.h" 28 #include "components/autofill/core/browser/form_field.h"
29 #include "components/autofill/core/common/autofill_constants.h" 29 #include "components/autofill/core/common/autofill_constants.h"
30 #include "components/autofill/core/common/autofill_util.h" 30 #include "components/autofill/core/common/autofill_util.h"
31 #include "components/autofill/core/common/form_data.h" 31 #include "components/autofill/core/common/form_data.h"
32 #include "components/autofill/core/common/form_data_predictions.h" 32 #include "components/autofill/core/common/form_data_predictions.h"
33 #include "components/autofill/core/common/form_field_data.h" 33 #include "components/autofill/core/common/form_field_data.h"
34 #include "components/autofill/core/common/form_field_data_predictions.h" 34 #include "components/autofill/core/common/form_field_data_predictions.h"
35 #include "components/autofill/core/common/signatures_util.h" 35 #include "components/autofill/core/common/signatures_util.h"
36 #include "components/rappor/public/rappor_utils.h"
36 #include "components/rappor/rappor_service.h" 37 #include "components/rappor/rappor_service.h"
37 #include "components/rappor/rappor_utils.h"
38 38
39 namespace autofill { 39 namespace autofill {
40 namespace { 40 namespace {
41 41
42 const char kClientVersion[] = "6.1.1715.1442/en (GGLL)"; 42 const char kClientVersion[] = "6.1.1715.1442/en (GGLL)";
43 const char kBillingMode[] = "billing"; 43 const char kBillingMode[] = "billing";
44 const char kShippingMode[] = "shipping"; 44 const char kShippingMode[] = "shipping";
45 45
46 // A form is considered to have a high prediction mismatch rate if the number of 46 // A form is considered to have a high prediction mismatch rate if the number of
47 // mismatches exceeds this threshold. 47 // mismatches exceeds this threshold.
(...skipping 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after
1315 filtered_strings[0].at(prefix_len)) { 1315 filtered_strings[0].at(prefix_len)) {
1316 // Mismatch found. 1316 // Mismatch found.
1317 return filtered_strings[i].substr(0, prefix_len); 1317 return filtered_strings[i].substr(0, prefix_len);
1318 } 1318 }
1319 } 1319 }
1320 } 1320 }
1321 return filtered_strings[0]; 1321 return filtered_strings[0];
1322 } 1322 }
1323 1323
1324 } // namespace autofill 1324 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698