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

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: Review fixes 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
« no previous file with comments | « chrome/browser/lifetime/keep_alive_types.cc ('k') | chrome/browser/ui/webui/profile_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..800471ae94613a2034cbbd8182d9087f08c8249a 100644
--- a/chrome/browser/ui/webui/options/create_profile_handler.cc
+++ b/chrome/browser/ui/webui/options/create_profile_handler.cc
@@ -218,7 +218,7 @@ 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(profile);
}
profile_creation_type_ = NO_CREATION_IN_PROGRESS;
}
« no previous file with comments | « chrome/browser/lifetime/keep_alive_types.cc ('k') | chrome/browser/ui/webui/profile_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698