Commit c0074645 authored by Allen Bauer's avatar Allen Bauer Committed by Commit Bot

Don't show survey if last profile exited by a crash.

Change-Id: Ibf08fc766626d6c80ca6dc24d8a56dc1555a5f1d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1737009Reviewed-by: default avatarRobert Liao <robliao@chromium.org>
Commit-Queue: Allen Bauer <kylixrd@chromium.org>
Cr-Commit-Position: refs/heads/master@{#684022}
parent 9bcaa54b
......@@ -130,6 +130,9 @@ bool HatsService::ShouldShowSurvey(const std::string& trigger) const {
if (!consent_given)
return false;
if (profile_->GetLastSessionExitType() == Profile::EXIT_CRASHED)
return false;
const base::DictionaryValue* pref_data =
profile_->GetPrefs()->GetDictionary(prefs::kHatsSurveyMetadata);
base::Optional<int> last_major_version =
......
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