Chromium Code Reviews| 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(false); |
|
Ilya Sherman
2011/12/09 00:53:41
nit: Rather than using a bool, I think the style g
rpetterson
2011/12/09 01:44:35
Done.
|
| return true; |
| } |
| @@ -686,6 +688,8 @@ |
| QueueProfileDirectoryForDeletion(profile_dir); |
| cache.DeleteProfileFromCache(profile_dir); |
| + |
| + ProfileMetrics::LogNumberOfProfiles(false); |
| } |
| // static |
| @@ -708,6 +712,7 @@ |
| GetProfile(cache.GetPathOfProfileAtIndex(p)); |
| } |
| } |
| + ProfileMetrics::LogNumberOfProfiles(true); |
| } |
| ProfileManagerWithoutInit::ProfileManagerWithoutInit( |