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

Side by Side Diff: chrome/browser/android/tab_android.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 | « no previous file | chrome/browser/autofill/autocheckout_infobar_delegate.h » ('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/android/tab_android.h" 5 #include "chrome/browser/android/tab_android.h"
6 #include "chrome/browser/api/infobars/infobar_service.h" 6 #include "chrome/browser/api/infobars/infobar_service.h"
7 #include "chrome/browser/autofill/autofill_external_delegate.h" 7 #include "chrome/browser/autofill/autofill_external_delegate.h"
8 #include "chrome/browser/autofill/autofill_manager.h" 8 #include "chrome/browser/autofill/autofill_manager.h"
9 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 9 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
10 #include "chrome/browser/extensions/tab_helper.h" 10 #include "chrome/browser/extensions/tab_helper.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 contents->SetUserData(&kTabHelpersInitializedUserDataKey, 48 contents->SetUserData(&kTabHelpersInitializedUserDataKey,
49 new base::SupportsUserData::Data()); 49 new base::SupportsUserData::Data());
50 50
51 // Set the view type. 51 // Set the view type.
52 chrome::SetViewType(contents, chrome::VIEW_TYPE_TAB_CONTENTS); 52 chrome::SetViewType(contents, chrome::VIEW_TYPE_TAB_CONTENTS);
53 53
54 // SessionTabHelper comes first because it sets up the tab ID, and other 54 // SessionTabHelper comes first because it sets up the tab ID, and other
55 // helpers may rely on that. 55 // helpers may rely on that.
56 SessionTabHelper::CreateForWebContents(contents); 56 SessionTabHelper::CreateForWebContents(contents);
57 57
58 TabAutofillManagerDelegate::CreateForWebContents(contents); 58 autofill::TabAutofillManagerDelegate::CreateForWebContents(contents);
59 AutofillManager::CreateForWebContentsAndDelegate( 59 AutofillManager::CreateForWebContentsAndDelegate(
60 contents, TabAutofillManagerDelegate::FromWebContents(contents)); 60 contents,
61 autofill::TabAutofillManagerDelegate::FromWebContents(contents));
61 AutofillExternalDelegate::CreateForWebContentsAndManager( 62 AutofillExternalDelegate::CreateForWebContentsAndManager(
62 contents, AutofillManager::FromWebContents(contents)); 63 contents, AutofillManager::FromWebContents(contents));
63 AutofillManager::FromWebContents(contents)->SetExternalDelegate( 64 AutofillManager::FromWebContents(contents)->SetExternalDelegate(
64 AutofillExternalDelegate::FromWebContents(contents)); 65 AutofillExternalDelegate::FromWebContents(contents));
65 BlockedContentTabHelper::CreateForWebContents(contents); 66 BlockedContentTabHelper::CreateForWebContents(contents);
66 BookmarkTabHelper::CreateForWebContents(contents); 67 BookmarkTabHelper::CreateForWebContents(contents);
67 CoreTabHelper::CreateForWebContents(contents); 68 CoreTabHelper::CreateForWebContents(contents);
68 extensions::TabHelper::CreateForWebContents(contents); 69 extensions::TabHelper::CreateForWebContents(contents);
69 FaviconTabHelper::CreateForWebContents(contents); 70 FaviconTabHelper::CreateForWebContents(contents);
70 FindTabHelper::CreateForWebContents(contents); 71 FindTabHelper::CreateForWebContents(contents);
(...skipping 26 matching lines...) Expand all
97 } 98 }
98 99
99 TabAndroid::TabAndroid() : tab_id_(-1) { 100 TabAndroid::TabAndroid() : tab_id_(-1) {
100 } 101 }
101 102
102 TabAndroid::~TabAndroid() { 103 TabAndroid::~TabAndroid() {
103 } 104 }
104 105
105 void TabAndroid::RunExternalProtocolDialog(const GURL& url) { 106 void TabAndroid::RunExternalProtocolDialog(const GURL& url) {
106 } 107 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autofill/autocheckout_infobar_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698