| 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
|
|
|