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

Issue 12217127: Alternate NTP: Show detached bookmark bar (Closed)

Created:
7 years, 10 months ago by sail
Modified:
7 years, 10 months ago
Reviewers:
samarth, sky, Evan Stade
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, tfarina, pedrosimonetti+watch_chromium.org, estade+watch_chromium.org, sreeram
Visibility:
Public.

Description

Alternate NTP: Show detached bookmark bar With the new full page NTP the detached bookmark bar was no longer visible. The problem was that we relied on an instance of NewTabUI to control the bookmark bar visibility. The new full page NTP no longer has an instance of NewTabUI so the bookmark bar was never visible. Fix was to move the relevant code out of NewTabUI and into BookmarkTabHelper. BUG=175146 TEST=Ran with instant extended enabled. Verified that the detached bookmark bar was visible. Added a new test BookmarkInstantExtendedBrowsertest.DetachedBookmarkBar. Verified that the test fails without my patch and passes with it. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182165

Patch Set 1 #

Patch Set 2 : add tests #

Total comments: 2

Patch Set 3 : " #

Patch Set 4 : address review comments #

Patch Set 5 : " #

Patch Set 6 : rebase #

Patch Set 7 : move to unit_tests #

Total comments: 3

Patch Set 8 : Custom factory function #

Patch Set 9 : rebase #

Patch Set 10 : fix android build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -38 lines) Patch
M chrome/browser/ui/bookmarks/bookmark_tab_helper.cc View 1 2 3 4 5 2 chunks +25 lines, -22 lines 0 comments Download
A chrome/browser/ui/bookmarks/bookmark_unittest.cc View 1 2 3 4 5 6 7 1 chunk +48 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_ui.h View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_ui.cc View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -12 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
sail
Note, I'm still working on tests for this. I wanted to send it out early ...
7 years, 10 months ago (2013-02-12 02:00:02 UTC) #1
sail
estade: webui/ntp/* OWNERS review sky: ui/bookmarks/* OWNERS review Added tests. Please take a look.
7 years, 10 months ago (2013-02-12 03:24:39 UTC) #2
sky
I don't see any problem other than tests. https://codereview.chromium.org/12217127/diff/3001/chrome/browser/ui/bookmarks/bookmark_browsertest.cc File chrome/browser/ui/bookmarks/bookmark_browsertest.cc (right): https://codereview.chromium.org/12217127/diff/3001/chrome/browser/ui/bookmarks/bookmark_browsertest.cc#newcode70 chrome/browser/ui/bookmarks/bookmark_browsertest.cc:70: }; ...
7 years, 10 months ago (2013-02-12 03:27:49 UTC) #3
Evan Stade
ntp lgtm
7 years, 10 months ago (2013-02-12 03:32:03 UTC) #4
sail
https://codereview.chromium.org/12217127/diff/3001/chrome/browser/ui/bookmarks/bookmark_browsertest.cc File chrome/browser/ui/bookmarks/bookmark_browsertest.cc (right): https://codereview.chromium.org/12217127/diff/3001/chrome/browser/ui/bookmarks/bookmark_browsertest.cc#newcode70 chrome/browser/ui/bookmarks/bookmark_browsertest.cc:70: }; On 2013/02/12 03:27:49, sky wrote: > private:DISALLOW... and ...
7 years, 10 months ago (2013-02-12 03:34:04 UTC) #5
sky
Why can't you do that in a unit test? -Scott On Mon, Feb 11, 2013 ...
7 years, 10 months ago (2013-02-12 16:49:23 UTC) #6
sail
On 2013/02/12 16:49:23, sky wrote: > Why can't you do that in a unit test? ...
7 years, 10 months ago (2013-02-12 17:46:44 UTC) #7
sky
On Tue, Feb 12, 2013 at 9:46 AM, <sail@chromium.org> wrote: > On 2013/02/12 16:49:23, sky ...
7 years, 10 months ago (2013-02-12 18:52:48 UTC) #8
sail
Changed from browser_test to a unit_test. Please take another look.
7 years, 10 months ago (2013-02-12 20:26:58 UTC) #9
sky
Nice, LGTM https://codereview.chromium.org/12217127/diff/10004/chrome/browser/search_engines/template_url_service_factory.cc File chrome/browser/search_engines/template_url_service_factory.cc (right): https://codereview.chromium.org/12217127/diff/10004/chrome/browser/search_engines/template_url_service_factory.cc#newcode96 chrome/browser/search_engines/template_url_service_factory.cc:96: return false; I would be surprised if ...
7 years, 10 months ago (2013-02-12 22:29:11 UTC) #10
sky
Actually, one question. Is there a way to force the factory to be created just ...
7 years, 10 months ago (2013-02-12 22:29:47 UTC) #11
sail
> Actually, one question. Is there a way to force the factory to be created ...
7 years, 10 months ago (2013-02-12 22:52:03 UTC) #12
sky
LGTM
7 years, 10 months ago (2013-02-13 00:32:50 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/12217127/2033
7 years, 10 months ago (2013-02-13 00:45:56 UTC) #14
commit-bot: I haz the power
7 years, 10 months ago (2013-02-13 08:31:49 UTC) #15
Message was sent while issue was closed.
Change committed as 182165

Powered by Google App Engine
This is Rietveld 408576698