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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 47923016: ChromeOS: Remove Profile::IsLoginProfile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 1 month 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 | « chrome/browser/profiles/profile_impl.h ('k') | chrome/browser/profiles/profile_impl_io_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 1f74706d0df63dfb2263313fcff31372a69f95ba..7bce1e00689bb46dd45e089fc00df352fcfe5469 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -379,9 +379,6 @@ ProfileImpl::ProfileImpl(
host_content_settings_map_(NULL),
last_session_exit_type_(EXIT_NORMAL),
start_time_(Time::Now()),
-#if defined(OS_CHROMEOS)
- is_login_profile_(false),
-#endif
delegate_(delegate),
predictor_(NULL) {
TRACE_EVENT0("browser", "ProfileImpl::ctor")
@@ -424,8 +421,7 @@ 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_)
+ if (chromeos::ProfileHelper::IsSigninProfile(this))
chrome::RegisterLoginProfilePrefs(pref_registry_.get());
else
#endif
@@ -815,7 +811,7 @@ bool ProfileImpl::WasCreatedByVersionOrLater(const std::string& version) {
void ProfileImpl::SetExitType(ExitType exit_type) {
#if defined(OS_CHROMEOS)
- if (is_login_profile_)
+ if (chromeos::ProfileHelper::IsSigninProfile(this))
return;
#endif
if (!prefs_)
@@ -1130,10 +1126,6 @@ void ProfileImpl::InitChromeOSPreferences() {
is_primary_user);
}
-bool ProfileImpl::IsLoginProfile() {
- return is_login_profile_;
-}
-
#endif // defined(OS_CHROMEOS)
PrefProxyConfigTracker* ProfileImpl::GetProxyConfigTracker() {
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | chrome/browser/profiles/profile_impl_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698