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

Side by Side Diff: chromecast/browser/test/chromecast_browser_test_helper_default.cc

Issue 2258493003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "chromecast/browser/test/chromecast_browser_test_helper.h" 5 #include "chromecast/browser/test/chromecast_browser_test_helper.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "chromecast/browser/cast_browser_context.h" 8 #include "chromecast/browser/cast_browser_context.h"
9 #include "chromecast/browser/cast_browser_process.h" 9 #include "chromecast/browser/cast_browser_process.h"
10 #include "chromecast/browser/cast_content_window.h" 10 #include "chromecast/browser/cast_content_window.h"
(...skipping 29 matching lines...) Expand all
40 40
41 private: 41 private:
42 std::unique_ptr<CastContentWindow> window_; 42 std::unique_ptr<CastContentWindow> window_;
43 std::unique_ptr<content::WebContents> web_contents_; 43 std::unique_ptr<content::WebContents> web_contents_;
44 }; 44 };
45 45
46 } // namespace 46 } // namespace
47 47
48 std::unique_ptr<ChromecastBrowserTestHelper> 48 std::unique_ptr<ChromecastBrowserTestHelper>
49 ChromecastBrowserTestHelper::Create() { 49 ChromecastBrowserTestHelper::Create() {
50 return base::WrapUnique(new DefaultHelper()); 50 return base::MakeUnique<DefaultHelper>();
51 } 51 }
52 52
53 } // namespace shell 53 } // namespace shell
54 } // namespace chromecast 54 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/browser/cast_content_browser_client.cc ('k') | chromecast/browser/url_request_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698