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

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

Issue 2672623005: Record Autofill form events specially for nonsecure pages (Closed)
Patch Set: sebsg comments Created 3 years, 10 months 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/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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698