Index: ui/views/controls/webview/webview_unittest.cc |
diff --git a/ui/views/controls/webview/webview_unittest.cc b/ui/views/controls/webview/webview_unittest.cc |
index b6d1a1cbb5a6accaf7206139a36e4d9853d2ff3b..193828e24ad4beced07fccfb5d00038e1c500245 100644 |
--- a/ui/views/controls/webview/webview_unittest.cc |
+++ b/ui/views/controls/webview/webview_unittest.cc |
@@ -467,8 +467,9 @@ TEST_F(WebViewUnitTest, EmbeddedFullscreenDuringScreenCapture_ClickToFocus) { |
// if WebView is already removed from Widget. |
TEST_F(WebViewUnitTest, DetachedWebViewDestructor) { |
// Init WebView with attached NativeView. |
- const scoped_ptr<content::WebContents> web_contents(CreateWebContents()); |
- scoped_ptr<WebView> webview(new WebView(web_contents->GetBrowserContext())); |
+ const std::unique_ptr<content::WebContents> web_contents(CreateWebContents()); |
+ std::unique_ptr<WebView> webview( |
+ new WebView(web_contents->GetBrowserContext())); |
View* contents_view = top_level_widget()->GetContentsView(); |
contents_view->AddChildView(webview.get()); |
webview->SetWebContents(web_contents.get()); |