| Index: chrome/browser/ui/views/tab_dialogs_views.cc
|
| diff --git a/chrome/browser/ui/views/tab_dialogs_views.cc b/chrome/browser/ui/views/tab_dialogs_views.cc
|
| index 617fcff98aece80e8ffb1359eb368ded8f7d4f37..a00eead8482edb877cc4be0169182959ef67def0 100644
|
| --- a/chrome/browser/ui/views/tab_dialogs_views.cc
|
| +++ b/chrome/browser/ui/views/tab_dialogs_views.cc
|
| @@ -74,10 +74,10 @@ void TabDialogsViews::HideManagePasswordsBubble() {
|
| ManagePasswordsBubbleView::CloseCurrentBubble();
|
| }
|
|
|
| -std::unique_ptr<ValidationMessageBubble> TabDialogsViews::ShowValidationMessage(
|
| +base::WeakPtr<ValidationMessageBubble> TabDialogsViews::ShowValidationMessage(
|
| const gfx::Rect& anchor_in_root_view,
|
| const base::string16& main_text,
|
| const base::string16& sub_text) {
|
| - return base::WrapUnique(new ValidationMessageBubbleView(
|
| - web_contents_, anchor_in_root_view, main_text, sub_text));
|
| + return (new ValidationMessageBubbleView(
|
| + web_contents_, anchor_in_root_view, main_text, sub_text))->AsWeakPtr();
|
| }
|
|
|