Commit 6463b63e authored by Roman Aleksandrov's avatar Roman Aleksandrov Committed by Commit Bot

oobe: Check view in destructor before screen unbinding.

Fixed: 1136386
Change-Id: I9f6bf45c94fb8b26e05ecff5a5304e9eef857e81
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2552396
Commit-Queue: Roman Aleksandrov <raleksandrov@google.com>
Reviewed-by: default avatarRoman Sorokin [CET] <rsorokin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#830244}
parent af130f1b
......@@ -28,6 +28,7 @@ AppDownloadingScreen::AppDownloadingScreen(
}
AppDownloadingScreen::~AppDownloadingScreen() {
if (view_)
view_->Bind(nullptr);
}
......
......@@ -112,6 +112,7 @@ FingerprintSetupScreen::FingerprintSetupScreen(
}
FingerprintSetupScreen::~FingerprintSetupScreen() {
if (view_)
view_->Bind(nullptr);
}
......
......@@ -97,6 +97,7 @@ MarketingOptInScreen::MarketingOptInScreen(
}
MarketingOptInScreen::~MarketingOptInScreen() {
if (view_)
view_->Bind(nullptr);
}
......
......@@ -57,6 +57,7 @@ PinSetupScreen::PinSetupScreen(PinSetupScreenView* view,
}
PinSetupScreen::~PinSetupScreen() {
if (view_)
view_->Bind(nullptr);
}
......
......@@ -101,7 +101,8 @@ SyncConsentScreen::SyncConsentScreen(SyncConsentScreenView* view,
}
SyncConsentScreen::~SyncConsentScreen() {
view_->Bind(NULL);
if (view_)
view_->Bind(nullptr);
}
void SyncConsentScreen::Init() {
......
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