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

Unified Diff: chromecast/browser/cast_content_browser_client_simple.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_browser_client.cc ('k') | chromecast/browser/cast_content_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/cast_content_browser_client_simple.cc
diff --git a/chromecast/browser/cast_content_browser_client_simple.cc b/chromecast/browser/cast_content_browser_client_simple.cc
index 2b27e60db0d6dc5c95370c8837e8d1b488cd02eb..fb32fe6a9caeee6717f6addd8a11364a7972783e 100644
--- a/chromecast/browser/cast_content_browser_client_simple.cc
+++ b/chromecast/browser/cast_content_browser_client_simple.cc
@@ -2,16 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <memory>
+
+#include "base/memory/ptr_util.h"
#include "chromecast/browser/cast_content_browser_client.h"
-#include "base/memory/scoped_ptr.h"
namespace chromecast {
namespace shell {
// static
-scoped_ptr<CastContentBrowserClient> CastContentBrowserClient::Create() {
- return make_scoped_ptr(new CastContentBrowserClient());
+std::unique_ptr<CastContentBrowserClient> CastContentBrowserClient::Create() {
+ return base::WrapUnique(new CastContentBrowserClient());
}
} // namespace shell
« no previous file with comments | « chromecast/browser/cast_content_browser_client.cc ('k') | chromecast/browser/cast_content_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698