Commit bda078cf authored by ginkage's avatar ginkage Committed by Commit bot

Fix coredump in Accessibility Manager SetProfile on shutdown.

BUG=none

Review URL: https://codereview.chromium.org/791393002

Cr-Commit-Position: refs/heads/master@{#308345}
parent c3f983fb
...@@ -741,6 +741,9 @@ bool AccessibilityManager::IsAutoclickEnabled() { ...@@ -741,6 +741,9 @@ bool AccessibilityManager::IsAutoclickEnabled() {
} }
void AccessibilityManager::UpdateAutoclickFromPref() { void AccessibilityManager::UpdateAutoclickFromPref() {
if (!profile_)
return;
bool enabled = bool enabled =
profile_->GetPrefs()->GetBoolean(prefs::kAccessibilityAutoclickEnabled); profile_->GetPrefs()->GetBoolean(prefs::kAccessibilityAutoclickEnabled);
...@@ -767,6 +770,9 @@ int AccessibilityManager::GetAutoclickDelay() const { ...@@ -767,6 +770,9 @@ int AccessibilityManager::GetAutoclickDelay() const {
} }
void AccessibilityManager::UpdateAutoclickDelayFromPref() { void AccessibilityManager::UpdateAutoclickDelayFromPref() {
if (!profile_)
return;
int autoclick_delay_ms = int autoclick_delay_ms =
profile_->GetPrefs()->GetInteger(prefs::kAccessibilityAutoclickDelayMs); profile_->GetPrefs()->GetInteger(prefs::kAccessibilityAutoclickDelayMs);
......
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