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

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

Issue 1579433002: Make profile statistics tasks inspectable by tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make ProfileStatisticsAggregator tasks trackable Created 4 years, 11 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_manager.cc
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
index 070486a578cdf11ba175d370d1a20d130bbd1308..e243830b45d9ce9accfc4db11eff6075750bf29a 100644
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -1071,8 +1071,8 @@ void ProfileManager::DoFinalInit(Profile* profile, bool go_off_the_record) {
if (!profile->IsGuestSession() && !profile->IsSystemProfile() &&
!profile->IsNewProfile() && !go_off_the_record &&
profile->GetLastSessionExitType() != Profile::EXIT_NORMAL) {
- profiles::GatherProfileStatistics(
- profile, profiles::ProfileStatisticsCallback(), nullptr);
+ ProfileStatistics::GatherProfileStatistics(
+ profile, profiles::ProfileStatisticsCallback());
}
}
@@ -1501,8 +1501,8 @@ void ProfileManager::BrowserListObserver::OnBrowserRemoved(
// Gather statistics and store into ProfileInfoCache. For incognito profile
// we gather the statistics of its parent profile instead, because a window
// of the parent profile was open.
- profiles::GatherProfileStatistics(
- original_profile, profiles::ProfileStatisticsCallback(), nullptr);
+ ProfileStatistics::GatherProfileStatistics(
+ original_profile, profiles::ProfileStatisticsCallback());
}
}
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_statistics.h » ('j') | chrome/browser/profiles/profile_statistics.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698