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

Side by Side Diff: chrome/browser/ui/browser_tab_contents.cc

Issue 17052008: [Autofill] Remove the "Disable native Autofill UI" flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 6 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/browser_process.h" 8 #include "chrome/browser/browser_process.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/api/web_navigation/web_navigation_api.h" 10 #include "chrome/browser/extensions/api/web_navigation/web_navigation_api.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 Profile* profile = 103 Profile* profile =
104 Profile::FromBrowserContext(web_contents->GetBrowserContext()); 104 Profile::FromBrowserContext(web_contents->GetBrowserContext());
105 105
106 // SessionTabHelper comes first because it sets up the tab ID, and other 106 // SessionTabHelper comes first because it sets up the tab ID, and other
107 // helpers may rely on that. 107 // helpers may rely on that.
108 SessionTabHelper::CreateForWebContents(web_contents); 108 SessionTabHelper::CreateForWebContents(web_contents);
109 109
110 AlternateErrorPageTabObserver::CreateForWebContents(web_contents); 110 AlternateErrorPageTabObserver::CreateForWebContents(web_contents);
111 TabAutofillManagerDelegate::CreateForWebContents(web_contents); 111 TabAutofillManagerDelegate::CreateForWebContents(web_contents);
112 bool native_autofill_ui_enabled =
113 !CommandLine::ForCurrentProcess()->HasSwitch(
114 switches::kDisableNativeAutofillUi);
115 AutofillDriverImpl::CreateForWebContentsAndDelegate( 112 AutofillDriverImpl::CreateForWebContentsAndDelegate(
116 web_contents, 113 web_contents,
117 TabAutofillManagerDelegate::FromWebContents(web_contents), 114 TabAutofillManagerDelegate::FromWebContents(web_contents),
118 g_browser_process->GetApplicationLocale(), 115 g_browser_process->GetApplicationLocale(),
119 AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER, 116 AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER);
120 native_autofill_ui_enabled);
121 BlockedContentTabHelper::CreateForWebContents(web_contents); 117 BlockedContentTabHelper::CreateForWebContents(web_contents);
122 BookmarkTabHelper::CreateForWebContents(web_contents); 118 BookmarkTabHelper::CreateForWebContents(web_contents);
123 chrome_browser_net::LoadTimeStatsTabHelper::CreateForWebContents( 119 chrome_browser_net::LoadTimeStatsTabHelper::CreateForWebContents(
124 web_contents); 120 web_contents);
125 chrome_browser_net::NetErrorTabHelper::CreateForWebContents(web_contents); 121 chrome_browser_net::NetErrorTabHelper::CreateForWebContents(web_contents);
126 WebContentsModalDialogManager::CreateForWebContents(web_contents); 122 WebContentsModalDialogManager::CreateForWebContents(web_contents);
127 CoreTabHelper::CreateForWebContents(web_contents); 123 CoreTabHelper::CreateForWebContents(web_contents);
128 extensions::TabHelper::CreateForWebContents(web_contents); 124 extensions::TabHelper::CreateForWebContents(web_contents);
129 extensions::WebNavigationTabObserver::CreateForWebContents(web_contents); 125 extensions::WebNavigationTabObserver::CreateForWebContents(web_contents);
130 ExternalProtocolObserver::CreateForWebContents(web_contents); 126 ExternalProtocolObserver::CreateForWebContents(web_contents);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 std::string(), 174 std::string(),
179 NULL)) { 175 NULL)) {
180 OneClickSigninHelper::CreateForWebContents(web_contents); 176 OneClickSigninHelper::CreateForWebContents(web_contents);
181 } 177 }
182 #endif 178 #endif
183 179
184 #if defined(OS_WIN) 180 #if defined(OS_WIN)
185 MetroPinTabHelper::CreateForWebContents(web_contents); 181 MetroPinTabHelper::CreateForWebContents(web_contents);
186 #endif 182 #endif
187 } 183 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698