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

Issue 19054012: Reload Local NTP on default search provider change. (Closed)

Created:
7 years, 5 months ago by kmadhusu
Modified:
7 years, 5 months ago
Reviewers:
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, arv+watch_chromium.org, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, Jered
Visibility:
Public.

Description

Reload Local NTP on default search provider change. Based on the default search provider setting, LocalNTPSource will set the local NTP JS state to render Google logo and fakebox in local NTP. We no longer append "?isGoogle" in local NTP url if the search provider is Google. Local NTP url will remain the same irrespective of the default search provider setting. BUG=222183, 235282 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=212160

Patch Set 1 : '' #

Total comments: 12

Patch Set 2 : Rebase #

Patch Set 3 : Addressed comments #

Total comments: 11

Patch Set 4 : Rebase #

Patch Set 5 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -154 lines) Patch
M chrome/browser/resources/local_ntp/local_ntp.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/local_ntp/local_ntp.js View 1 2 3 7 chunks +12 lines, -20 lines 0 comments Download
M chrome/browser/search/instant_service.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/search/local_ntp_source.h View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/search/local_ntp_source.cc View 1 2 3 4 6 chunks +61 lines, -19 lines 0 comments Download
M chrome/browser/search/search.h View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/search/search.cc View 1 2 3 4 2 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/search/search_unittest.cc View 7 chunks +9 lines, -19 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/browser/ui/search/instant_extended_interactive_uitest.cc View 1 2 3 4 2 chunks +113 lines, -60 lines 0 comments Download
M chrome/browser/ui/search/instant_page.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/search/instant_page_unittest.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/test/data/local_ntp_browsertest.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/local_ntp_browsertest.js View 1 2 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
kmadhusu
Please review. Thanks.
7 years, 5 months ago (2013-07-11 23:19:48 UTC) #1
samarth
This works great! Thanks, Samarth https://codereview.chromium.org/19054012/diff/8001/chrome/browser/resources/local_ntp/local_ntp.html File chrome/browser/resources/local_ntp/local_ntp.html (right): https://codereview.chromium.org/19054012/diff/8001/chrome/browser/resources/local_ntp/local_ntp.html#newcode7 chrome/browser/resources/local_ntp/local_ntp.html:7: <script src="chrome-search://local-ntp/load-time-data.js"></script> load-time-data makes ...
7 years, 5 months ago (2013-07-12 17:16:06 UTC) #2
kmadhusu
Addressed comments. PTAL. Thanks. https://codereview.chromium.org/19054012/diff/8001/chrome/browser/resources/local_ntp/local_ntp.html File chrome/browser/resources/local_ntp/local_ntp.html (right): https://codereview.chromium.org/19054012/diff/8001/chrome/browser/resources/local_ntp/local_ntp.html#newcode7 chrome/browser/resources/local_ntp/local_ntp.html:7: <script src="chrome-search://local-ntp/load-time-data.js"></script> On 2013/07/12 17:16:06, ...
7 years, 5 months ago (2013-07-15 22:21:50 UTC) #3
samarth
A few more nits but otherwise lgtm. https://codereview.chromium.org/19054012/diff/19001/chrome/browser/search/local_ntp_source.cc File chrome/browser/search/local_ntp_source.cc (right): https://codereview.chromium.org/19054012/diff/19001/chrome/browser/search/local_ntp_source.cc#newcode91 chrome/browser/search/local_ntp_source.cc:91: base::DictionaryValue* translated_strings ...
7 years, 5 months ago (2013-07-17 16:39:45 UTC) #4
kmadhusu
Addressed comments. Thanks. https://codereview.chromium.org/19054012/diff/19001/chrome/browser/search/local_ntp_source.cc File chrome/browser/search/local_ntp_source.cc (right): https://codereview.chromium.org/19054012/diff/19001/chrome/browser/search/local_ntp_source.cc#newcode91 chrome/browser/search/local_ntp_source.cc:91: base::DictionaryValue* translated_strings = new base::DictionaryValue(); On ...
7 years, 5 months ago (2013-07-17 17:58:03 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/19054012/51001
7 years, 5 months ago (2013-07-17 18:06:45 UTC) #6
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 5 months ago (2013-07-17 19:54:02 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/19054012/51001
7 years, 5 months ago (2013-07-17 20:21:16 UTC) #8
commit-bot: I haz the power
7 years, 5 months ago (2013-07-17 23:14:51 UTC) #9
Message was sent while issue was closed.
Change committed as 212160

Powered by Google App Engine
This is Rietveld 408576698