Commit 6924c959 authored by Bettina's avatar Bettina Committed by Commit Bot

Use PASSWORD_PROTECTION_OFF enum instead of int.

Bug: 914410
Change-Id: I9510cd8eda7d8b678b1579798670b9d01d82a755
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1761243
Commit-Queue: Nathan Parker <nparker@chromium.org>
Reviewed-by: default avatarNathan Parker <nparker@chromium.org>
Cr-Commit-Position: refs/heads/master@{#688572}
parent f3b63e73
...@@ -1442,7 +1442,8 @@ void ChromePasswordProtectionService::OnWarningTriggerChanged() { ...@@ -1442,7 +1442,8 @@ void ChromePasswordProtectionService::OnWarningTriggerChanged() {
const base::Value* pref_value = pref_change_registrar_->prefs()->Get( const base::Value* pref_value = pref_change_registrar_->prefs()->Get(
prefs::kPasswordProtectionWarningTrigger); prefs::kPasswordProtectionWarningTrigger);
// If password protection is not turned off, do nothing. // If password protection is not turned off, do nothing.
if (pref_value->GetInt() != 0) { if (static_cast<PasswordProtectionTrigger>(pref_value->GetInt()) !=
PASSWORD_PROTECTION_OFF) {
return; return;
} }
......
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