Commit b5757f85 authored by Peter Boström's avatar Peter Boström Committed by Commit Bot

Fix initial BubbleDialogModelHost checkbox state

Adds a missing checkbox->SetChecked() call to set the initial state on
the views side.

Bug: 1150027
Change-Id: I2fcf4d26ccd5358efbd7247c9533877da6643853
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2546188
Auto-Submit: Peter Boström <pbos@chromium.org>
Commit-Queue: Elad Alon <eladalon@chromium.org>
Reviewed-by: default avatarElad Alon <eladalon@chromium.org>
Cr-Commit-Position: refs/heads/master@{#828646}
parent 7ecb032f
......@@ -439,6 +439,7 @@ void BubbleDialogModelHost::AddOrUpdateCheckbox(
const int line_height = label->GetLineHeight();
checkbox = std::make_unique<CheckboxControl>(std::move(label), line_height);
}
checkbox->SetChecked(model_field->is_checked());
checkbox->SetCallback(base::BindRepeating(
[](ui::DialogModelCheckbox* model_field,
......
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