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

Unified Diff: chrome/browser/search_engines/search_terms_data.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/search_engines/search_terms_data.cc
diff --git a/chrome/browser/search_engines/search_terms_data.cc b/chrome/browser/search_engines/search_terms_data.cc
index dd0ce9ceb8c0f093de99cad0ab6f394b35a1ae2b..5befb3f95dd6655e2209c39a61eee4baa39a6508 100644
--- a/chrome/browser/search_engines/search_terms_data.cc
+++ b/chrome/browser/search_engines/search_terms_data.cc
@@ -9,6 +9,7 @@
#include "base/metrics/field_trial.h"
#include "base/prefs/pref_service.h"
#include "chrome/browser/browser_process.h"
+#include "chrome/browser/google/google_profile_helper.h"
#include "chrome/browser/google/google_url_tracker.h"
#include "chrome/browser/google/google_util.h"
#include "chrome/browser/profiles/profile.h"
@@ -99,8 +100,8 @@ std::string UIThreadSearchTermsData::GoogleBaseURLValue() const {
GURL base_url(google_util::CommandLineGoogleBaseURL());
if (base_url.is_valid())
return base_url.spec();
- return profile_ ? GoogleURLTracker::GoogleURL(profile_).spec() :
- SearchTermsData::GoogleBaseURLValue();
+ return profile_ ? google_profile_helper::GetGoogleHomePageURL(profile_).spec()
+ : SearchTermsData::GoogleBaseURLValue();
Peter Kasting 2014/05/30 20:50:39 Nit: Wrap like: return profile_ ? google_
blundell 2014/06/02 15:42:26 Done.
}
std::string UIThreadSearchTermsData::GetApplicationLocale() const {

Powered by Google App Engine
This is Rietveld 408576698