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/favicon/favicon_tab_helper.h" | 10 #include "chrome/browser/favicon/favicon_tab_helper.h" |
11 #include "chrome/browser/history/history_tab_helper.h" | 11 #include "chrome/browser/history/history_tab_helper.h" |
12 #include "chrome/browser/infobars/infobar_service.h" | 12 #include "chrome/browser/infobars/infobar_service.h" |
13 #include "chrome/browser/net/net_error_tab_helper.h" | 13 #include "chrome/browser/net/net_error_tab_helper.h" |
14 #include "chrome/browser/password_manager/chrome_password_manager_client.h" | 14 #include "chrome/browser/password_manager/chrome_password_manager_client.h" |
15 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h" | |
16 #include "chrome/browser/predictors/resource_prefetch_predictor_tab_helper.h" | |
17 #include "chrome/browser/prerender/prerender_tab_helper.h" | 15 #include "chrome/browser/prerender/prerender_tab_helper.h" |
18 #include "chrome/browser/sessions/session_tab_helper.h" | 16 #include "chrome/browser/sessions/session_tab_helper.h" |
19 #include "chrome/browser/tab_contents/navigation_metrics_recorder.h" | 17 #include "chrome/browser/tab_contents/navigation_metrics_recorder.h" |
20 #include "chrome/browser/translate/chrome_translate_client.h" | 18 #include "chrome/browser/translate/chrome_translate_client.h" |
21 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" | 19 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" |
22 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" | 20 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" |
23 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" | 21 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" |
24 #include "chrome/browser/ui/find_bar/find_tab_helper.h" | 22 #include "chrome/browser/ui/find_bar/find_tab_helper.h" |
25 #include "chrome/browser/ui/navigation_correction_tab_observer.h" | 23 #include "chrome/browser/ui/navigation_correction_tab_observer.h" |
26 #include "chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.h" | 24 #include "chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.h" |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 // happens to be already connected. | 220 // happens to be already connected. |
223 if (OneClickSigninHelper::CanOffer(web_contents, | 221 if (OneClickSigninHelper::CanOffer(web_contents, |
224 OneClickSigninHelper::CAN_OFFER_FOR_ALL, | 222 OneClickSigninHelper::CAN_OFFER_FOR_ALL, |
225 std::string(), | 223 std::string(), |
226 NULL)) { | 224 NULL)) { |
227 OneClickSigninHelper::CreateForWebContentsWithPasswordManager( | 225 OneClickSigninHelper::CreateForWebContentsWithPasswordManager( |
228 web_contents, | 226 web_contents, |
229 ChromePasswordManagerClient::GetManagerFromWebContents(web_contents)); | 227 ChromePasswordManagerClient::GetManagerFromWebContents(web_contents)); |
230 } | 228 } |
231 #endif | 229 #endif |
232 | |
233 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( | |
234 web_contents->GetBrowserContext())) { | |
235 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( | |
236 web_contents); | |
237 } | |
238 } | 230 } |
OLD | NEW |