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

Unified Diff: ui/views/controls/webview/webview_unittest.cc

Issue 1917053003: unique_ptr_migration: clean up references to scoped_ptr as of r389721 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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
« no previous file with comments | « ui/snapshot/snapshot_android.cc ('k') | ui/wm/core/cursor_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « ui/snapshot/snapshot_android.cc ('k') | ui/wm/core/cursor_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698