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

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: Refactor PasswordAutofillManager in password_manager component. Created 6 years, 9 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 AlternateErrorPageTabObserver::CreateForWebContents(web_contents); 121 AlternateErrorPageTabObserver::CreateForWebContents(web_contents);
122 autofill::TabAutofillManagerDelegate::CreateForWebContents(web_contents); 122 autofill::TabAutofillManagerDelegate::CreateForWebContents(web_contents);
123 autofill::AutofillDriverImpl::CreateForWebContentsAndDelegate( 123 autofill::AutofillDriverImpl::CreateForWebContentsAndDelegate(
124 web_contents, 124 web_contents,
125 autofill::TabAutofillManagerDelegate::FromWebContents(web_contents), 125 autofill::TabAutofillManagerDelegate::FromWebContents(web_contents),
126 g_browser_process->GetApplicationLocale(), 126 g_browser_process->GetApplicationLocale(),
127 autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER); 127 autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER);
128 BookmarkTabHelper::CreateForWebContents(web_contents); 128 BookmarkTabHelper::CreateForWebContents(web_contents);
129 chrome_browser_net::NetErrorTabHelper::CreateForWebContents(web_contents); 129 chrome_browser_net::NetErrorTabHelper::CreateForWebContents(web_contents);
130 ChromePasswordManagerClient::CreateForWebContents(web_contents);
130 CoreTabHelper::CreateForWebContents(web_contents); 131 CoreTabHelper::CreateForWebContents(web_contents);
131 extensions::TabHelper::CreateForWebContents(web_contents); 132 extensions::TabHelper::CreateForWebContents(web_contents);
132 FaviconTabHelper::CreateForWebContents(web_contents); 133 FaviconTabHelper::CreateForWebContents(web_contents);
133 FindTabHelper::CreateForWebContents(web_contents); 134 FindTabHelper::CreateForWebContents(web_contents);
134 HistoryTabHelper::CreateForWebContents(web_contents); 135 HistoryTabHelper::CreateForWebContents(web_contents);
135 InfoBarService::CreateForWebContents(web_contents); 136 InfoBarService::CreateForWebContents(web_contents);
136 NavigationMetricsRecorder::CreateForWebContents(web_contents); 137 NavigationMetricsRecorder::CreateForWebContents(web_contents);
137 ChromePasswordManagerClient::CreateForWebContents(web_contents);
138 PopupBlockerTabHelper::CreateForWebContents(web_contents); 138 PopupBlockerTabHelper::CreateForWebContents(web_contents);
139 PrefsTabHelper::CreateForWebContents(web_contents); 139 PrefsTabHelper::CreateForWebContents(web_contents);
140 prerender::PrerenderTabHelper::CreateForWebContentsWithPasswordManager( 140 prerender::PrerenderTabHelper::CreateForWebContentsWithPasswordManager(
141 web_contents, 141 web_contents,
142 ChromePasswordManagerClient::GetManagerFromWebContents(web_contents)); 142 ChromePasswordManagerClient::GetManagerFromWebContents(web_contents));
143 SSLTabHelper::CreateForWebContents(web_contents); 143 SSLTabHelper::CreateForWebContents(web_contents);
144 TabSpecificContentSettings::CreateForWebContents(web_contents); 144 TabSpecificContentSettings::CreateForWebContents(web_contents);
145 TranslateTabHelper::CreateForWebContents(web_contents); 145 TranslateTabHelper::CreateForWebContents(web_contents);
146 146
147 // --- Platform-specific tab helpers --- 147 // --- Platform-specific tab helpers ---
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 if (OneClickSigninHelper::CanOffer(web_contents, 205 if (OneClickSigninHelper::CanOffer(web_contents,
206 OneClickSigninHelper::CAN_OFFER_FOR_ALL, 206 OneClickSigninHelper::CAN_OFFER_FOR_ALL,
207 std::string(), 207 std::string(),
208 NULL)) { 208 NULL)) {
209 OneClickSigninHelper::CreateForWebContentsWithPasswordManager( 209 OneClickSigninHelper::CreateForWebContentsWithPasswordManager(
210 web_contents, 210 web_contents,
211 ChromePasswordManagerClient::GetManagerFromWebContents(web_contents)); 211 ChromePasswordManagerClient::GetManagerFromWebContents(web_contents));
212 } 212 }
213 #endif 213 #endif
214 } 214 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698