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

Unified Diff: chrome/browser/ui/tab_helpers.cc

Issue 283413002: Turn GoogleURLTrackerNavigationHelper(Impl) into a per-tab object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/tab_helpers.cc
diff --git a/chrome/browser/ui/tab_helpers.cc b/chrome/browser/ui/tab_helpers.cc
index 05924e3767b77f4e4895d89d4a3ee6383fd11f32..8d5ac8197e61b13ea125908c2322a1fc90f338d8 100644
--- a/chrome/browser/ui/tab_helpers.cc
+++ b/chrome/browser/ui/tab_helpers.cc
@@ -9,6 +9,8 @@
#include "chrome/browser/content_settings/tab_specific_content_settings.h"
#include "chrome/browser/extensions/tab_helper.h"
#include "chrome/browser/favicon/favicon_tab_helper.h"
+#include "chrome/browser/google/google_url_tracker_factory.h"
+#include "chrome/browser/google/google_url_tracker_navigation_helper_impl.h"
#include "chrome/browser/history/history_tab_helper.h"
#include "chrome/browser/infobars/infobar_service.h"
#include "chrome/browser/net/net_error_tab_helper.h"
@@ -128,6 +130,10 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) {
extensions::TabHelper::CreateForWebContents(web_contents);
FaviconTabHelper::CreateForWebContents(web_contents);
FindTabHelper::CreateForWebContents(web_contents);
+ GoogleURLTrackerNavigationHelperImpl::CreateForWebContentsAndTracker(
+ web_contents,
+ GoogleURLTrackerFactory::GetForProfile(
+ Profile::FromBrowserContext(web_contents->GetBrowserContext())));
HistoryTabHelper::CreateForWebContents(web_contents);
InfoBarService::CreateForWebContents(web_contents);
NavigationCorrectionTabObserver::CreateForWebContents(web_contents);

Powered by Google App Engine
This is Rietveld 408576698