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

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

Issue 1279543002: Support needed to measure user and service traffic in Chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@NewHistogram
Patch Set: Adding sclittle to OWNERs and little fix in ChromeNetworkDelegate test. Created 5 years, 4 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 67acac17bb9292879caed2b9e2b9722271896fc3..c0f2239f80cb0742478d5b1a64c4b26fda7ea36d 100644
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -459,6 +459,9 @@ void ProfileManager::CreateProfileAsync(
}
bool ProfileManager::IsValidProfile(Profile* profile) {
+ ProfileManager* pm = g_browser_process->profile_manager();
Alexei Svitkine (slow) 2015/08/31 17:26:31 Nit: Just inline this into the if, if you're only
amohammadkhan 2015/09/01 04:52:48 Done.
+ if (!pm) // Is NULL when running unit tests.
+ return false;
for (ProfilesInfoMap::iterator iter = profiles_info_.begin();
iter != profiles_info_.end(); ++iter) {
if (iter->second->created) {

Powered by Google App Engine
This is Rietveld 408576698