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

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

Issue 7621066: Fix sync test crashing when multiprofiles are enabled on Mac. Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: oops Created 9 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
===================================================================
--- chrome/browser/profiles/profile_manager.cc (revision 97284)
+++ chrome/browser/profiles/profile_manager.cc (working copy)
@@ -564,3 +564,9 @@
#endif
return CommandLine::ForCurrentProcess()->HasSwitch(switches::kMultiProfiles);
}
+
+void ProfileManager::RegisterTestingProfile(Profile* profile,
+ bool created) {
+ RegisterProfile(profile, true);
+ AddProfileToCache(profile);
+}

Powered by Google App Engine
This is Rietveld 408576698