OLD | NEW |
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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 // --- Common tab helpers --- | 115 // --- Common tab helpers --- |
116 | 116 |
117 autofill::TabAutofillManagerDelegate::CreateForWebContents(web_contents); | 117 autofill::TabAutofillManagerDelegate::CreateForWebContents(web_contents); |
118 autofill::ContentAutofillDriver::CreateForWebContentsAndDelegate( | 118 autofill::ContentAutofillDriver::CreateForWebContentsAndDelegate( |
119 web_contents, | 119 web_contents, |
120 autofill::TabAutofillManagerDelegate::FromWebContents(web_contents), | 120 autofill::TabAutofillManagerDelegate::FromWebContents(web_contents), |
121 g_browser_process->GetApplicationLocale(), | 121 g_browser_process->GetApplicationLocale(), |
122 autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER); | 122 autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER); |
123 BookmarkTabHelper::CreateForWebContents(web_contents); | 123 BookmarkTabHelper::CreateForWebContents(web_contents); |
124 chrome_browser_net::NetErrorTabHelper::CreateForWebContents(web_contents); | 124 chrome_browser_net::NetErrorTabHelper::CreateForWebContents(web_contents); |
| 125 ChromePasswordManagerClient::CreateForWebContentsWithAutofillManagerDelegate( |
| 126 web_contents, |
| 127 autofill::TabAutofillManagerDelegate::FromWebContents(web_contents)); |
125 CoreTabHelper::CreateForWebContents(web_contents); | 128 CoreTabHelper::CreateForWebContents(web_contents); |
126 extensions::TabHelper::CreateForWebContents(web_contents); | 129 extensions::TabHelper::CreateForWebContents(web_contents); |
127 FaviconTabHelper::CreateForWebContents(web_contents); | 130 FaviconTabHelper::CreateForWebContents(web_contents); |
128 FindTabHelper::CreateForWebContents(web_contents); | 131 FindTabHelper::CreateForWebContents(web_contents); |
129 HistoryTabHelper::CreateForWebContents(web_contents); | 132 HistoryTabHelper::CreateForWebContents(web_contents); |
130 InfoBarService::CreateForWebContents(web_contents); | 133 InfoBarService::CreateForWebContents(web_contents); |
131 NavigationCorrectionTabObserver::CreateForWebContents(web_contents); | 134 NavigationCorrectionTabObserver::CreateForWebContents(web_contents); |
132 NavigationMetricsRecorder::CreateForWebContents(web_contents); | 135 NavigationMetricsRecorder::CreateForWebContents(web_contents); |
133 ChromePasswordManagerClient::CreateForWebContents(web_contents); | |
134 PopupBlockerTabHelper::CreateForWebContents(web_contents); | 136 PopupBlockerTabHelper::CreateForWebContents(web_contents); |
135 PrefsTabHelper::CreateForWebContents(web_contents); | 137 PrefsTabHelper::CreateForWebContents(web_contents); |
136 prerender::PrerenderTabHelper::CreateForWebContentsWithPasswordManager( | 138 prerender::PrerenderTabHelper::CreateForWebContentsWithPasswordManager( |
137 web_contents, | 139 web_contents, |
138 ChromePasswordManagerClient::GetManagerFromWebContents(web_contents)); | 140 ChromePasswordManagerClient::GetManagerFromWebContents(web_contents)); |
139 SSLTabHelper::CreateForWebContents(web_contents); | 141 SSLTabHelper::CreateForWebContents(web_contents); |
140 TabSpecificContentSettings::CreateForWebContents(web_contents); | 142 TabSpecificContentSettings::CreateForWebContents(web_contents); |
141 TranslateTabHelper::CreateForWebContents(web_contents); | 143 TranslateTabHelper::CreateForWebContents(web_contents); |
142 | 144 |
143 // --- Platform-specific tab helpers --- | 145 // --- Platform-specific tab helpers --- |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 if (OneClickSigninHelper::CanOffer(web_contents, | 205 if (OneClickSigninHelper::CanOffer(web_contents, |
204 OneClickSigninHelper::CAN_OFFER_FOR_ALL, | 206 OneClickSigninHelper::CAN_OFFER_FOR_ALL, |
205 std::string(), | 207 std::string(), |
206 NULL)) { | 208 NULL)) { |
207 OneClickSigninHelper::CreateForWebContentsWithPasswordManager( | 209 OneClickSigninHelper::CreateForWebContentsWithPasswordManager( |
208 web_contents, | 210 web_contents, |
209 ChromePasswordManagerClient::GetManagerFromWebContents(web_contents)); | 211 ChromePasswordManagerClient::GetManagerFromWebContents(web_contents)); |
210 } | 212 } |
211 #endif | 213 #endif |
212 } | 214 } |
OLD | NEW |