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

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

Issue 2853913002: Fix crash when AccessibilityManager called when profile is nullptr (Closed)
Patch Set: Created 3 years, 8 months 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 e7af4a292fe226a5948afd3302adcfd602b4164f..5b840c778f69f765d7aee1901412fe79be92e204 100644
--- a/chrome/browser/chromeos/accessibility/accessibility_manager.cc
+++ b/chrome/browser/chromeos/accessibility/accessibility_manager.cc
@@ -598,6 +598,9 @@ bool AccessibilityManager::PlayEarcon(int sound_key, PlaySoundOption option) {
}
void AccessibilityManager::OnTwoFingerTouchStart() {
+ if (!profile())
oshima 2017/05/02 01:45:20 optional: just noticed that all other places are u
+ return;
+
extensions::EventRouter* event_router =
extensions::EventRouter::Get(profile());
CHECK(event_router);
@@ -611,6 +614,9 @@ void AccessibilityManager::OnTwoFingerTouchStart() {
}
void AccessibilityManager::OnTwoFingerTouchStop() {
+ if (!profile())
+ return;
+
extensions::EventRouter* event_router =
extensions::EventRouter::Get(profile());
CHECK(event_router);
« 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