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

Side by Side Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.cc

Issue 12091086: [Autofill] Add UMA timing metrics for requestAutocomplete dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase harder 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
« no previous file with comments | « chrome/browser/ui/views/autofill/autofill_dialog_views.h ('k') | chrome/chrome_tests.gypi » ('j') | 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 "chrome/browser/ui/views/autofill/autofill_dialog_views.h" 5 #include "chrome/browser/ui/views/autofill/autofill_dialog_views.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/autofill/wallet/wallet_service_url.h" 10 #include "chrome/browser/autofill/wallet/wallet_service_url.h"
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 487
488 void AutofillDialogViews::ModelChanged() { 488 void AutofillDialogViews::ModelChanged() {
489 menu_runner_.reset(); 489 menu_runner_.reset();
490 490
491 for (DetailGroupMap::iterator iter = detail_groups_.begin(); 491 for (DetailGroupMap::iterator iter = detail_groups_.begin();
492 iter != detail_groups_.end(); ++iter) { 492 iter != detail_groups_.end(); ++iter) {
493 UpdateDetailsGroupState(iter->second); 493 UpdateDetailsGroupState(iter->second);
494 } 494 }
495 } 495 }
496 496
497 void AutofillDialogViews::SubmitForTesting() {
498 if (Accept())
499 Hide();
500 }
501
502 void AutofillDialogViews::CancelForTesting() {
503 if (Cancel())
504 Hide();
505 }
506
497 string16 AutofillDialogViews::GetWindowTitle() const { 507 string16 AutofillDialogViews::GetWindowTitle() const {
498 return controller_->DialogTitle(); 508 return controller_->DialogTitle();
499 } 509 }
500 510
501 void AutofillDialogViews::WindowClosing() { 511 void AutofillDialogViews::WindowClosing() {
502 focus_manager_->RemoveFocusChangeListener(this); 512 focus_manager_->RemoveFocusChangeListener(this);
503 } 513 }
504 514
505 void AutofillDialogViews::DeleteDelegate() { 515 void AutofillDialogViews::DeleteDelegate() {
506 window_ = NULL; 516 window_ = NULL;
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) 1009 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section)
1000 : section(section), 1010 : section(section),
1001 container(NULL), 1011 container(NULL),
1002 manual_input(NULL), 1012 manual_input(NULL),
1003 suggested_info(NULL), 1013 suggested_info(NULL),
1004 suggested_button(NULL) {} 1014 suggested_button(NULL) {}
1005 1015
1006 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} 1016 AutofillDialogViews::DetailsGroup::~DetailsGroup() {}
1007 1017
1008 } // namespace autofill 1018 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/autofill/autofill_dialog_views.h ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698