| Index: chrome/browser/profiles/profile_manager.cc
|
| ===================================================================
|
| --- chrome/browser/profiles/profile_manager.cc (revision 113419)
|
| +++ chrome/browser/profiles/profile_manager.cc (working copy)
|
| @@ -21,6 +21,7 @@
|
| #include "chrome/browser/prefs/pref_service.h"
|
| #include "chrome/browser/prefs/scoped_user_pref_update.h"
|
| #include "chrome/browser/profiles/profile_info_cache.h"
|
| +#include "chrome/browser/profiles/profile_metrics.h"
|
| #include "chrome/browser/sessions/session_service_factory.h"
|
| #include "chrome/browser/sync/profile_sync_service.h"
|
| #include "chrome/browser/ui/browser.h"
|
| @@ -386,6 +387,7 @@
|
|
|
| RegisterProfile(profile, true);
|
| DoFinalInit(profile, ShouldGoOffTheRecord());
|
| + ProfileMetrics::LogNumberOfProfiles(ProfileMetrics::TIME_ADD);
|
| return true;
|
| }
|
|
|
| @@ -686,6 +688,8 @@
|
|
|
| QueueProfileDirectoryForDeletion(profile_dir);
|
| cache.DeleteProfileFromCache(profile_dir);
|
| +
|
| + ProfileMetrics::LogNumberOfProfiles(ProfileMetrics::TIME_DELETE);
|
| }
|
|
|
| // static
|
| @@ -708,6 +712,7 @@
|
| GetProfile(cache.GetPathOfProfileAtIndex(p));
|
| }
|
| }
|
| + ProfileMetrics::LogNumberOfProfiles(ProfileMetrics::TIME_STARTUP);
|
| }
|
|
|
| ProfileManagerWithoutInit::ProfileManagerWithoutInit(
|
|
|