OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser/autofill_manager.h" | 5 #include "components/autofill/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 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
872 const std::string& response_xml) { | 872 const std::string& response_xml) { |
873 scoped_ptr<autofill::AutocheckoutPageMetaData> page_meta_data( | 873 scoped_ptr<autofill::AutocheckoutPageMetaData> page_meta_data( |
874 new autofill::AutocheckoutPageMetaData()); | 874 new autofill::AutocheckoutPageMetaData()); |
875 | 875 |
876 // Parse and store the server predictions. | 876 // Parse and store the server predictions. |
877 FormStructure::ParseQueryResponse(response_xml, | 877 FormStructure::ParseQueryResponse(response_xml, |
878 form_structures_.get(), | 878 form_structures_.get(), |
879 page_meta_data.get(), | 879 page_meta_data.get(), |
880 *metric_logger_); | 880 *metric_logger_); |
881 | 881 |
882 // TODO(ahutter): Remove this once Autocheckout is implemented on other | |
883 // platforms. See http://crbug.com/173416. | |
884 #if defined(TOOLKIT_VIEWS) | |
882 autocheckout_manager_.OnLoadedPageMetaData(page_meta_data.Pass()); | 885 autocheckout_manager_.OnLoadedPageMetaData(page_meta_data.Pass()); |
886 #endif // #if defined(TOOLKIT_VIEWS) | |
Ilya Sherman
2013/04/17 00:09:50
Can you move this into the AutocheckoutManager cod
| |
883 | 887 |
884 // If the corresponding flag is set, annotate forms with the predicted types. | 888 // If the corresponding flag is set, annotate forms with the predicted types. |
885 SendAutofillTypePredictions(form_structures_.get()); | 889 SendAutofillTypePredictions(form_structures_.get()); |
886 } | 890 } |
887 | 891 |
888 void AutofillManager::OnDidEndTextFieldEditing() { | 892 void AutofillManager::OnDidEndTextFieldEditing() { |
889 if (external_delegate_) | 893 if (external_delegate_) |
890 external_delegate_->DidEndTextFieldEditing(); | 894 external_delegate_->DidEndTextFieldEditing(); |
891 } | 895 } |
892 | 896 |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1349 | 1353 |
1350 void AutofillManager::UpdateInitialInteractionTimestamp( | 1354 void AutofillManager::UpdateInitialInteractionTimestamp( |
1351 const TimeTicks& interaction_timestamp) { | 1355 const TimeTicks& interaction_timestamp) { |
1352 if (initial_interaction_timestamp_.is_null() || | 1356 if (initial_interaction_timestamp_.is_null() || |
1353 interaction_timestamp < initial_interaction_timestamp_) { | 1357 interaction_timestamp < initial_interaction_timestamp_) { |
1354 initial_interaction_timestamp_ = interaction_timestamp; | 1358 initial_interaction_timestamp_ = interaction_timestamp; |
1355 } | 1359 } |
1356 } | 1360 } |
1357 | 1361 |
1358 } // namespace autofill | 1362 } // namespace autofill |
OLD | NEW |