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

Unified Diff: ui/message_center/views/message_popup_collection.cc

Issue 1159033008: Refactor ViewsDelegate singleton (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comments Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/message_center/views/message_popup_collection.cc
diff --git a/ui/message_center/views/message_popup_collection.cc b/ui/message_center/views/message_popup_collection.cc
index 3f0bc2ae7e3cc0bf26b27e2e31aa1ce948272f57..a021eb740dae6f7bd8143fc56f0a0d6dc0153e3b 100644
--- a/ui/message_center/views/message_popup_collection.cc
+++ b/ui/message_center/views/message_popup_collection.cc
@@ -171,8 +171,8 @@ void MessagePopupCollection::UpdateWidgets() {
else
base -= view_height + kToastMarginY;
- if (views::ViewsDelegate::views_delegate) {
- views::ViewsDelegate::views_delegate->NotifyAccessibilityEvent(
+ if (views::ViewsDelegate::GetInstance()) {
+ views::ViewsDelegate::GetInstance()->NotifyAccessibilityEvent(
toast, ui::AX_EVENT_ALERT);
}

Powered by Google App Engine
This is Rietveld 408576698