| 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
|
|
|