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

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

Issue 14017003: Disabling Autocheckout on non-Views builds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 if (!GetAutocheckoutURLPrefix().empty()) 885 if (!GetAutocheckoutURLPrefix().empty())
883 autocheckout_manager_.OnLoadedPageMetaData(page_meta_data.Pass()); 886 autocheckout_manager_.OnLoadedPageMetaData(page_meta_data.Pass());
887 #endif // #if defined(TOOLKIT_VIEWS)
884 888
885 // If the corresponding flag is set, annotate forms with the predicted types. 889 // If the corresponding flag is set, annotate forms with the predicted types.
886 SendAutofillTypePredictions(form_structures_.get()); 890 SendAutofillTypePredictions(form_structures_.get());
887 } 891 }
888 892
889 void AutofillManager::OnDidEndTextFieldEditing() { 893 void AutofillManager::OnDidEndTextFieldEditing() {
890 if (external_delegate_) 894 if (external_delegate_)
891 external_delegate_->DidEndTextFieldEditing(); 895 external_delegate_->DidEndTextFieldEditing();
892 } 896 }
893 897
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
1350 1354
1351 void AutofillManager::UpdateInitialInteractionTimestamp( 1355 void AutofillManager::UpdateInitialInteractionTimestamp(
1352 const TimeTicks& interaction_timestamp) { 1356 const TimeTicks& interaction_timestamp) {
1353 if (initial_interaction_timestamp_.is_null() || 1357 if (initial_interaction_timestamp_.is_null() ||
1354 interaction_timestamp < initial_interaction_timestamp_) { 1358 interaction_timestamp < initial_interaction_timestamp_) {
1355 initial_interaction_timestamp_ = interaction_timestamp; 1359 initial_interaction_timestamp_ = interaction_timestamp;
1356 } 1360 }
1357 } 1361 }
1358 1362
1359 } // namespace autofill 1363 } // namespace autofill
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698