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

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

Issue 2654443002: Should not gather statistics for a system profile. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_manager.cc
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
index ab192042a61a91916d88f323d8ecfcc69f7a4338..800010b79252d961655dccbf41b14038c5cc50f4 100644
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -1670,7 +1670,7 @@ 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.
- if (!profile->IsSystemProfile()) {
+ if (!profile->IsSystemProfile() && !original_profile->IsSystemProfile()) {
ProfileStatisticsFactory::GetForProfile(original_profile)->
GatherStatistics(profiles::ProfileStatisticsCallback());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698