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

Unified Diff: chrome/browser/ui/webui/options/create_profile_handler.cc

Issue 2516613002: Profile deletion: prevent profile creation race in dying browser. (Closed)
Patch Set: Created 4 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/ui/webui/options/create_profile_handler.cc
diff --git a/chrome/browser/ui/webui/options/create_profile_handler.cc b/chrome/browser/ui/webui/options/create_profile_handler.cc
index aaea9bd8f19551632930d3a2cff1d6553f6ad889..943ac0db080cc6c2732d6ac5d03aa7df0f1222b4 100644
--- a/chrome/browser/ui/webui/options/create_profile_handler.cc
+++ b/chrome/browser/ui/webui/options/create_profile_handler.cc
@@ -218,7 +218,8 @@ void CreateProfileHandler::CreateShortcutAndShowSuccess(bool create_shortcut,
if (should_open_new_window) {
// Opening the new window must be the last action, after all callbacks
// have been run, to give them a chance to initialize the profile.
- webui::OpenNewWindowForProfile(profile, Profile::CREATE_STATUS_INITIALIZED);
+ webui::OpenNewWindowForProfile(nullptr, profile,
+ Profile::CREATE_STATUS_INITIALIZED);
}
profile_creation_type_ = NO_CREATION_IN_PROGRESS;
}

Powered by Google App Engine
This is Rietveld 408576698