| Index: chrome/browser/profiles/profile_impl.cc
|
| diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
|
| index 9c9c1de7255042138862ab90b30df1d8917e3cd2..998f26fbd6fca5e46b70102352a576a618648794 100644
|
| --- a/chrome/browser/profiles/profile_impl.cc
|
| +++ b/chrome/browser/profiles/profile_impl.cc
|
| @@ -388,6 +388,10 @@ ProfileImpl::ProfileImpl(
|
| DCHECK(!path.empty()) << "Using an empty path will attempt to write " <<
|
| "profile files to the root directory!";
|
|
|
| +#if defined(OS_CHROMEOS)
|
| + is_login_profile_ = chromeos::ProfileHelper::IsSigninProfile(this);
|
| +#endif
|
| +
|
| #if defined(ENABLE_SESSION_SERVICE)
|
| create_session_service_timer_.Start(FROM_HERE,
|
| TimeDelta::FromMilliseconds(kCreateSessionServiceDelayMS), this,
|
| @@ -424,7 +428,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
|
| @@ -667,6 +670,8 @@ ProfileImpl::~ProfileImpl() {
|
| io_data_.GetResourceContextNoInit());
|
| #endif
|
|
|
| + io_data_.ReleaseFromBrowserContextServices(this);
|
| +
|
| // Destroy OTR profile and its profile services first.
|
| if (off_the_record_profile_) {
|
| ProfileDestroyer::DestroyOffTheRecordProfileNow(
|
|
|