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

Issue 17022004: Replace --google-base-suggest-url and --instant-url with --google-base-url. (Closed)

Created:
7 years, 6 months ago by Peter Kasting
Modified:
7 years, 6 months ago
Reviewers:
H Fung, samarth, Jered
CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, mad+watch_chromium.org, dominich, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, kmadhusu+watch_chromium.org
Visibility:
Public.

Description

Replace --google-base-suggest-url and --instant-url with --google-base-url. Add a new --extra-search-query-params flag for inserting query params into the search and instant URLs. This also cleans up various google_util functions to take a GURL instead of a string. BUG=249197 TEST=Run Chrome with --google-base-url="<url>" and --extra-search-query-params="<params>" and you should see those reflected in the default search URL.

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 12

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1105 lines, -1020 lines) Patch
M chrome/browser/android/provider/chrome_browser_provider.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_controller.cc View 1 2 3 4 1 chunk +15 lines, -15 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_provider_unittest.cc View 1 2 3 4 6 chunks +26 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/keyword_provider.h View 1 2 3 4 3 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/autocomplete/keyword_provider.cc View 1 2 3 4 11 chunks +93 lines, -103 lines 0 comments Download
M chrome/browser/autocomplete/keyword_provider_unittest.cc View 1 2 3 4 5 chunks +44 lines, -44 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.h View 1 2 3 4 1 chunk +24 lines, -13 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 1 2 3 4 3 chunks +18 lines, -17 lines 0 comments Download
M chrome/browser/autocomplete/search_provider_unittest.cc View 1 2 3 4 10 chunks +93 lines, -59 lines 0 comments Download
M chrome/browser/autocomplete/zero_suggest_provider.h View 1 2 3 4 1 chunk +10 lines, -9 lines 0 comments Download
M chrome/browser/autocomplete/zero_suggest_provider.cc View 1 2 3 4 2 chunks +10 lines, -14 lines 0 comments Download
M chrome/browser/google/google_search_counter.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/google/google_url_tracker.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/google/google_util.h View 1 2 3 4 1 chunk +18 lines, -9 lines 0 comments Download
M chrome/browser/google/google_util.cc View 1 2 3 4 2 chunks +30 lines, -50 lines 0 comments Download
M chrome/browser/google/google_util_unittest.cc View 1 2 3 4 1 chunk +197 lines, -209 lines 0 comments Download
M chrome/browser/metrics/variations/variations_http_header_provider.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/metro_viewer/chrome_metro_viewer_process_host_aurawin.cc View 1 2 3 4 2 chunks +5 lines, -14 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/rlz/rlz.cc View 1 2 3 4 2 chunks +5 lines, -8 lines 0 comments Download
M chrome/browser/search/search.h View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/search/search.cc View 1 2 3 4 8 chunks +46 lines, -94 lines 0 comments Download
M chrome/browser/search/search_unittest.cc View 1 2 3 4 5 chunks +51 lines, -33 lines 0 comments Download
M chrome/browser/search_engines/search_terms_data.cc View 1 2 3 4 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/search_engines/template_url.h View 1 2 3 4 3 chunks +19 lines, -1 line 0 comments Download
M chrome/browser/search_engines/template_url.cc View 1 2 3 4 5 chunks +180 lines, -153 lines 0 comments Download
M chrome/browser/search_engines/template_url_prepopulate_data_unittest.cc View 1 2 3 4 1 chunk +14 lines, -4 lines 0 comments Download
M chrome/browser/search_engines/template_url_service.h View 1 2 3 4 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/search_engines/template_url_service.cc View 1 2 3 4 3 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/search_engines/template_url_unittest.cc View 1 2 3 4 2 chunks +37 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/util.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/util.cc View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_commands.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_controller.cc View 1 2 3 4 3 chunks +12 lines, -23 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 1 2 3 4 3 chunks +32 lines, -30 lines 0 comments Download
M chrome/browser/ui/search/instant_controller.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator.cc View 1 2 3 4 3 chunks +10 lines, -17 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_impl.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_win.cc View 1 2 3 4 2 chunks +4 lines, -16 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_model_impl.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_model_unittest.cc View 1 2 3 4 6 chunks +34 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame_win.cc View 1 2 3 4 2 chunks +4 lines, -17 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 4 chunks +7 lines, -9 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Peter Kasting
hfung: search_terms_data.cc. You'll note that I moved the code from SearchTermsData to UIThreadSearchTermsData, because command_line.h ...
7 years, 6 months ago (2013-06-14 23:43:50 UTC) #1
H Fung
lgtm
7 years, 6 months ago (2013-06-15 00:42:27 UTC) #2
samarth
Thanks, Samarth https://codereview.chromium.org/17022004/diff/1/chrome/browser/search/search.cc File chrome/browser/search/search.cc (right): https://codereview.chromium.org/17022004/diff/1/chrome/browser/search/search.cc#newcode201 chrome/browser/search/search.cc:201: if (extended_api_enabled && !url.SchemeIsSecure()) I ran into ...
7 years, 6 months ago (2013-06-17 20:39:37 UTC) #3
Peter Kasting
Samarth, take another look. I've tried to address both complaints about search.cc. We now have ...
7 years, 6 months ago (2013-06-21 01:01:21 UTC) #4
samarth
[+Jered to take over the review since I'm about to head out on vacation] I ...
7 years, 6 months ago (2013-06-21 23:57:24 UTC) #5
Jered
On 2013/06/21 23:57:24, samarth wrote: > [+Jered to take over the review since I'm about ...
7 years, 6 months ago (2013-06-25 16:30:04 UTC) #6
Jered
https://codereview.chromium.org/17022004/diff/26001/chrome/browser/google/google_util.cc File chrome/browser/google/google_util.cc (right): https://codereview.chromium.org/17022004/diff/26001/chrome/browser/google/google_util.cc#newcode155 chrome/browser/google/google_util.cc:155: bool IsGoogleDomainUrl(const std::string& url, All the callers turn a ...
7 years, 6 months ago (2013-06-25 16:30:39 UTC) #7
Peter Kasting
Significantly modified. This addresses the problems Samarth was seeing as well as the issues below, ...
7 years, 6 months ago (2013-06-25 23:06:36 UTC) #8
Jered
lgtm with some minor nits. https://codereview.chromium.org/17022004/diff/53001/chrome/browser/google/google_util.cc File chrome/browser/google/google_util.cc (right): https://codereview.chromium.org/17022004/diff/53001/chrome/browser/google/google_util.cc#newcode212 chrome/browser/google/google_util.cc:212: bool is_home_page_base = false; ...
7 years, 6 months ago (2013-06-26 00:32:16 UTC) #9
Peter Kasting
https://codereview.chromium.org/17022004/diff/53001/chrome/browser/google/google_util.cc File chrome/browser/google/google_util.cc (right): https://codereview.chromium.org/17022004/diff/53001/chrome/browser/google/google_util.cc#newcode212 chrome/browser/google/google_util.cc:212: bool is_home_page_base = false; On 2013/06/26 00:32:16, Jered wrote: ...
7 years, 6 months ago (2013-06-26 00:40:27 UTC) #10
Peter Kasting
7 years, 6 months ago (2013-06-27 00:27:41 UTC) #11
Ugh.  I think this is basically done, but the final patch is enormous and has
way too many disparate pieces.  (Uploaded in patch set 5.)

I'm going to close this CL and do this change as a series of smaller commits.

Powered by Google App Engine
This is Rietveld 408576698