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

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

Issue 53383002: ChromeOS: Remove ProfileHelper::IsSigninProfile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix TestingProfile. Created 7 years, 2 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 195c9c59170e8ca3017bc54b321cdcfe4ed527dd..da2a8c00141629c1ca9ee0ce96314958f2459c90 100644
--- a/chrome/browser/chromeos/accessibility/accessibility_manager.cc
+++ b/chrome/browser/chromeos/accessibility/accessibility_manager.cc
@@ -215,9 +215,9 @@ void AccessibilityManager::PrefHandler::HandleProfileChanged(
// If the user set a pref value on the login screen and is now starting a
// session with a new profile, copy the pref value to the profile.
if ((previous_profile &&
- ProfileHelper::IsSigninProfile(previous_profile) &&
+ previous_profile->IsLoginProfile() &&
current_profile->IsNewProfile() &&
- !ProfileHelper::IsSigninProfile(current_profile)) ||
+ !current_profile->IsLoginProfile()) ||
// Special case for Guest mode:
// Guest mode launches a guest-mode browser process before session starts,
// so the previous profile is null.
@@ -428,7 +428,7 @@ void AccessibilityManager::LoadChromeVoxToUserScreen() {
// ChromeVox will be injected directly into that screen.
content::WebUI* login_web_ui = NULL;
- if (ProfileHelper::IsSigninProfile(profile_)) {
+ if (profile_->IsLoginProfile()) {
LoginDisplayHost* login_display_host = LoginDisplayHostImpl::default_host();
if (login_display_host) {
WebUILoginView* web_ui_login_view =
@@ -703,7 +703,7 @@ void AccessibilityManager::Observe(
case chrome::NOTIFICATION_LOGIN_OR_LOCK_WEBUI_VISIBLE: {
// Update |profile_| when entering the login screen.
Profile* profile = ProfileManager::GetDefaultProfile();
- if (ProfileHelper::IsSigninProfile(profile))
+ if (profile->IsLoginProfile())
SetProfile(profile);
break;
}
« 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