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

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

Issue 381283002: Refactor code that defers extension background page loading (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: larger DeferLoadingBackgroundHosts Created 6 years, 5 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_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),
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | extensions/DEPS » ('j') | extensions/DEPS » ('J')

Powered by Google App Engine
This is Rietveld 408576698