Chromium Code Reviews| Index: chrome/browser/profiles/profile_io_data.cc |
| diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc |
| index 1682942abe41a6da5fa133d5566eb8401caa5d21..bd20cdb7fa2b4b4c03630e433ba9eadd39a3fbd0 100644 |
| --- a/chrome/browser/profiles/profile_io_data.cc |
| +++ b/chrome/browser/profiles/profile_io_data.cc |
| @@ -362,6 +362,8 @@ void ProfileIOData::InitializeOnUIThread(Profile* profile) { |
| chromeos::ProfileHelper::Get()->GetUserByProfile(profile); |
| if (user) { |
| params->username_hash = user->username_hash(); |
| + if (params->username_hash.empty()) |
| + LOG(ERROR) << "No username_hash for: " << user->email(); |
|
mattm
2014/07/11 20:39:54
Maybe just change to a DCHECK or remove?
stevenjb
2014/07/14 17:13:14
Changed to a DCHECK.
|
| bool is_primary_user = (user_manager->GetPrimaryUser() == user); |
| BrowserThread::PostTask(BrowserThread::IO, |
| FROM_HERE, |
| @@ -372,8 +374,6 @@ void ProfileIOData::InitializeOnUIThread(Profile* profile) { |
| is_primary_user)); |
| } |
| } |
| - if (params->username_hash.empty()) |
| - LOG(WARNING) << "no username_hash"; |
| #endif |
| params->profile = profile; |