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

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

Issue 10797017: base: Make ScopedVector::clear() destroy elements. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update location_bar_view_mac.mm Created 8 years, 5 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
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 "chrome/browser/autofill/autofill_manager.h" 5 #include "chrome/browser/autofill/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 876 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 } 887 }
888 888
889 FieldTypeSet non_empty_types; 889 FieldTypeSet non_empty_types;
890 personal_data_->GetNonEmptyTypes(&non_empty_types); 890 personal_data_->GetNonEmptyTypes(&non_empty_types);
891 891
892 download_manager_.StartUploadRequest(submitted_form, was_autofilled, 892 download_manager_.StartUploadRequest(submitted_form, was_autofilled,
893 non_empty_types); 893 non_empty_types);
894 } 894 }
895 895
896 void AutofillManager::Reset() { 896 void AutofillManager::Reset() {
897 form_structures_.reset(); 897 form_structures_.clear();
898 has_logged_autofill_enabled_ = false; 898 has_logged_autofill_enabled_ = false;
899 has_logged_address_suggestions_count_ = false; 899 has_logged_address_suggestions_count_ = false;
900 did_show_suggestions_ = false; 900 did_show_suggestions_ = false;
901 user_did_type_ = false; 901 user_did_type_ = false;
902 user_did_autofill_ = false; 902 user_did_autofill_ = false;
903 user_did_edit_autofilled_field_ = false; 903 user_did_edit_autofilled_field_ = false;
904 forms_loaded_timestamp_ = TimeTicks(); 904 forms_loaded_timestamp_ = TimeTicks();
905 initial_interaction_timestamp_ = TimeTicks(); 905 initial_interaction_timestamp_ = TimeTicks();
906 906
907 if (external_delegate_) 907 if (external_delegate_)
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
1411 *profile_guid = IDToGUID(profile_id); 1411 *profile_guid = IDToGUID(profile_id);
1412 } 1412 }
1413 1413
1414 void AutofillManager::UpdateInitialInteractionTimestamp( 1414 void AutofillManager::UpdateInitialInteractionTimestamp(
1415 const TimeTicks& interaction_timestamp) { 1415 const TimeTicks& interaction_timestamp) {
1416 if (initial_interaction_timestamp_.is_null() || 1416 if (initial_interaction_timestamp_.is_null() ||
1417 interaction_timestamp < initial_interaction_timestamp_) { 1417 interaction_timestamp < initial_interaction_timestamp_) {
1418 initial_interaction_timestamp_ = interaction_timestamp; 1418 initial_interaction_timestamp_ = interaction_timestamp;
1419 } 1419 }
1420 } 1420 }
OLDNEW
« no previous file with comments | « base/memory/scoped_vector_unittest.cc ('k') | chrome/browser/autofill/autofill_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698