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/browser/wallet/wallet_client.h" | 5 #include "components/autofill/content/browser/wallet/wallet_client.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 case MISSING_CLICK_ELEMENT_BEFORE_FORM_FILLING: | 40 case MISSING_CLICK_ELEMENT_BEFORE_FORM_FILLING: |
41 return "MISSING_CLICK_ELEMENT_BEFORE_FORM_FILLING"; | 41 return "MISSING_CLICK_ELEMENT_BEFORE_FORM_FILLING"; |
42 case MISSING_CLICK_ELEMENT_AFTER_FORM_FILLING: | 42 case MISSING_CLICK_ELEMENT_AFTER_FORM_FILLING: |
43 return "MISSING_CLICK_ELEMENT_AFTER_FORM_FILLING"; | 43 return "MISSING_CLICK_ELEMENT_AFTER_FORM_FILLING"; |
44 case CANNOT_PROCEED: | 44 case CANNOT_PROCEED: |
45 return "CANNOT_PROCEED"; | 45 return "CANNOT_PROCEED"; |
46 case SUCCESS: | 46 case SUCCESS: |
47 // SUCCESS cannot be sent to the server as it will result in a failure. | 47 // SUCCESS cannot be sent to the server as it will result in a failure. |
48 NOTREACHED(); | 48 NOTREACHED(); |
49 return "ERROR"; | 49 return "ERROR"; |
| 50 case AUTOCHECKOUT_STATUS_NUM_STATUS: |
| 51 NOTREACHED(); |
50 } | 52 } |
51 NOTREACHED(); | 53 NOTREACHED(); |
52 return "NOT_POSSIBLE"; | 54 return "NOT_POSSIBLE"; |
53 } | 55 } |
54 | 56 |
55 std::string DialogTypeToFeatureString(autofill::DialogType dialog_type) { | 57 std::string DialogTypeToFeatureString(autofill::DialogType dialog_type) { |
56 switch (dialog_type) { | 58 switch (dialog_type) { |
57 case DIALOG_TYPE_REQUEST_AUTOCOMPLETE: | 59 case DIALOG_TYPE_REQUEST_AUTOCOMPLETE: |
58 return "REQUEST_AUTOCOMPLETE"; | 60 return "REQUEST_AUTOCOMPLETE"; |
59 case DIALOG_TYPE_AUTOCHECKOUT: | 61 case DIALOG_TYPE_AUTOCHECKOUT: |
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1004 NOTREACHED(); | 1006 NOTREACHED(); |
1005 return AutofillMetrics::UNKNOWN_API_CALL; | 1007 return AutofillMetrics::UNKNOWN_API_CALL; |
1006 } | 1008 } |
1007 | 1009 |
1008 NOTREACHED(); | 1010 NOTREACHED(); |
1009 return AutofillMetrics::UNKNOWN_API_CALL; | 1011 return AutofillMetrics::UNKNOWN_API_CALL; |
1010 } | 1012 } |
1011 | 1013 |
1012 } // namespace wallet | 1014 } // namespace wallet |
1013 } // namespace autofill | 1015 } // namespace autofill |
OLD | NEW |