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

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

Issue 8565032: Fixing ProfileManagerTest to use the TestingProfile instead of a real profile. This will allow ea... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 110703)
+++ chrome/browser/profiles/profile_manager.cc (working copy)
@@ -347,7 +347,7 @@
} else {
// Initiate asynchronous creation process.
ProfileInfo* info =
- RegisterProfile(Profile::CreateProfileAsync(user_data_dir, this),
+ RegisterProfile(CreateAsyncProfile(user_data_dir, this),
false);
info->observers.push_back(observer);
}
@@ -487,6 +487,11 @@
return Profile::CreateProfile(path);
}
+Profile* ProfileManager::CreateAsyncProfile(const FilePath& path,
+ Delegate* delegate) {
+ return Profile::CreateProfileAsync(path, delegate);
+}
+
void ProfileManager::OnProfileCreated(Profile* profile, bool success) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));

Powered by Google App Engine
This is Rietveld 408576698