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

Issue 13905008: Merge local_omnibox_popup into local_ntp. Render the Google logo and fakebox if Google is the sear… (Closed)

Created:
7 years, 8 months ago by jeremycho
Modified:
7 years, 8 months ago
Reviewers:
Nico, samarth, Dan Beam, sreeram
CC:
chromium-reviews, melevin, dhollowa+watch_chromium.org, dougw+watch_chromium.org, gideonwald, sreeram, dominich, David Black, arv+watch_chromium.org, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, Jered
Base URL:
https://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Merge local_omnibox_popup into local_ntp. Render the Google logo and fakebox if Google is the search provider. Prevent the most visited/fakebox animation from triggering when the NTP is revealed. BUG=230172, 225894, 231137 COLLABORATOR=samarth@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195323

Patch Set 1 #

Total comments: 26

Patch Set 2 : Respond to comments. #

Total comments: 18

Patch Set 3 : Respond to Dan's comments. #

Total comments: 30

Patch Set 4 : Respond to Samarth's comments. #

Patch Set 5 : Delete local omnibox popup. #

Total comments: 13

Patch Set 6 : Fix tests. #

Patch Set 7 : Address Samarth's comments. #

Total comments: 4

Patch Set 8 : Respond to Samarth's comments. #

Total comments: 42

Patch Set 9 : Rebase #

Total comments: 6

Patch Set 10 : Remove updateSuggestions call on init. #

Patch Set 11 : Respond to Dan's comments. #

Total comments: 2

Patch Set 12 : Respond to Dan's comments. #

Patch Set 13 : Rebase. #

Patch Set 14 : Fix test compiliation and browser crash on new tab. #

Patch Set 15 : Disable test. #

Patch Set 16 : Fix reload. Re-enable test. #

Total comments: 16

Patch Set 17 : Address Samarth's comments. #

Total comments: 8

Patch Set 18 : Addressing comments. #

Total comments: 4

Patch Set 19 : Respond to Sreeram's comments. #

Patch Set 20 : Fix suggestion truncation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+920 lines, -784 lines) Patch
M chrome/browser/browser_resources.grd View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/resources/local_ntp/local_ntp.css View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +151 lines, -3 lines 0 comments Download
M chrome/browser/resources/local_ntp/local_ntp.html View 1 1 chunk +16 lines, -13 lines 0 comments Download
M chrome/browser/resources/local_ntp/local_ntp.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 14 chunks +592 lines, -66 lines 0 comments Download
D chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.css View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -60 lines 0 comments Download
D chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.html View 1 2 3 4 1 chunk +0 lines, -15 lines 0 comments Download
D chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js View 1 2 3 4 1 chunk +0 lines, -354 lines 0 comments Download
M chrome/browser/search/instant_service.cc View 1 2 3 4 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/search/local_ntp_source.cc View 1 2 3 4 5 6 7 8 3 chunks +51 lines, -40 lines 0 comments Download
D chrome/browser/search/local_omnibox_popup_source.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -35 lines 0 comments Download
D chrome/browser/search/local_omnibox_popup_source.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -102 lines 0 comments Download
M chrome/browser/search/search.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/search/search.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/search/search_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +35 lines, -24 lines 0 comments Download
M chrome/browser/ui/search/instant_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +4 lines, -10 lines 0 comments Download
M chrome/browser/ui/search/instant_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 24 chunks +41 lines, -34 lines 0 comments Download
M chrome/browser/ui/search/instant_extended_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 16 17 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/search/instant_page.h View 1 2 3 1 chunk +1 line, -5 lines 0 comments Download
M chrome/browser/ui/search/instant_page.cc View 1 2 3 1 chunk +3 lines, -7 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 40 (0 generated)
jeremycho
dbeam for local_ntp - most of the diffs are from copying over local_omnibox_popup.js/css samarth for ...
7 years, 8 months ago (2013-04-15 16:26:13 UTC) #1
samarth
A couple of other comments: 1) You should be able to delete local_omnibox_popup, no? 2) ...
7 years, 8 months ago (2013-04-15 19:01:34 UTC) #2
jeremycho
Addressed comments and added the 2x logo images. PTAL. On 2013/04/15 19:01:34, samarth wrote: > ...
7 years, 8 months ago (2013-04-16 01:42:12 UTC) #3
jeremycho
https://codereview.chromium.org/13905008/diff/1/chrome/browser/resources/local_ntp/local_ntp.js File chrome/browser/resources/local_ntp/local_ntp.js (right): https://codereview.chromium.org/13905008/diff/1/chrome/browser/resources/local_ntp/local_ntp.js#newcode13 chrome/browser/resources/local_ntp/local_ntp.js:13: var isGooglePage = false; On 2013/04/15 19:01:34, samarth wrote: ...
7 years, 8 months ago (2013-04-16 01:42:37 UTC) #4
Dan Beam
https://chromiumcodereview.appspot.com/13905008/diff/13001/chrome/browser/resources/local_ntp/local_ntp.css File chrome/browser/resources/local_ntp/local_ntp.css (right): https://chromiumcodereview.appspot.com/13905008/diff/13001/chrome/browser/resources/local_ntp/local_ntp.css#newcode42 chrome/browser/resources/local_ntp/local_ntp.css:42: -webkit-border-radius: 1px; border-radius https://chromiumcodereview.appspot.com/13905008/diff/13001/chrome/browser/resources/local_ntp/local_ntp.css#newcode48 chrome/browser/resources/local_ntp/local_ntp.css:48: border-top: 1px solid #a0a0a0; ...
7 years, 8 months ago (2013-04-16 03:01:44 UTC) #5
jeremycho
Thanks for the comments. PTAL. https://chromiumcodereview.appspot.com/13905008/diff/13001/chrome/browser/resources/local_ntp/local_ntp.css File chrome/browser/resources/local_ntp/local_ntp.css (right): https://chromiumcodereview.appspot.com/13905008/diff/13001/chrome/browser/resources/local_ntp/local_ntp.css#newcode42 chrome/browser/resources/local_ntp/local_ntp.css:42: -webkit-border-radius: 1px; On 2013/04/16 ...
7 years, 8 months ago (2013-04-16 16:18:33 UTC) #6
samarth
A few more comments but it's looking good. I'll patch it in and play with ...
7 years, 8 months ago (2013-04-16 16:55:09 UTC) #7
samarth
On 2013/04/16 01:42:12, jeremycho wrote: > On 2013/04/15 19:01:34, samarth wrote: > > A couple ...
7 years, 8 months ago (2013-04-16 16:56:58 UTC) #8
jeremycho
Will delete local_omnibox_popup in the next patch set. Because I'm not a committer, I've been ...
7 years, 8 months ago (2013-04-16 20:39:09 UTC) #9
jeremycho
Deleted local_omnibox_popup. +sky for chrome_browser.gypi, browser_resources.grd We're shooting to enable this by default for M28, ...
7 years, 8 months ago (2013-04-16 22:39:44 UTC) #10
samarth
Two other issues I noticed: (1) Open local NTP, type a URL, hit enter. We ...
7 years, 8 months ago (2013-04-17 00:19:34 UTC) #11
jeremycho
Thanks for testing - I'll look at the additional issues you mentioned, but agree it's ...
7 years, 8 months ago (2013-04-17 00:59:23 UTC) #12
jeremycho
ping
7 years, 8 months ago (2013-04-17 16:05:14 UTC) #13
samarth
LGTM https://codereview.chromium.org/13905008/diff/37001/chrome/browser/resources/local_ntp/local_ntp.css File chrome/browser/resources/local_ntp/local_ntp.css (right): https://codereview.chromium.org/13905008/diff/37001/chrome/browser/resources/local_ntp/local_ntp.css#newcode307 chrome/browser/resources/local_ntp/local_ntp.css:307: #suggestions-box { On 2013/04/17 00:59:23, jeremycho wrote: > ...
7 years, 8 months ago (2013-04-17 16:24:11 UTC) #14
samarth
https://codereview.chromium.org/13905008/diff/47001/chrome/browser/ui/search/instant_controller.cc File chrome/browser/ui/search/instant_controller.cc (right): https://codereview.chromium.org/13905008/diff/47001/chrome/browser/ui/search/instant_controller.cc#newcode492 chrome/browser/ui/search/instant_controller.cc:492: if (!ntp_ || ShouldSwitchToLocalNTP()) A few more comments here ...
7 years, 8 months ago (2013-04-17 17:24:58 UTC) #15
jeremycho
Updated the JS to fix crbug.com/229839. I wasn't able to reproduce the NTP flash issue ...
7 years, 8 months ago (2013-04-17 20:14:33 UTC) #16
Dan Beam
https://chromiumcodereview.appspot.com/13905008/diff/58001/chrome/browser/resources/local_ntp/local_ntp.css File chrome/browser/resources/local_ntp/local_ntp.css (right): https://chromiumcodereview.appspot.com/13905008/diff/58001/chrome/browser/resources/local_ntp/local_ntp.css#newcode340 chrome/browser/resources/local_ntp/local_ntp.css:340: .selected:hover { why is :hover needed? https://chromiumcodereview.appspot.com/13905008/diff/58001/chrome/browser/resources/local_ntp/local_ntp.js File chrome/browser/resources/local_ntp/local_ntp.js ...
7 years, 8 months ago (2013-04-17 23:28:58 UTC) #17
jeremycho
Thanks for the comments. PTAL. https://codereview.chromium.org/13905008/diff/58001/chrome/browser/resources/local_ntp/local_ntp.css File chrome/browser/resources/local_ntp/local_ntp.css (right): https://codereview.chromium.org/13905008/diff/58001/chrome/browser/resources/local_ntp/local_ntp.css#newcode340 chrome/browser/resources/local_ntp/local_ntp.css:340: .selected:hover { On 2013/04/17 ...
7 years, 8 months ago (2013-04-18 05:56:20 UTC) #18
Dan Beam
lgtm but please don't duplicate contains() logic if you can help it, I see no ...
7 years, 8 months ago (2013-04-18 20:05:13 UTC) #19
samarth
Jeremy: can you rebase once more? The patch doesn't apply at head and I'd like ...
7 years, 8 months ago (2013-04-18 20:14:12 UTC) #20
jeremycho
Thanks for the review! @sky - can you stamp for chrome_browser.gypi, browser_resources.grd? https://codereview.chromium.org/13905008/diff/58001/chrome/browser/resources/local_ntp/local_ntp.js File chrome/browser/resources/local_ntp/local_ntp.js ...
7 years, 8 months ago (2013-04-18 20:26:18 UTC) #21
jeremycho
@thakis can you stamp for chrome_browser.gypi, browser_resources.grd? @sky is OOO.
7 years, 8 months ago (2013-04-18 22:21:50 UTC) #22
Nico
lgtm
7 years, 8 months ago (2013-04-18 22:29:32 UTC) #23
samarth
OK, I fixed the test failure in PS 16. I spent a bunch of time ...
7 years, 8 months ago (2013-04-19 14:52:23 UTC) #24
samarth
Jeremy, played with it some more and it looks pretty good. You can address almost ...
7 years, 8 months ago (2013-04-19 16:39:51 UTC) #25
jeremycho
https://codereview.chromium.org/13905008/diff/89024/chrome/browser/resources/local_ntp/local_ntp.js File chrome/browser/resources/local_ntp/local_ntp.js (right): https://codereview.chromium.org/13905008/diff/89024/chrome/browser/resources/local_ntp/local_ntp.js#newcode798 chrome/browser/resources/local_ntp/local_ntp.js:798: var show = lastInputValue == ''; Acknowledged. On 2013/04/19 ...
7 years, 8 months ago (2013-04-19 17:00:46 UTC) #26
sreeram
Am just starting to review instant_controller.cc, but some comments on the rest (I didn't look ...
7 years, 8 months ago (2013-04-19 17:04:59 UTC) #27
sreeram
https://codereview.chromium.org/13905008/diff/93024/chrome/browser/ui/search/instant_controller.cc File chrome/browser/ui/search/instant_controller.cc (right): https://codereview.chromium.org/13905008/diff/93024/chrome/browser/ui/search/instant_controller.cc#newcode574 chrome/browser/ui/search/instant_controller.cc:574: (instant_tab_ && instant_tab_->IsLocal()) || overlay_->IsLocal(); Not quite right. You ...
7 years, 8 months ago (2013-04-19 17:12:41 UTC) #28
sreeram
PS17 lost some of Samarth's changes in PS16. When multiple people collaborate on a CL, ...
7 years, 8 months ago (2013-04-19 17:14:36 UTC) #29
samarth
https://codereview.chromium.org/13905008/diff/89024/chrome/browser/ui/search/instant_controller.cc File chrome/browser/ui/search/instant_controller.cc (right): https://codereview.chromium.org/13905008/diff/89024/chrome/browser/ui/search/instant_controller.cc#newcode1495 chrome/browser/ui/search/instant_controller.cc:1495: const std::string& instant_url = ntp_->instant_url(); Just chatted with Sreeram ...
7 years, 8 months ago (2013-04-19 17:18:11 UTC) #30
samarth
https://codereview.chromium.org/13905008/diff/93024/chrome/browser/ui/search/instant_controller.cc File chrome/browser/ui/search/instant_controller.cc (right): https://codereview.chromium.org/13905008/diff/93024/chrome/browser/ui/search/instant_controller.cc#newcode1648 chrome/browser/ui/search/instant_controller.cc:1648: browser_->profile()).spec()) { On 2013/04/19 17:12:42, sreeram wrote: > We ...
7 years, 8 months ago (2013-04-19 17:20:36 UTC) #31
sreeram
https://codereview.chromium.org/13905008/diff/93024/chrome/browser/ui/search/instant_controller.cc File chrome/browser/ui/search/instant_controller.cc (right): https://codereview.chromium.org/13905008/diff/93024/chrome/browser/ui/search/instant_controller.cc#newcode1648 chrome/browser/ui/search/instant_controller.cc:1648: browser_->profile()).spec()) { On 2013/04/19 17:20:37, samarth wrote: > On ...
7 years, 8 months ago (2013-04-19 17:25:29 UTC) #32
samarth
https://codereview.chromium.org/13905008/diff/93024/chrome/browser/ui/search/instant_controller.cc File chrome/browser/ui/search/instant_controller.cc (right): https://codereview.chromium.org/13905008/diff/93024/chrome/browser/ui/search/instant_controller.cc#newcode1648 chrome/browser/ui/search/instant_controller.cc:1648: browser_->profile()).spec()) { On 2013/04/19 17:25:29, sreeram wrote: > On ...
7 years, 8 months ago (2013-04-19 18:30:02 UTC) #33
sreeram
https://codereview.chromium.org/13905008/diff/93024/chrome/browser/ui/search/instant_controller.cc File chrome/browser/ui/search/instant_controller.cc (right): https://codereview.chromium.org/13905008/diff/93024/chrome/browser/ui/search/instant_controller.cc#newcode1648 chrome/browser/ui/search/instant_controller.cc:1648: browser_->profile()).spec()) { On 2013/04/19 18:30:03, samarth wrote: > I'd ...
7 years, 8 months ago (2013-04-19 18:31:56 UTC) #34
jeremycho
Ready for another look Sreeram. Thanks. https://codereview.chromium.org/13905008/diff/89024/chrome/browser/search/search.cc File chrome/browser/search/search.cc (right): https://codereview.chromium.org/13905008/diff/89024/chrome/browser/search/search.cc#newcode473 chrome/browser/search/search.cc:473: GetDefaultSearchProvider(); On 2013/04/19 ...
7 years, 8 months ago (2013-04-19 19:55:07 UTC) #35
sreeram
lgtm https://codereview.chromium.org/13905008/diff/98002/chrome/browser/search/search_unittest.cc File chrome/browser/search/search_unittest.cc (right): https://codereview.chromium.org/13905008/diff/98002/chrome/browser/search/search_unittest.cc#newcode194 chrome/browser/search/search_unittest.cc:194: void SetSearchProvider(bool isGoogle) { Nit: is_google (Yeah, the ...
7 years, 8 months ago (2013-04-19 20:30:44 UTC) #36
jeremycho
Thanks for the review! https://codereview.chromium.org/13905008/diff/98002/chrome/browser/search/search_unittest.cc File chrome/browser/search/search_unittest.cc (right): https://codereview.chromium.org/13905008/diff/98002/chrome/browser/search/search_unittest.cc#newcode194 chrome/browser/search/search_unittest.cc:194: void SetSearchProvider(bool isGoogle) { On ...
7 years, 8 months ago (2013-04-19 20:39:36 UTC) #37
jeremycho
Uploaded a new patch with a one-line CSS change to fix suggestion truncation.
7 years, 8 months ago (2013-04-19 21:33:36 UTC) #38
samarth
Committed patchset #20 manually as r195323 (presubmit successful).
7 years, 8 months ago (2013-04-19 23:02:18 UTC) #39
samarth
7 years, 8 months ago (2013-04-19 23:03:39 UTC) #40
Message was sent while issue was closed.
FYI, committed manually to bypass presubmit checks for "_" in class names.  Try
jobs looked good and will watch the waterfall.

Samarth

Powered by Google App Engine
This is Rietveld 408576698