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 b623fefeb5a7e84d09237ca3ca03f0a1906eb9b8..221ef84b0213d9637641eef9aea3eae63f518e42 100644 |
--- a/chrome/browser/search_engines/search_terms_data.cc |
+++ b/chrome/browser/search_engines/search_terms_data.cc |
@@ -5,7 +5,6 @@ |
#include "chrome/browser/search_engines/search_terms_data.h" |
#include "base/logging.h" |
-#include "base/metrics/field_trial.h" |
#include "chrome/browser/browser_process.h" |
#include "chrome/browser/google/google_url_tracker.h" |
#include "chrome/browser/google/google_util.h" |
@@ -16,7 +15,6 @@ |
#include "googleurl/src/gurl.h" |
#if defined(ENABLE_RLZ) |
-#include "chrome/browser/google/google_util.h" |
#include "chrome/browser/rlz/rlz.h" |
#endif |
@@ -56,11 +54,13 @@ std::string SearchTermsData::GetApplicationLocale() const { |
return "en"; |
} |
-#if defined(ENABLE_RLZ) |
string16 SearchTermsData::GetRlzParameterValue() const { |
return string16(); |
} |
-#endif |
+ |
+std::string SearchTermsData::GetSearchClient() const { |
+ return std::string(); |
+} |
std::string SearchTermsData::InstantEnabledParam() const { |
return std::string(); |
@@ -72,12 +72,12 @@ std::string* UIThreadSearchTermsData::google_base_url_ = NULL; |
UIThreadSearchTermsData::UIThreadSearchTermsData(Profile* profile) |
: profile_(profile) { |
DCHECK(!BrowserThread::IsWellKnownThread(BrowserThread::UI) || |
- BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ BrowserThread::CurrentlyOn(BrowserThread::UI)); |
} |
std::string UIThreadSearchTermsData::GoogleBaseURLValue() const { |
DCHECK(!BrowserThread::IsWellKnownThread(BrowserThread::UI) || |
- BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ BrowserThread::CurrentlyOn(BrowserThread::UI)); |
if (google_base_url_) |
return *google_base_url_; |
return profile_ ? GoogleURLTracker::GoogleURL(profile_).spec() : |
@@ -86,15 +86,17 @@ std::string UIThreadSearchTermsData::GoogleBaseURLValue() const { |
std::string UIThreadSearchTermsData::GetApplicationLocale() const { |
DCHECK(!BrowserThread::IsWellKnownThread(BrowserThread::UI) || |
- BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ BrowserThread::CurrentlyOn(BrowserThread::UI)); |
return g_browser_process->GetApplicationLocale(); |
} |
-#if defined(ENABLE_RLZ) |
+#if !defined(OS_ANDROID) |
+// Android implementations are located in search_terms_data_android.cc. |
Peter Kasting
2012/12/07 23:32:57
Tiny nit: I'd put this comment above the #if
gone
2012/12/08 00:32:52
Done.
|
string16 UIThreadSearchTermsData::GetRlzParameterValue() const { |
DCHECK(!BrowserThread::IsWellKnownThread(BrowserThread::UI) || |
- BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ BrowserThread::CurrentlyOn(BrowserThread::UI)); |
string16 rlz_string; |
+#if defined(ENABLE_RLZ) |
// For organic brandcodes do not use rlz at all. Empty brandcode usually |
// means a chromium install. This is ok. |
std::string brand; |
@@ -105,8 +107,15 @@ string16 UIThreadSearchTermsData::GetRlzParameterValue() const { |
// search might not send the RLZ data but this is not really a problem. |
RLZTracker::GetAccessPointRlz(RLZTracker::CHROME_OMNIBOX, &rlz_string); |
} |
+#endif |
return rlz_string; |
} |
+ |
+std::string UIThreadSearchTermsData::GetSearchClient() const { |
+ DCHECK(!BrowserThread::IsWellKnownThread(BrowserThread::UI) || |
+ BrowserThread::CurrentlyOn(BrowserThread::UI)); |
Peter Kasting
2012/12/07 23:32:57
Nit: Since you changed it everywhere else, indent
gone
2012/12/08 00:32:52
Ah, missed this.
|
+ return std::string(); |
+} |
#endif |
std::string UIThreadSearchTermsData::InstantEnabledParam() const { |