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

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

Issue 2572433002: Disable tracking of visits to bookmarks in incognito (Closed)
Patch Set: Bernhard's comments #2 Created 4 years 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
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 <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 #endif 151 #endif
152 152
153 // --- Common tab helpers --- 153 // --- Common tab helpers ---
154 154
155 autofill::ChromeAutofillClient::CreateForWebContents(web_contents); 155 autofill::ChromeAutofillClient::CreateForWebContents(web_contents);
156 autofill::ContentAutofillDriverFactory::CreateForWebContentsAndDelegate( 156 autofill::ContentAutofillDriverFactory::CreateForWebContentsAndDelegate(
157 web_contents, 157 web_contents,
158 autofill::ChromeAutofillClient::FromWebContents(web_contents), 158 autofill::ChromeAutofillClient::FromWebContents(web_contents),
159 g_browser_process->GetApplicationLocale(), 159 g_browser_process->GetApplicationLocale(),
160 autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER); 160 autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER);
161 BookmarkLastVisitUpdater::CreateForWebContentsWithBookmarkModel( 161 BookmarkLastVisitUpdater::MaybeCreateForWebContentsWithBookmarkModel(
162 web_contents, BookmarkModelFactory::GetForBrowserContext( 162 web_contents, BookmarkModelFactory::GetForBrowserContext(
163 web_contents->GetBrowserContext())); 163 web_contents->GetBrowserContext()));
164 chrome_browser_net::NetErrorTabHelper::CreateForWebContents(web_contents); 164 chrome_browser_net::NetErrorTabHelper::CreateForWebContents(web_contents);
165 chrome_browser_net::PredictorTabHelper::CreateForWebContents(web_contents); 165 chrome_browser_net::PredictorTabHelper::CreateForWebContents(web_contents);
166 ChromePasswordManagerClient::CreateForWebContentsWithAutofillClient( 166 ChromePasswordManagerClient::CreateForWebContentsWithAutofillClient(
167 web_contents, 167 web_contents,
168 autofill::ChromeAutofillClient::FromWebContents(web_contents)); 168 autofill::ChromeAutofillClient::FromWebContents(web_contents));
169 ChromeTranslateClient::CreateForWebContents(web_contents); 169 ChromeTranslateClient::CreateForWebContents(web_contents);
170 CoreTabHelper::CreateForWebContents(web_contents); 170 CoreTabHelper::CreateForWebContents(web_contents);
171 data_use_measurement::DataUseWebContentsObserver::CreateForWebContents( 171 data_use_measurement::DataUseWebContentsObserver::CreateForWebContents(
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 273
274 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( 274 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile(
275 web_contents->GetBrowserContext())) { 275 web_contents->GetBrowserContext())) {
276 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( 276 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents(
277 web_contents); 277 web_contents);
278 } 278 }
279 279
280 if (tracing::NavigationTracingObserver::IsEnabled()) 280 if (tracing::NavigationTracingObserver::IsEnabled())
281 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); 281 tracing::NavigationTracingObserver::CreateForWebContents(web_contents);
282 } 282 }
OLDNEW
« no previous file with comments | « chrome/browser/ntp_snippets/bookmark_last_visit_updater_unittest.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698