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

Issue 22945004: InstantExtended: Add new_tab_url to TemplateURL. (Closed)

Created:
7 years, 4 months ago by Jered
Modified:
7 years, 4 months ago
Reviewers:
Peter Kasting, samarth
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

InstantExtended: Add new_tab_url to TemplateURL. Prepopulated engines may have an associated new tab page. Previously we were just assuming this was instant_url with no path, but with our new cacheable ntp this is no longer correct. Add a new new_tab_url field and explicitly use that instead when the cacheable ntp is being used. Also replace the --instant-new-tab-url command-line flag with a field trial specifying to use the cacheable ntp. BUG=271084, 271087 R=pkasting@chromium.org, samarth@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=218042

Patch Set 1 #

Total comments: 16

Patch Set 2 : Address comments. #

Total comments: 8

Patch Set 3 : Rebase. #

Patch Set 4 : Address comments. #

Patch Set 5 : Rebase. #

Patch Set 6 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -40 lines) Patch
M chrome/browser/chrome_content_browser_client_browsertest.cc View 1 4 chunks +24 lines, -4 lines 0 comments Download
M chrome/browser/search/search.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/search/search.cc View 1 8 chunks +41 lines, -20 lines 0 comments Download
M chrome/browser/search/search_unittest.cc View 1 2 chunks +17 lines, -4 lines 0 comments Download
M chrome/browser/search_engines/prepopulated_engines.json View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/search_engines/prepopulated_engines_schema.json View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url.h View 1 5 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url.cc View 1 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/search_engines/template_url_prepopulate_data.cc View 1 2 3 4 5 6 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/search_engines/template_url_prepopulate_data_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url_unittest.cc View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Jered
Please review. pkasting -> search_engines samarth -> search
7 years, 4 months ago (2013-08-13 18:59:12 UTC) #1
Anuj
https://chromiumcodereview.appspot.com/22945004/diff/1/chrome/browser/search/search_unittest.cc File chrome/browser/search/search_unittest.cc (right): https://chromiumcodereview.appspot.com/22945004/diff/1/chrome/browser/search/search_unittest.cc#newcode248 chrome/browser/search/search_unittest.cc:248: data.new_tab_url = "http://foo.com/newtab?strk"; Should this change for all tests ...
7 years, 4 months ago (2013-08-13 22:54:33 UTC) #2
Jered
On 2013/08/13 22:54:33, Anuj wrote: > https://chromiumcodereview.appspot.com/22945004/diff/1/chrome/browser/search/search_unittest.cc > File chrome/browser/search/search_unittest.cc (right): > > https://chromiumcodereview.appspot.com/22945004/diff/1/chrome/browser/search/search_unittest.cc#newcode248 > ...
7 years, 4 months ago (2013-08-13 22:58:02 UTC) #3
samarth
lgtm for search with some nits https://codereview.chromium.org/22945004/diff/1/chrome/browser/chrome_content_browser_client_browsertest.cc File chrome/browser/chrome_content_browser_client_browsertest.cc (right): https://codereview.chromium.org/22945004/diff/1/chrome/browser/chrome_content_browser_client_browsertest.cc#newcode120 chrome/browser/chrome_content_browser_client_browsertest.cc:120: "Group1 use_cacheable_ntp:0")); cacheable_ntp:1 ...
7 years, 4 months ago (2013-08-13 23:47:59 UTC) #4
Jered
https://codereview.chromium.org/22945004/diff/1/chrome/browser/chrome_content_browser_client_browsertest.cc File chrome/browser/chrome_content_browser_client_browsertest.cc (right): https://codereview.chromium.org/22945004/diff/1/chrome/browser/chrome_content_browser_client_browsertest.cc#newcode120 chrome/browser/chrome_content_browser_client_browsertest.cc:120: "Group1 use_cacheable_ntp:0")); On 2013/08/13 23:47:59, samarth wrote: > cacheable_ntp:1 ...
7 years, 4 months ago (2013-08-14 15:41:48 UTC) #5
Peter Kasting
LGTM https://chromiumcodereview.appspot.com/22945004/diff/14001/chrome/browser/search_engines/prepopulated_engines.json File chrome/browser/search_engines/prepopulated_engines.json (right): https://chromiumcodereview.appspot.com/22945004/diff/14001/chrome/browser/search_engines/prepopulated_engines.json#newcode29 chrome/browser/search_engines/prepopulated_engines.json:29: "kCurrentDataVersion": 61 You should bump this. https://chromiumcodereview.appspot.com/22945004/diff/14001/chrome/browser/search_engines/prepopulated_engines_schema.json File ...
7 years, 4 months ago (2013-08-14 23:21:44 UTC) #6
Jered
https://chromiumcodereview.appspot.com/22945004/diff/14001/chrome/browser/search_engines/prepopulated_engines.json File chrome/browser/search_engines/prepopulated_engines.json (right): https://chromiumcodereview.appspot.com/22945004/diff/14001/chrome/browser/search_engines/prepopulated_engines.json#newcode29 chrome/browser/search_engines/prepopulated_engines.json:29: "kCurrentDataVersion": 61 On 2013/08/14 23:21:45, Peter Kasting wrote: > ...
7 years, 4 months ago (2013-08-15 16:44:03 UTC) #7
Jered
On 2013/08/15 16:44:03, Jered wrote: > https://chromiumcodereview.appspot.com/22945004/diff/14001/chrome/browser/search_engines/prepopulated_engines.json > File chrome/browser/search_engines/prepopulated_engines.json (right): > > https://chromiumcodereview.appspot.com/22945004/diff/14001/chrome/browser/search_engines/prepopulated_engines.json#newcode29 > ...
7 years, 4 months ago (2013-08-15 19:54:05 UTC) #8
Jered
7 years, 4 months ago (2013-08-16 17:44:26 UTC) #9
Message was sent while issue was closed.
Committed patchset #6 manually as r218042 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698