| 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 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 1448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1459 for (CreditCard* credit_card : credit_cards) { | 1459 for (CreditCard* credit_card : credit_cards) { |
| 1460 if (credit_card->record_type() == CreditCard::LOCAL_CARD) | 1460 if (credit_card->record_type() == CreditCard::LOCAL_CARD) |
| 1461 is_local_data_available = true; | 1461 is_local_data_available = true; |
| 1462 else | 1462 else |
| 1463 is_server_data_available = true; | 1463 is_server_data_available = true; |
| 1464 } | 1464 } |
| 1465 credit_card_form_event_logger_->set_is_server_data_available( | 1465 credit_card_form_event_logger_->set_is_server_data_available( |
| 1466 is_server_data_available); | 1466 is_server_data_available); |
| 1467 credit_card_form_event_logger_->set_is_local_data_available( | 1467 credit_card_form_event_logger_->set_is_local_data_available( |
| 1468 is_local_data_available); | 1468 is_local_data_available); |
| 1469 credit_card_form_event_logger_->set_is_main_url_secure( |
| 1470 client_->IsMainUrlSecure()); |
| 1469 } | 1471 } |
| 1470 { | 1472 { |
| 1471 bool is_server_data_available = false; | 1473 bool is_server_data_available = false; |
| 1472 bool is_local_data_available = false; | 1474 bool is_local_data_available = false; |
| 1473 for (AutofillProfile* profile : profiles) { | 1475 for (AutofillProfile* profile : profiles) { |
| 1474 if (profile->record_type() == AutofillProfile::LOCAL_PROFILE) | 1476 if (profile->record_type() == AutofillProfile::LOCAL_PROFILE) |
| 1475 is_local_data_available = true; | 1477 is_local_data_available = true; |
| 1476 else if (profile->record_type() == AutofillProfile::SERVER_PROFILE) | 1478 else if (profile->record_type() == AutofillProfile::SERVER_PROFILE) |
| 1477 is_server_data_available = true; | 1479 is_server_data_available = true; |
| 1478 } | 1480 } |
| (...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2170 if (i > 0) | 2172 if (i > 0) |
| 2171 fputs("Next oldest form:\n", file); | 2173 fputs("Next oldest form:\n", file); |
| 2172 } | 2174 } |
| 2173 fputs("\n", file); | 2175 fputs("\n", file); |
| 2174 | 2176 |
| 2175 fclose(file); | 2177 fclose(file); |
| 2176 } | 2178 } |
| 2177 #endif // ENABLE_FORM_DEBUG_DUMP | 2179 #endif // ENABLE_FORM_DEBUG_DUMP |
| 2178 | 2180 |
| 2179 } // namespace autofill | 2181 } // namespace autofill |
| OLD | NEW |