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

Unified Diff: chromecast/browser/cast_content_window.cc

Issue 1875623002: Convert //chromecast from scoped_ptr to std::unique_ptr (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 | « chromecast/browser/cast_content_window.h ('k') | chromecast/browser/cast_net_log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/cast_content_window.cc
diff --git a/chromecast/browser/cast_content_window.cc b/chromecast/browser/cast_content_window.cc
index bbd179bd9eeb95d32a0f2d6bac46d1a7a41a8bca..0828604f75f769cbaff5d0739f6c17fb0c2bb3fb 100644
--- a/chromecast/browser/cast_content_window.cc
+++ b/chromecast/browser/cast_content_window.cc
@@ -5,6 +5,7 @@
#include "chromecast/browser/cast_content_window.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/threading/thread_restrictions.h"
#include "chromecast/base/metrics/cast_metrics_helper.h"
#include "chromecast/browser/cast_browser_process.h"
@@ -104,7 +105,7 @@ void CastContentWindow::CreateWindowTree(
#endif
}
-scoped_ptr<content::WebContents> CastContentWindow::CreateWebContents(
+std::unique_ptr<content::WebContents> CastContentWindow::CreateWebContents(
const gfx::Size& initial_size,
content::BrowserContext* browser_context) {
content::WebContents::CreateParams create_params(browser_context, NULL);
@@ -113,7 +114,7 @@ scoped_ptr<content::WebContents> CastContentWindow::CreateWebContents(
content::WebContents* web_contents = content::WebContents::Create(
create_params);
content::WebContentsObserver::Observe(web_contents);
- return make_scoped_ptr(web_contents);
+ return base::WrapUnique(web_contents);
}
void CastContentWindow::DidFirstVisuallyNonEmptyPaint() {
« no previous file with comments | « chromecast/browser/cast_content_window.h ('k') | chromecast/browser/cast_net_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698