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

Unified Diff: chrome/browser/ui/webui/constrained_web_dialog_ui.cc

Issue 2847173004: Switch SupportsUserData uses to use unique_ptr. (Closed)
Patch Set: Created 3 years, 8 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/ui/webui/constrained_web_dialog_ui.cc
diff --git a/chrome/browser/ui/webui/constrained_web_dialog_ui.cc b/chrome/browser/ui/webui/constrained_web_dialog_ui.cc
index 5ab3cb4cad4ef4869284d9018b45e94af7fe9a1e..1ace21b4d8ab774ff2ab6892bc2f1941c77d63a3 100644
--- a/chrome/browser/ui/webui/constrained_web_dialog_ui.cc
+++ b/chrome/browser/ui/webui/constrained_web_dialog_ui.cc
@@ -104,8 +104,9 @@ void ConstrainedWebDialogUI::OnDialogCloseMessage(const base::ListValue* args) {
void ConstrainedWebDialogUI::SetConstrainedDelegate(
content::WebContents* web_contents,
ConstrainedWebDialogDelegate* delegate) {
- web_contents->SetUserData(&kConstrainedWebDialogDelegateUserDataKey,
- new ConstrainedWebDialogDelegateUserData(delegate));
+ web_contents->SetUserData(
+ &kConstrainedWebDialogDelegateUserDataKey,
+ base::MakeUnique<ConstrainedWebDialogDelegateUserData>(delegate));
}
// static

Powered by Google App Engine
This is Rietveld 408576698