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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <memory>
6
7 #include "base/memory/ptr_util.h"
5 #include "chromecast/browser/cast_content_browser_client.h" 8 #include "chromecast/browser/cast_content_browser_client.h"
6 9
7 #include "base/memory/scoped_ptr.h"
8 10
9 namespace chromecast { 11 namespace chromecast {
10 namespace shell { 12 namespace shell {
11 13
12 // static 14 // static
13 scoped_ptr<CastContentBrowserClient> CastContentBrowserClient::Create() { 15 std::unique_ptr<CastContentBrowserClient> CastContentBrowserClient::Create() {
14 return make_scoped_ptr(new CastContentBrowserClient()); 16 return base::WrapUnique(new CastContentBrowserClient());
15 } 17 }
16 18
17 } // namespace shell 19 } // namespace shell
18 } // namespace chromecast 20 } // namespace chromecast
OLDNEW
« 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