Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Unified Diff: chrome/browser/chromeos/accessibility/accessibility_manager.cc

Issue 791393002: Fix coredump in Accessibility Manager SetProfile on shutdown. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/accessibility/accessibility_manager.cc
diff --git a/chrome/browser/chromeos/accessibility/accessibility_manager.cc b/chrome/browser/chromeos/accessibility/accessibility_manager.cc
index 7cd7e32fd41a257062067df41ff7634819f78fc6..9a64e8573e18fb542eefcbd950357a321152d579 100644
--- a/chrome/browser/chromeos/accessibility/accessibility_manager.cc
+++ b/chrome/browser/chromeos/accessibility/accessibility_manager.cc
@@ -742,6 +742,9 @@ bool AccessibilityManager::IsAutoclickEnabled() {
}
void AccessibilityManager::UpdateAutoclickFromPref() {
+ if (!profile_)
+ return;
+
bool enabled =
profile_->GetPrefs()->GetBoolean(prefs::kAccessibilityAutoclickEnabled);
@@ -768,6 +771,9 @@ int AccessibilityManager::GetAutoclickDelay() const {
}
void AccessibilityManager::UpdateAutoclickDelayFromPref() {
+ if (!profile_)
+ return;
+
int autoclick_delay_ms =
profile_->GetPrefs()->GetInteger(prefs::kAccessibilityAutoclickDelayMs);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698