OLD | NEW |
---|---|
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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
135 PasswordManagerDelegateImpl::CreateForWebContents(web_contents); | 135 PasswordManagerDelegateImpl::CreateForWebContents(web_contents); |
136 PasswordManager::CreateForWebContentsAndDelegate( | 136 PasswordManager::CreateForWebContentsAndDelegate( |
137 web_contents, PasswordManagerDelegateImpl::FromWebContents(web_contents)); | 137 web_contents, PasswordManagerDelegateImpl::FromWebContents(web_contents)); |
138 PDFTabHelper::CreateForWebContents(web_contents); | 138 PDFTabHelper::CreateForWebContents(web_contents); |
139 PluginObserver::CreateForWebContents(web_contents); | 139 PluginObserver::CreateForWebContents(web_contents); |
140 if (CommandLine::ForCurrentProcess()->HasSwitch( | 140 if (CommandLine::ForCurrentProcess()->HasSwitch( |
141 switches::kEnableBetterPopupBlocking)) { | 141 switches::kEnableBetterPopupBlocking)) { |
142 PopupBlockerTabHelper::CreateForWebContents(web_contents); | 142 PopupBlockerTabHelper::CreateForWebContents(web_contents); |
143 } | 143 } |
144 PrefsTabHelper::CreateForWebContents(web_contents); | 144 PrefsTabHelper::CreateForWebContents(web_contents); |
145 prerender::PrerenderTabHelper::CreateForWebContents(web_contents); | 145 prerender::PrerenderTabHelper::CreateForWebContentsWithPasswordManager( |
146 web_contents, PasswordManager::FromWebContents(web_contents)); | |
Ilya Sherman
2013/07/27 01:09:48
Hmm, why not just call PasswordManager::FromWebCon
Garrett Casto
2013/08/03 00:38:42
We could, but then there would be a hidden depende
Ilya Sherman
2013/08/06 09:34:11
Okay, fair enough :)
| |
146 SadTabHelper::CreateForWebContents(web_contents); | 147 SadTabHelper::CreateForWebContents(web_contents); |
147 safe_browsing::SafeBrowsingTabObserver::CreateForWebContents(web_contents); | 148 safe_browsing::SafeBrowsingTabObserver::CreateForWebContents(web_contents); |
148 SearchEngineTabHelper::CreateForWebContents(web_contents); | 149 SearchEngineTabHelper::CreateForWebContents(web_contents); |
149 SearchTabHelper::CreateForWebContents(web_contents); | 150 SearchTabHelper::CreateForWebContents(web_contents); |
150 SSLTabHelper::CreateForWebContents(web_contents); | 151 SSLTabHelper::CreateForWebContents(web_contents); |
151 TabContentsSyncedTabDelegate::CreateForWebContents(web_contents); | 152 TabContentsSyncedTabDelegate::CreateForWebContents(web_contents); |
152 TabSpecificContentSettings::CreateForWebContents(web_contents); | 153 TabSpecificContentSettings::CreateForWebContents(web_contents); |
153 ThumbnailTabHelper::CreateForWebContents(web_contents); | 154 ThumbnailTabHelper::CreateForWebContents(web_contents); |
154 TranslateTabHelper::CreateForWebContents(web_contents); | 155 TranslateTabHelper::CreateForWebContents(web_contents); |
155 ZoomController::CreateForWebContents(web_contents); | 156 ZoomController::CreateForWebContents(web_contents); |
(...skipping 15 matching lines...) Expand all Loading... | |
171 #if defined(ENABLE_ONE_CLICK_SIGNIN) | 172 #if defined(ENABLE_ONE_CLICK_SIGNIN) |
172 // If this is not an incognito window, setup to handle one-click login. | 173 // If this is not an incognito window, setup to handle one-click login. |
173 // We don't want to check that the profile is already connected at this time | 174 // We don't want to check that the profile is already connected at this time |
174 // because the connected state may change while this tab is open. Having a | 175 // because the connected state may change while this tab is open. Having a |
175 // one-click signin helper attached does not cause problems if the profile | 176 // one-click signin helper attached does not cause problems if the profile |
176 // happens to be already connected. | 177 // happens to be already connected. |
177 if (OneClickSigninHelper::CanOffer(web_contents, | 178 if (OneClickSigninHelper::CanOffer(web_contents, |
178 OneClickSigninHelper::CAN_OFFER_FOR_ALL, | 179 OneClickSigninHelper::CAN_OFFER_FOR_ALL, |
179 std::string(), | 180 std::string(), |
180 NULL)) { | 181 NULL)) { |
181 OneClickSigninHelper::CreateForWebContents(web_contents); | 182 OneClickSigninHelper::CreateForWebContentsWithPasswordManager( |
183 web_contents, PasswordManager::FromWebContents(web_contents)); | |
Ilya Sherman
2013/07/27 01:09:48
Ditto.
| |
182 } | 184 } |
183 #endif | 185 #endif |
184 | 186 |
185 #if defined(OS_WIN) | 187 #if defined(OS_WIN) |
186 MetroPinTabHelper::CreateForWebContents(web_contents); | 188 MetroPinTabHelper::CreateForWebContents(web_contents); |
187 #endif | 189 #endif |
188 } | 190 } |
OLD | NEW |