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

Side by Side Diff: components/printing/test/print_test_content_renderer_client.cc

Issue 2257793002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 3 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
« no previous file with comments | « components/prefs/testing_pref_store.cc ('k') | components/rappor/rappor_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "components/printing/test/print_test_content_renderer_client.h" 5 #include "components/printing/test/print_test_content_renderer_client.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "components/printing/renderer/print_web_view_helper.h" 8 #include "components/printing/renderer/print_web_view_helper.h"
9 #include "third_party/WebKit/public/web/WebElement.h" 9 #include "third_party/WebKit/public/web/WebElement.h"
10 10
(...skipping 25 matching lines...) Expand all
36 36
37 PrintTestContentRendererClient::PrintTestContentRendererClient() { 37 PrintTestContentRendererClient::PrintTestContentRendererClient() {
38 } 38 }
39 39
40 PrintTestContentRendererClient::~PrintTestContentRendererClient() { 40 PrintTestContentRendererClient::~PrintTestContentRendererClient() {
41 } 41 }
42 42
43 void PrintTestContentRendererClient::RenderViewCreated( 43 void PrintTestContentRendererClient::RenderViewCreated(
44 content::RenderView* render_view) { 44 content::RenderView* render_view) {
45 new printing::PrintWebViewHelper( 45 new printing::PrintWebViewHelper(
46 render_view, base::WrapUnique(new PrintWebViewHelperDelegate())); 46 render_view, base::MakeUnique<PrintWebViewHelperDelegate>());
47 } 47 }
48 48
49 } // namespace printing 49 } // namespace printing
OLDNEW
« no previous file with comments | « components/prefs/testing_pref_store.cc ('k') | components/rappor/rappor_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698