Commit f8390324 authored by Nico Weber's avatar Nico Weber Committed by Commit Bot

Fix uninitialized memory read in BubbleFrameViewTest.LayoutWithIcon.

Bug: 855584
Change-Id: I855566a5a9db76b68f2b182ca95b9617c81a6822
Reviewed-on: https://chromium-review.googlesource.com/1112476Reviewed-by: default avatarMichael Wasserman <msw@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#569755}
parent 456a4117
......@@ -789,6 +789,7 @@ TEST_F(BubbleFrameViewTest, LayoutWithIcon) {
delegate.SetAnchorView(anchor.widget().GetContentsView());
SkBitmap bitmap;
bitmap.allocN32Pixels(20, 80);
bitmap.eraseColor(SK_ColorYELLOW);
delegate.set_icon(gfx::ImageSkia::CreateFrom1xBitmap(bitmap));
Widget* widget = BubbleDialogDelegateView::CreateBubble(&delegate);
......
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