Commit 575b29d0 authored by oshima@chromium.org's avatar oshima@chromium.org

Add sanity check to troubleshoot crbug.com/374273

BUG=374273
R=msw@chromium.org

Review URL: https://codereview.chromium.org/287243002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271238 0039d316-1c4b-4281-b951-d872f2087c98
parent bdb99e9e
......@@ -756,8 +756,14 @@ void OpaqueBrowserFrameView::PaintRestoredClientEdge(gfx::Canvas* canvas) {
// client edge filled rects start there or at the bottom of the toolbar,
// whichever is shorter.
gfx::Rect toolbar_bounds(browser_view()->GetToolbarBounds());
image_top += toolbar_bounds.y() +
tp->GetImageSkiaNamed(IDR_CONTENT_TOP_LEFT_CORNER)->height();
gfx::ImageSkia* content_top_left_corner =
tp->GetImageSkiaNamed(IDR_CONTENT_TOP_LEFT_CORNER);
// TODO(oshima): Sanity checks for crbug.com/374273. Remove when it's fixed.
CHECK(content_top_left_corner);
CHECK(!content_top_left_corner->isNull());
image_top += toolbar_bounds.y() + content_top_left_corner->height();
client_area_top = std::min(image_top,
client_area_top + toolbar_bounds.bottom() - kClientEdgeThickness);
} else if (!browser_view()->IsTabStripVisible()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment