Index: chrome/browser/profiles/profile_impl.cc |
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc |
index 47d30e794620edbaf3ab1ce40ce72f4f52d7fc28..e5b9b1fbcc0249c7edd11f6ccc9bc2d401f5693c 100644 |
--- a/chrome/browser/profiles/profile_impl.cc |
+++ b/chrome/browser/profiles/profile_impl.cc |
@@ -174,6 +174,8 @@ const char* const kPrefExitTypeSessionEnded = "SessionEnded"; |
void CreateDirectoryAndSignal(const base::FilePath& path, |
base::WaitableEvent* done_creating) { |
DVLOG(1) << "Creating directory " << path.value(); |
+ LOG(ERROR) << "JAMES sleeping on create directory"; |
+ base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(5)); |
base::CreateDirectory(path); |
done_creating->Signal(); |
} |
@@ -280,6 +282,7 @@ Profile* Profile::CreateProfile(const base::FilePath& path, |
JsonPrefStore::GetTaskRunnerForFile(path, |
BrowserThread::GetBlockingPool()); |
if (create_mode == CREATE_MODE_ASYNCHRONOUS) { |
+ LOG(ERROR) << "JAMES create profile async"; |
DCHECK(delegate); |
CreateProfileDirectory(sequenced_task_runner.get(), path); |
} else if (create_mode == CREATE_MODE_SYNCHRONOUS) { |
@@ -646,6 +649,7 @@ void ProfileImpl::DoFinalInit() { |
delegate_->OnProfileCreated(this, true, IsNewProfile()); |
} |
+ LOG(ERROR) << "JAMES send profile created"; |
content::NotificationService::current()->Notify( |
chrome::NOTIFICATION_PROFILE_CREATED, |
content::Source<Profile>(this), |