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

Side by Side Diff: chrome/browser/ui/browser_tab_contents.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
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/browser_tab_contents.h" 5 #include "chrome/browser/ui/browser_tab_contents.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/api/infobars/infobar_service.h" 8 #include "chrome/browser/api/infobars/infobar_service.h"
9 #include "chrome/browser/autofill/autofill_external_delegate.h" 9 #include "chrome/browser/autofill/autofill_external_delegate.h"
10 #include "chrome/browser/autofill/autofill_manager.h" 10 #include "chrome/browser/autofill/autofill_manager.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // Create all the tab helpers. 98 // Create all the tab helpers.
99 99
100 Profile* profile = 100 Profile* profile =
101 Profile::FromBrowserContext(web_contents->GetBrowserContext()); 101 Profile::FromBrowserContext(web_contents->GetBrowserContext());
102 102
103 // SessionTabHelper comes first because it sets up the tab ID, and other 103 // SessionTabHelper comes first because it sets up the tab ID, and other
104 // helpers may rely on that. 104 // helpers may rely on that.
105 SessionTabHelper::CreateForWebContents(web_contents); 105 SessionTabHelper::CreateForWebContents(web_contents);
106 106
107 AlternateErrorPageTabObserver::CreateForWebContents(web_contents); 107 AlternateErrorPageTabObserver::CreateForWebContents(web_contents);
108 TabAutofillManagerDelegate::CreateForWebContents(web_contents); 108 autofill::TabAutofillManagerDelegate::CreateForWebContents(web_contents);
109 AutofillManager::CreateForWebContentsAndDelegate( 109 AutofillManager::CreateForWebContentsAndDelegate(
110 web_contents, TabAutofillManagerDelegate::FromWebContents(web_contents)); 110 web_contents,
111 autofill::TabAutofillManagerDelegate::FromWebContents(web_contents));
111 if (CommandLine::ForCurrentProcess()->HasSwitch( 112 if (CommandLine::ForCurrentProcess()->HasSwitch(
112 switches::kEnableNewAutofillUi)) { 113 switches::kEnableNewAutofillUi)) {
113 AutofillExternalDelegate::CreateForWebContentsAndManager( 114 AutofillExternalDelegate::CreateForWebContentsAndManager(
114 web_contents, AutofillManager::FromWebContents(web_contents)); 115 web_contents, AutofillManager::FromWebContents(web_contents));
115 AutofillManager::FromWebContents(web_contents)->SetExternalDelegate( 116 AutofillManager::FromWebContents(web_contents)->SetExternalDelegate(
116 AutofillExternalDelegate::FromWebContents(web_contents)); 117 AutofillExternalDelegate::FromWebContents(web_contents));
117 } 118 }
118 BlockedContentTabHelper::CreateForWebContents(web_contents); 119 BlockedContentTabHelper::CreateForWebContents(web_contents);
119 BookmarkTabHelper::CreateForWebContents(web_contents); 120 BookmarkTabHelper::CreateForWebContents(web_contents);
120 chrome_browser_net::LoadTimeStatsTabHelper::CreateForWebContents( 121 chrome_browser_net::LoadTimeStatsTabHelper::CreateForWebContents(
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 if (OneClickSigninHelper::CanOffer( 177 if (OneClickSigninHelper::CanOffer(
177 web_contents, OneClickSigninHelper::CAN_OFFER_FOR_ALL, "", NULL)) { 178 web_contents, OneClickSigninHelper::CAN_OFFER_FOR_ALL, "", NULL)) {
178 OneClickSigninHelper::CreateForWebContents(web_contents); 179 OneClickSigninHelper::CreateForWebContents(web_contents);
179 } 180 }
180 #endif 181 #endif
181 182
182 #if defined(OS_WIN) 183 #if defined(OS_WIN)
183 MetroPinTabHelper::CreateForWebContents(web_contents); 184 MetroPinTabHelper::CreateForWebContents(web_contents);
184 #endif 185 #endif
185 } 186 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc ('k') | chrome/browser/ui/views/autofill/autofill_dialog_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698