Index: chrome/browser/android/tab_android.cc |
diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc |
index d288de987d745ebd37aaaa20fe05413d531a0a62..932fdb833abf7a02e121e7639df083456becf9bb 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" |
@@ -414,7 +415,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->SearchCommitted(); |
} |
// Record UMA "ShowHistory" here. That way it'll pick up both user |