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

Issue 11448005: Add Android-specific parameters to search_engines/ (Closed)

Created:
8 years ago by gone
Modified:
8 years ago
CC:
chromium-reviews, Isaac (away)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add Android-specific parameters to search_engines/ Previous attempt; expanded since then: https://chromiumcodereview.appspot.com/10332156/ * The search string has "sourceid=chrome-mobile" on Android devices. * SearchTermsDataAndroid added to handle the data values that Android needs to store for RLZ tracking. * UiThreadSearchTermsData calls Android specific functions when being asked for rlz= or client= strings. * ENABLE_RLZ is moved around (or removed) in some cases to allow use of the fields even when the RLZ library is not in use. * The RLZ unit test is changed to account for the way Android sets the RLZ string. * A new SearchClient unit test is added to check that setting client strings works. BUG=145065 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171954

Patch Set 1 #

Patch Set 2 : Rebasing #

Total comments: 10

Patch Set 3 : Addressing comments #

Patch Set 4 : Adding unit tests #

Patch Set 5 : Adding sourceid changes #

Total comments: 14

Patch Set 6 : Addressing comments, getting rid of globals #

Patch Set 7 : Moving guards #

Total comments: 6

Patch Set 8 : Addressing nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -18 lines) Patch
M build/common.gypi View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/search_engines/prepopulated_engines.json View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/search_engines/search_terms_data.h View 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/search_engines/search_terms_data.cc View 1 2 3 4 5 6 7 5 chunks +21 lines, -8 lines 0 comments Download
A chrome/browser/search_engines/search_terms_data_android.h View 1 2 3 4 5 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/browser/search_engines/search_terms_data_android.cc View 1 2 3 4 5 1 chunk +29 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url.h View 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url.cc View 1 2 3 4 5 3 chunks +22 lines, -3 lines 0 comments Download
M chrome/browser/search_engines/template_url_unittest.cc View 1 2 3 4 5 6 3 chunks +36 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
gone
Hey Peter, This CL is a continuation of https://chromiumcodereview.appspot.com/10332156/ and adds in another change that ...
8 years ago (2012-12-05 02:22:44 UTC) #1
Peter Kasting
https://chromiumcodereview.appspot.com/11448005/diff/4001/chrome/browser/search_engines/prepopulated_engines.json File chrome/browser/search_engines/prepopulated_engines.json (right): https://chromiumcodereview.appspot.com/11448005/diff/4001/chrome/browser/search_engines/prepopulated_engines.json#newcode850 chrome/browser/search_engines/prepopulated_engines.json:850: "search_url": "{google:baseURL}search?q={searchTerms}&{google:RLZ}{google:acceptedSuggestion}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:searchClient}sourceid=chrome&ie={inputEncoding}", You need to bump the version number ...
8 years ago (2012-12-05 21:28:47 UTC) #2
gone
https://chromiumcodereview.appspot.com/11448005/diff/4001/chrome/browser/search_engines/prepopulated_engines.json File chrome/browser/search_engines/prepopulated_engines.json (right): https://chromiumcodereview.appspot.com/11448005/diff/4001/chrome/browser/search_engines/prepopulated_engines.json#newcode850 chrome/browser/search_engines/prepopulated_engines.json:850: "search_url": "{google:baseURL}search?q={searchTerms}&{google:RLZ}{google:acceptedSuggestion}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:searchClient}sourceid=chrome&ie={inputEncoding}", On 2012/12/05 21:28:47, Peter Kasting wrote: > ...
8 years ago (2012-12-06 01:43:57 UTC) #3
Peter Kasting
https://chromiumcodereview.appspot.com/11448005/diff/10015/chrome/browser/search_engines/prepopulated_engines.json File chrome/browser/search_engines/prepopulated_engines.json (right): https://chromiumcodereview.appspot.com/11448005/diff/10015/chrome/browser/search_engines/prepopulated_engines.json#newcode29 chrome/browser/search_engines/prepopulated_engines.json:29: "kCurrentDataVersion": 47 Note that there are also a couple ...
8 years ago (2012-12-06 07:02:37 UTC) #4
gone
I think these changes cover the latest round. PTAL when you've got a chance. Thanks! ...
8 years ago (2012-12-06 20:59:48 UTC) #5
Peter Kasting
LGTM https://chromiumcodereview.appspot.com/11448005/diff/23002/chrome/browser/search_engines/search_terms_data.cc File chrome/browser/search_engines/search_terms_data.cc (right): https://chromiumcodereview.appspot.com/11448005/diff/23002/chrome/browser/search_engines/search_terms_data.cc#newcode94 chrome/browser/search_engines/search_terms_data.cc:94: // Android implementations are located in search_terms_data_android.cc. Tiny ...
8 years ago (2012-12-07 23:32:57 UTC) #6
gone
Thanks! Adding OWNERS for chrome/ https://chromiumcodereview.appspot.com/11448005/diff/23002/chrome/browser/search_engines/search_terms_data.cc File chrome/browser/search_engines/search_terms_data.cc (right): https://chromiumcodereview.appspot.com/11448005/diff/23002/chrome/browser/search_engines/search_terms_data.cc#newcode94 chrome/browser/search_engines/search_terms_data.cc:94: // Android implementations are ...
8 years ago (2012-12-08 00:32:51 UTC) #7
gone
Er, properly adding OWNERS this time.
8 years ago (2012-12-08 00:33:55 UTC) #8
Nico
lgtm
8 years ago (2012-12-08 00:39:00 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dfalcantara@chromium.org/11448005/18016
8 years ago (2012-12-08 00:46:14 UTC) #10
commit-bot: I haz the power
8 years ago (2012-12-08 06:56:12 UTC) #11
Message was sent while issue was closed.
Change committed as 171954

Powered by Google App Engine
This is Rietveld 408576698