Commit b7c6d922 authored by Tetsui Ohkubo's avatar Tetsui Ohkubo Committed by Commit Bot

Fix inline settings toggle crash.

ToggleInlineSettings assumed |settings_row_| to exist. However, it
wasn't always the case.

TEST=manual
BUG=829240

Change-Id: I0a95bf830f616fd7c380fdf19009da00f53ba3b3
Reviewed-on: https://chromium-review.googlesource.com/1053933Reviewed-by: default avatarEvan Stade <estade@chromium.org>
Commit-Queue: Tetsui Ohkubo <tetsui@chromium.org>
Cr-Commit-Position: refs/heads/master@{#557941}
parent e45bf8e4
......@@ -1232,7 +1232,8 @@ void NotificationViewMD::UpdateViewForExpandedState(bool expanded) {
}
void NotificationViewMD::ToggleInlineSettings(const ui::Event& event) {
DCHECK(settings_row_);
if (!settings_row_)
return;
bool inline_settings_visible = !settings_row_->visible();
......
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