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

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

Issue 996973003: Revamp Autofill Wallet settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mac compiles Created 5 years, 9 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 8
9 #include <limits> 9 #include <limits>
10 #include <map> 10 #include <map>
(...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 is_server_data_available); 957 is_server_data_available);
958 credit_card_form_event_logger_->set_is_local_data_available( 958 credit_card_form_event_logger_->set_is_local_data_available(
959 is_local_data_available); 959 is_local_data_available);
960 } 960 }
961 { 961 {
962 bool is_server_data_available = false; 962 bool is_server_data_available = false;
963 bool is_local_data_available = false; 963 bool is_local_data_available = false;
964 for (AutofillProfile* profile : profiles) { 964 for (AutofillProfile* profile : profiles) {
965 if (profile->record_type() == AutofillProfile::LOCAL_PROFILE) 965 if (profile->record_type() == AutofillProfile::LOCAL_PROFILE)
966 is_local_data_available = true; 966 is_local_data_available = true;
967 else 967 else if (profile->record_type() == AutofillProfile::SERVER_PROFILE)
968 is_server_data_available = true; 968 is_server_data_available = true;
969 } 969 }
970 address_form_event_logger_->set_is_server_data_available( 970 address_form_event_logger_->set_is_server_data_available(
971 is_server_data_available); 971 is_server_data_available);
972 address_form_event_logger_->set_is_local_data_available( 972 address_form_event_logger_->set_is_local_data_available(
973 is_local_data_available); 973 is_local_data_available);
974 } 974 }
975 975
976 if (profiles.empty() && credit_cards.empty()) 976 if (profiles.empty() && credit_cards.empty())
977 return false; 977 return false;
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
1461 return false; 1461 return false;
1462 1462
1463 // Disregard forms that we wouldn't ever autofill in the first place. 1463 // Disregard forms that we wouldn't ever autofill in the first place.
1464 if (!form.ShouldBeParsed()) 1464 if (!form.ShouldBeParsed())
1465 return false; 1465 return false;
1466 1466
1467 return true; 1467 return true;
1468 } 1468 }
1469 1469
1470 } // namespace autofill 1470 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/autofill_options_handler.cc ('k') | components/autofill/core/browser/autofill_profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698