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

Issue 42512: Make the bookmarks bar disappear when the load after the new tab page commits... (Closed)

Created:
11 years, 9 months ago by brettw
Modified:
9 years, 7 months ago
Reviewers:
jcampan
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Make the bookmarks bar disappear when the load after the new tab page commits rather than when it is pending. This makes it change at the same time the page changes. To support this, we now have to keep track of both a pending and a committed DOMUI object. This is tracked by the RenderManager, which does a similar swapping between pending and committed RenderViewHosts. BUG=8963 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=12469

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+289 lines, -80 lines) Patch
A chrome/browser/dom_ui/dom_ui_unittest.cc View 1 chunk +114 lines, -0 lines 2 comments Download
M chrome/browser/dom_ui/new_tab_ui.cc View 2 chunks +20 lines, -14 lines 0 comments Download
M chrome/browser/tab_contents/render_view_host_manager.h View 1 5 chunks +37 lines, -13 lines 0 comments Download
M chrome/browser/tab_contents/render_view_host_manager.cc View 1 14 chunks +43 lines, -23 lines 0 comments Download
M chrome/browser/tab_contents/web_contents.h View 1 3 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/tab_contents/web_contents.cc View 1 12 chunks +64 lines, -25 lines 1 comment Download
M chrome/chrome.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/unit/unittests.vcproj View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
brettw
11 years, 9 months ago (2009-03-25 00:06:00 UTC) #1
jcampan
11 years, 9 months ago (2009-03-25 17:01:43 UTC) #2
LGTM

http://codereview.chromium.org/42512/diff/10/1019
File chrome/browser/dom_ui/dom_ui_unittest.cc (right):

http://codereview.chromium.org/42512/diff/10/1019#newcode19
Line 19: // WebContents when we first navigate do a DOM UI page, then to a
standard
nit: typo "navigate do a DOM UI page" -> "to a DOM UI page"

http://codereview.chromium.org/42512/diff/10/1019#newcode61
Line 61:
static_cast<TestRenderViewHost*>(contents()->render_manager()->pending_render_view_host())->SendNavigate(2,
next_url);
Line is more than 80 chars

http://codereview.chromium.org/42512/diff/10/1018
File chrome/browser/tab_contents/web_contents.cc (right):

http://codereview.chromium.org/42512/diff/10/1018#newcode1632
Line 1632: // enderView, that means it's for the pending entry, so we have to
use the
Nit: typo enderView -> RenderView

Powered by Google App Engine
This is Rietveld 408576698