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

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

Issue 184103016: Autofill: Refactoring to support fetching password after a username is selected (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile error on Chrome OS. Created 6 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/tab_helpers.h" 5 #include "chrome/browser/ui/tab_helpers.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/tab_helper.h" 10 #include "chrome/browser/extensions/tab_helper.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // --- Common tab helpers --- 116 // --- Common tab helpers ---
117 117
118 autofill::TabAutofillManagerDelegate::CreateForWebContents(web_contents); 118 autofill::TabAutofillManagerDelegate::CreateForWebContents(web_contents);
119 autofill::ContentAutofillDriver::CreateForWebContentsAndDelegate( 119 autofill::ContentAutofillDriver::CreateForWebContentsAndDelegate(
120 web_contents, 120 web_contents,
121 autofill::TabAutofillManagerDelegate::FromWebContents(web_contents), 121 autofill::TabAutofillManagerDelegate::FromWebContents(web_contents),
122 g_browser_process->GetApplicationLocale(), 122 g_browser_process->GetApplicationLocale(),
123 autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER); 123 autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER);
124 BookmarkTabHelper::CreateForWebContents(web_contents); 124 BookmarkTabHelper::CreateForWebContents(web_contents);
125 chrome_browser_net::NetErrorTabHelper::CreateForWebContents(web_contents); 125 chrome_browser_net::NetErrorTabHelper::CreateForWebContents(web_contents);
126 ChromePasswordManagerClient::CreateForWebContentsWithAutofillManagerDelegate(
127 web_contents,
128 autofill::TabAutofillManagerDelegate::FromWebContents(web_contents));
126 CoreTabHelper::CreateForWebContents(web_contents); 129 CoreTabHelper::CreateForWebContents(web_contents);
127 extensions::TabHelper::CreateForWebContents(web_contents); 130 extensions::TabHelper::CreateForWebContents(web_contents);
128 FaviconTabHelper::CreateForWebContents(web_contents); 131 FaviconTabHelper::CreateForWebContents(web_contents);
129 FindTabHelper::CreateForWebContents(web_contents); 132 FindTabHelper::CreateForWebContents(web_contents);
130 HistoryTabHelper::CreateForWebContents(web_contents); 133 HistoryTabHelper::CreateForWebContents(web_contents);
131 InfoBarService::CreateForWebContents(web_contents); 134 InfoBarService::CreateForWebContents(web_contents);
132 NavigationCorrectionTabObserver::CreateForWebContents(web_contents); 135 NavigationCorrectionTabObserver::CreateForWebContents(web_contents);
133 NavigationMetricsRecorder::CreateForWebContents(web_contents); 136 NavigationMetricsRecorder::CreateForWebContents(web_contents);
134 ChromePasswordManagerClient::CreateForWebContents(web_contents);
135 PopupBlockerTabHelper::CreateForWebContents(web_contents); 137 PopupBlockerTabHelper::CreateForWebContents(web_contents);
136 PrefsTabHelper::CreateForWebContents(web_contents); 138 PrefsTabHelper::CreateForWebContents(web_contents);
137 prerender::PrerenderTabHelper::CreateForWebContentsWithPasswordManager( 139 prerender::PrerenderTabHelper::CreateForWebContentsWithPasswordManager(
138 web_contents, 140 web_contents,
139 ChromePasswordManagerClient::GetManagerFromWebContents(web_contents)); 141 ChromePasswordManagerClient::GetManagerFromWebContents(web_contents));
140 SSLTabHelper::CreateForWebContents(web_contents); 142 SSLTabHelper::CreateForWebContents(web_contents);
141 TabSpecificContentSettings::CreateForWebContents(web_contents); 143 TabSpecificContentSettings::CreateForWebContents(web_contents);
142 TranslateTabHelper::CreateForWebContents(web_contents); 144 TranslateTabHelper::CreateForWebContents(web_contents);
143 145
144 // --- Platform-specific tab helpers --- 146 // --- Platform-specific tab helpers ---
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 if (OneClickSigninHelper::CanOffer(web_contents, 207 if (OneClickSigninHelper::CanOffer(web_contents,
206 OneClickSigninHelper::CAN_OFFER_FOR_ALL, 208 OneClickSigninHelper::CAN_OFFER_FOR_ALL,
207 std::string(), 209 std::string(),
208 NULL)) { 210 NULL)) {
209 OneClickSigninHelper::CreateForWebContentsWithPasswordManager( 211 OneClickSigninHelper::CreateForWebContentsWithPasswordManager(
210 web_contents, 212 web_contents,
211 ChromePasswordManagerClient::GetManagerFromWebContents(web_contents)); 213 ChromePasswordManagerClient::GetManagerFromWebContents(web_contents));
212 } 214 }
213 #endif 215 #endif
214 } 216 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698