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

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

Issue 385993004: Clean up Chrome OS WARNING spam (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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_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;
« no previous file with comments | « chrome/browser/chromeos/login/ui/webui_login_view.cc ('k') | chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698