DescriptionRevert of Update first download notification correctly if there are multiple notifications (patchset #2 id:140001 of https://codereview.chromium.org/1389273004/ )
Reason for revert:
This has caused memory errors on the ChromeOS memory bots. See http://build.chromium.org/p/chromium.memory/builders/Linux%20Chromium%20OS%20ASan%20LSan%20Tests%20%281%29/builds/5723 for an example build.
Sample failure output:
==2253==WARNING: MemorySanitizer: use-of-uninitialized-value
#0 0x7f0398815ca4 in operator==\u003Cstd::__1::allocator\u003Cchar> > buildtools/third_party/libc++/trunk/include/string:3812:9
#1 0x7f0398815ca4 in message_center::NotificationList::GetNotification(std::__1::basic_string\u003Cchar, std::__1::char_traits\u003Cchar>, std::__1::allocator\u003Cchar> > const&) ui/message_center/notification_list.cc:319:0
#2 0x7f0398815d85 in message_center::NotificationList::RemoveNotification(std::__1::basic_string\u003Cchar, std::__1::char_traits\u003Cchar>, std::__1::allocator\u003Cchar> > const&) ui/message_center/notification_list.cc:123:21
#3 0x7f03987f8691 in message_center::MessageCenterImpl::RemoveNotifications(bool, std::__1::vector\u003Cmessage_center::NotificationBlocker*, std::__1::allocator\u003Cmessage_center::NotificationBlocker*> > const&) ui/message_center/message_center_impl.cc:664:5
#4 0x7f03987f8115 in message_center::MessageCenterImpl::RemoveAllNotifications(bool) ui/message_center/message_center_impl.cc:646:3
#5 0x7f038daba090 in content::NotificationServiceImpl::Notify(int, content::NotificationSource const&, content::NotificationDetails const&) content/browser/notification_service_impl.cc:130:5
#6 0x7f0386830ee7 in chrome::NotifyAppTerminating() chrome/browser/lifetime/application_lifetime.cc:318:3
#7 0x7f038ac73bc2 in BrowserList::RemoveBrowser(Browser*) chrome/browser/ui/browser_list.cc:105:5
.....
Uninitialized value was created by a heap deallocation
#0 0x7f0382c9edd2 in __interceptor_free ??:0:0
#1 0x7f038c16d632 in hb_buffer_destroy third_party/harfbuzz-ng/src/hb-buffer.cc:785:3
#2 0x7f038c127512 in gfx::RenderTextHarfBuzz::ShapeRunWithFont(std::__1::basic_string\u003Cunsigned short, base::string16_char_traits, std::__1::allocator\u003Cunsigned short> > const&, std::__1::basic_string\u003Cchar, std::__1::char_traits\u003Cchar>, std::__1::allocator\u003Cchar> > const&, gfx::FontRenderParams const&, gfx::internal::TextRunHarfBuzz*) ui/gfx/render_text_harfbuzz.cc:1511:3
#3 0x7f038c128417 in CompareFamily ui/gfx/render_text_harfbuzz.cc:1311:8
#4 0x7f038c128417 in gfx::RenderTextHarfBuzz::ShapeRun(std::__1::basic_string\u003Cunsigned short, base::string16_char_traits, std::__1::allocator\u003Cunsigned short> > const&, gfx::internal::TextRunHarfBuzz*) ui/gfx/render_text_harfbuzz.cc:1366:0
#5 0x7f038c113e9b in ShapeRunList ui/gfx/render_text_harfbuzz.cc:1326:5
#6 0x7f038c113e9b in gfx::RenderTextHarfBuzz::EnsureLayoutRunList() ui/gfx/render_text_harfbuzz.cc:1529:0
#7 0x7f038c11b493 in gfx::RenderTextHarfBuzz::EnsureLayout() ui/gfx/render_text_harfbuzz.cc:1058:3
#8 0x7f038c11505f in gfx::RenderTextHarfBuzz::GetStringSizeF() ui/gfx/render_text_harfbuzz.cc:789:3
#9 0x7f038c114ee1 in gfx::RenderTextHarfBuzz::GetStringSize() ui/gfx/render_text_harfbuzz.cc:784:24
#10 0x7f038a3c2e67 in views::Label::GetTextSize() const ui/views/controls/label.cc:522:12
#11 0x7f038a3c2674 in views::Label::GetPreferredSize() const ui/views/controls/label.cc:228:18
#12 0x7f038a449484 in MainAxisSizeForView ui/views/layout/box_layout.cc:251:16
#13 0x7f038a449484 in views::BoxLayout::Layout(views::View*) ui/views/layout/box_layout.cc:65:0
#14 0x7f038a4734ff in views::View::Layout() ui/views/view.cc:505:5
#15 0x7f039884b041 in message_center::NotificationView::CreateOrUpdateActionButtonViews(message_center::Notification const&) ui/message_center/views/notification_view.cc:748:7
.....
Original issue's description:
> Update first download notification correctly if there are multiple notifications
>
> This patch fixes the issue on updating the first download notification by fixing the visibility check in DownloadItemNotification. This issue was the regression of https://crrev.com/49b2b0338e0eb698a24b045bf09603b853d7c4a7.
>
> BUG=541633
> TEST=trybot passes
>
> Committed: https://crrev.com/795243b38d321e1e9d1f32d814265461194d74b0
> Cr-Commit-Position: refs/heads/master@{#354177}
TBR=asanka@chromium.org,yoshiki@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=541633
Patch Set 1 #
Messages
Total messages: 5 (2 generated)
|