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

Unified Diff: chrome/browser/ui/webui/profile_helper.h

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/profile_helper.h
diff --git a/chrome/browser/ui/webui/profile_helper.h b/chrome/browser/ui/webui/profile_helper.h
index da5d67ca30baa51259af50112e95ff7190a6f47c..75bbebaa8b500bee0e66420a3a0b45dded4d1bb5 100644
--- a/chrome/browser/ui/webui/profile_helper.h
+++ b/chrome/browser/ui/webui/profile_helper.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_UI_WEBUI_PROFILE_HELPER_H_
#include "base/files/file_path.h"
+#include "chrome/browser/lifetime/scoped_keep_alive.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_metrics.h"
@@ -15,7 +16,9 @@ class WebUI;
namespace webui {
-void OpenNewWindowForProfile(Profile* profile, Profile::CreateStatus status);
+void OpenNewWindowForProfile(const std::unique_ptr<ScopedKeepAlive>& keep_alive,
Bernhard Bauer 2016/11/18 13:31:31 Pass the unique_ptr without the const reference.
+ Profile* profile,
+ Profile::CreateStatus status);
// Deletes the profile at the given |file_path|.
void DeleteProfileAtPath(base::FilePath file_path,

Powered by Google App Engine
This is Rietveld 408576698