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

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

Issue 12091086: [Autofill] Add UMA timing metrics for requestAutocomplete dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moar vertical whitespace Created 7 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 | 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 771 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 const string16& value) { 782 const string16& value) {
783 autocomplete_history_manager_.OnRemoveAutocompleteEntry(name, value); 783 autocomplete_history_manager_.OnRemoveAutocompleteEntry(name, value);
784 } 784 }
785 785
786 void AutofillManager::ShowRequestAutocompleteDialog( 786 void AutofillManager::ShowRequestAutocompleteDialog(
787 const FormData& form, 787 const FormData& form,
788 const GURL& source_url, 788 const GURL& source_url,
789 const content::SSLStatus& ssl_status, 789 const content::SSLStatus& ssl_status,
790 const base::Callback<void(const FormStructure*)>& callback) { 790 const base::Callback<void(const FormStructure*)>& callback) {
791 manager_delegate_->ShowRequestAutocompleteDialog( 791 manager_delegate_->ShowRequestAutocompleteDialog(
792 form, source_url, ssl_status, callback); 792 form, source_url, ssl_status, *metric_logger_, callback);
793 } 793 }
794 794
795 void AutofillManager::RequestAutocompleteDialogClosed() { 795 void AutofillManager::RequestAutocompleteDialogClosed() {
796 manager_delegate_->RequestAutocompleteDialogClosed(); 796 manager_delegate_->RequestAutocompleteDialogClosed();
797 } 797 }
798 798
799 void AutofillManager::OnAddPasswordFormMapping( 799 void AutofillManager::OnAddPasswordFormMapping(
800 const FormFieldData& form, 800 const FormFieldData& form,
801 const PasswordFormFillData& fill_data) { 801 const PasswordFormFillData& fill_data) {
802 if (external_delegate_) 802 if (external_delegate_)
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
1307 *profile_guid = IDToGUID(profile_id); 1307 *profile_guid = IDToGUID(profile_id);
1308 } 1308 }
1309 1309
1310 void AutofillManager::UpdateInitialInteractionTimestamp( 1310 void AutofillManager::UpdateInitialInteractionTimestamp(
1311 const TimeTicks& interaction_timestamp) { 1311 const TimeTicks& interaction_timestamp) {
1312 if (initial_interaction_timestamp_.is_null() || 1312 if (initial_interaction_timestamp_.is_null() ||
1313 interaction_timestamp < initial_interaction_timestamp_) { 1313 interaction_timestamp < initial_interaction_timestamp_) {
1314 initial_interaction_timestamp_ = interaction_timestamp; 1314 initial_interaction_timestamp_ = interaction_timestamp;
1315 } 1315 }
1316 } 1316 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_manager_delegate.h » ('j') | chrome/browser/autofill/autofill_metrics.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698