Index: chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc |
diff --git a/chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc b/chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc |
index ba6924150b43b3fa736e889151ffc035bb141f2c..0ff74e976e37d7029abfbf3aa9048b922c2740bc 100644 |
--- a/chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc |
+++ b/chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc |
@@ -119,11 +119,11 @@ void ChromeWebContentsViewDelegateViews::RestoreFocus() { |
} |
} |
-scoped_ptr<RenderViewContextMenuBase> |
+std::unique_ptr<RenderViewContextMenuBase> |
ChromeWebContentsViewDelegateViews::BuildMenu( |
content::WebContents* web_contents, |
const content::ContextMenuParams& params) { |
- scoped_ptr<RenderViewContextMenuBase> menu; |
+ std::unique_ptr<RenderViewContextMenuBase> menu; |
content::RenderFrameHost* focused_frame = web_contents->GetFocusedFrame(); |
// If the frame tree does not have a focused frame at this point, do not |
// bother creating RenderViewContextMenuViews. |
@@ -137,7 +137,7 @@ ChromeWebContentsViewDelegateViews::BuildMenu( |
} |
void ChromeWebContentsViewDelegateViews::ShowMenu( |
- scoped_ptr<RenderViewContextMenuBase> menu) { |
+ std::unique_ptr<RenderViewContextMenuBase> menu) { |
context_menu_ = std::move(menu); |
if (!context_menu_) |
return; |