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

Unified Diff: chrome/browser/profiles/profile_impl.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
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 8b6afe1160dfdf9afa3c0da05a21cadc5656aafe..6f3b16d88391d095649a83130b5416450d591c6c 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -380,7 +380,7 @@ ProfileImpl::ProfileImpl(
last_session_exit_type_(EXIT_NORMAL),
start_time_(Time::Now()),
#if defined(OS_CHROMEOS)
- is_login_profile_(false),
+ is_login_profile_(path.BaseName().value() == chrome::kInitialProfile),
#endif
delegate_(delegate),
predictor_(NULL) {
@@ -424,7 +424,6 @@ ProfileImpl::ProfileImpl(
bool async_prefs = create_mode == CREATE_MODE_ASYNCHRONOUS;
#if defined(OS_CHROMEOS)
- is_login_profile_ = chromeos::ProfileHelper::IsSigninProfile(this);
if (is_login_profile_)
chrome::RegisterLoginProfilePrefs(pref_registry_.get());
else
@@ -1224,7 +1223,7 @@ void ProfileImpl::GetCacheParameters(bool is_media_context,
PrefProxyConfigTracker* ProfileImpl::CreateProxyConfigTracker() {
#if defined(OS_CHROMEOS)
- if (chromeos::ProfileHelper::IsSigninProfile(this)) {
+ if (is_login_profile_) {
return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState(
g_browser_process->local_state());
}

Powered by Google App Engine
This is Rietveld 408576698