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

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

Issue 2942043002: cros: Tighten profile loading (Closed)
Patch Set: update SystemClock header Created 3 years, 6 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 | chrome/browser/chromeos/accessibility/magnification_manager.cc » ('j') | 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 d6d1cc3673319fcca511135cdeb6f28a8df89267..d9a6d312660473e093f5ea5aa05e80e120fa6960 100644
--- a/chrome/browser/chromeos/accessibility/accessibility_manager.cc
+++ b/chrome/browser/chromeos/accessibility/accessibility_manager.cc
@@ -1272,7 +1272,8 @@ void AccessibilityManager::SetProfile(Profile* profile) {
void AccessibilityManager::ActiveUserChanged(
const user_manager::User* active_user) {
- SetProfile(ProfileManager::GetActiveUserProfile());
+ if (active_user && active_user->is_profile_created())
+ SetProfile(ProfileManager::GetActiveUserProfile());
}
void AccessibilityManager::OnFullscreenStateChanged(bool is_fullscreen,
« no previous file with comments | « no previous file | chrome/browser/chromeos/accessibility/magnification_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698