OLD | NEW |
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 Loading... |
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 |
OLD | NEW |