Chromium Code Reviews| 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 a1adfc9f4c8ae633b65957e100c7a54fb1dd74a4..1b15d35b1d80738222991286aed395ea6ff9cd03 100644 |
| --- a/chrome/browser/search_engines/search_terms_data.cc |
| +++ b/chrome/browser/search_engines/search_terms_data.cc |
| @@ -141,6 +141,12 @@ std::string UIThreadSearchTermsData::InstantEnabledParam() const { |
| } |
| std::string UIThreadSearchTermsData::InstantExtendedEnabledParam() const { |
| +#if defined(OS_IOS) || defined(OS_ANDROID) |
|
Peter Kasting
2013/03/01 21:44:44
You're omitting the threading assertion and the pr
Yusuf
2013/03/01 22:26:07
Done.
|
| + if (chrome::search::IsQueryExtractionEnabled(profile_) && |
| + GURL(GoogleBaseURLValue()).SchemeIsSecure()) |
|
Peter Kasting
2013/03/01 21:44:44
Shouldn't we be checking scheme security elsewhere
Yusuf
2013/03/01 22:26:07
You are right. Apparently it is already checked in
rohitrao (ping after 24h)
2013/03/01 22:38:26
We have to be a little careful here, because we do
|
| + return std::string(google_util::kInstantExtendedAPIParam) + "=" + |
| + std::string(google_util::kInstantExtendedDefaultAPIVersion) + "&"; |
|
Peter Kasting
2013/03/01 21:44:44
If you're already modifying UIThreadSearchTermsDat
Yusuf
2013/03/01 22:26:07
Done.
|
| +#else |
| DCHECK(!BrowserThread::IsWellKnownThread(BrowserThread::UI) || |
| BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| if (profile_) { |
| @@ -151,6 +157,7 @@ std::string UIThreadSearchTermsData::InstantExtendedEnabledParam() const { |
| base::Uint64ToString(instant_extended_api_version) + "&"; |
| } |
| } |
| +#endif |
| return std::string(); |
| } |