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

Unified Diff: chrome/browser/android/tab_android.cc

Issue 303233006: Abstract GoogleURLTracker & google_util Profile dependencies (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update comments 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/android/tab_android.cc
diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc
index f831f2172bb7a1879925733df3945f509811826f..61f73638d4ac33672fdbd6e1ff880aea15e83cd9 100644
--- a/chrome/browser/android/tab_android.cc
+++ b/chrome/browser/android/tab_android.cc
@@ -13,6 +13,7 @@
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/content_settings/tab_specific_content_settings.h"
#include "chrome/browser/google/google_url_tracker.h"
+#include "chrome/browser/google/google_url_tracker_factory.h"
#include "chrome/browser/google/google_util.h"
#include "chrome/browser/infobars/infobar_service.h"
#include "chrome/browser/prerender/prerender_contents.h"
@@ -413,7 +414,10 @@ TabAndroid::TabLoadStatus TabAndroid::LoadUrl(JNIEnv* env,
// infobar.
if (google_util::IsGoogleSearchUrl(fixed_url) &&
(page_transition & content::PAGE_TRANSITION_GENERATED)) {
- GoogleURLTracker::GoogleURLSearchCommitted(GetProfile());
+ GoogleURLTracker* tracker =
+ GoogleURLTrackerFactory::GetForProfile(GetProfile());
+ if (tracker)
+ tracker->GoogleURLSearchCommitted());
}
// Record UMA "ShowHistory" here. That way it'll pick up both user

Powered by Google App Engine
This is Rietveld 408576698