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

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

Issue 8810001: Fixing a problem in ProfileManager when registering testing profiles and wanting them in the prof... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: =Increasing the value returned by SyncTest::NumberOfDefaultSyncItems() Created 9 years 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 | chrome/browser/sync/test/integration/sync_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_manager.cc
===================================================================
--- chrome/browser/profiles/profile_manager.cc (revision 112977)
+++ chrome/browser/profiles/profile_manager.cc (working copy)
@@ -763,8 +763,10 @@
void ProfileManager::RegisterTestingProfile(Profile* profile,
bool add_to_cache) {
RegisterProfile(profile, true);
- if (add_to_cache)
+ if (add_to_cache){
+ InitProfileUserPrefs(profile);
AddProfileToCache(profile);
+ }
}
#if defined(OS_WIN)
« no previous file with comments | « no previous file | chrome/browser/sync/test/integration/sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698