Index: chrome/browser/chromeos/login/login_utils.cc |
diff --git a/chrome/browser/chromeos/login/login_utils.cc b/chrome/browser/chromeos/login/login_utils.cc |
index c82ea1bc2611a93acf7b4ab92d935b52f70bc14d..f9bfaaae00548215fa1c0169a0ad76437c3df057 100644 |
--- a/chrome/browser/chromeos/login/login_utils.cc |
+++ b/chrome/browser/chromeos/login/login_utils.cc |
@@ -56,6 +56,7 @@ |
#include "chrome/browser/prefs/pref_service.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/profiles/profile_manager.h" |
+#include "chrome/browser/rlz/rlz.h" |
#include "chrome/browser/signin/signin_manager.h" |
#include "chrome/browser/signin/signin_manager_factory.h" |
#include "chrome/browser/signin/token_service.h" |
@@ -634,6 +635,14 @@ void LoginUtilsImpl::OnProfileCreated( |
content::NotificationService::AllSources(), |
content::Details<Profile>(user_profile)); |
+#if defined(ENABLE_RLZ) |
+ // Init the RLZ library. |
+ int ping_delay = user_profile->GetPrefs()->GetInteger( |
+ first_run::GetPingDelayPrefName().c_str()); |
+ RLZTracker::InitRlzFromProfileDelayed( |
+ user_profile, UserManager::Get()->IsCurrentUserNew(), ping_delay); |
+#endif |
+ |
// TODO(altimofeev): This pointer should probably never be NULL, but it looks |
// like LoginUtilsImpl::OnProfileCreated() may be getting called before |
// LoginUtilsImpl::PrepareProfile() has set |delegate_| when Chrome is killed |