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

Side by Side Diff: content/test/test_render_frame_host_factory.cc

Issue 660883003: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « content/test/layouttest_support.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/test/test_render_frame_host_factory.h" 5 #include "content/test/test_render_frame_host_factory.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "content/test/test_render_frame_host.h" 10 #include "content/test/test_render_frame_host.h"
(...skipping 12 matching lines...) Expand all
23 TestRenderFrameHostFactory::CreateRenderFrameHost( 23 TestRenderFrameHostFactory::CreateRenderFrameHost(
24 RenderViewHostImpl* render_view_host, 24 RenderViewHostImpl* render_view_host,
25 RenderFrameHostDelegate* delegate, 25 RenderFrameHostDelegate* delegate,
26 FrameTree* frame_tree, 26 FrameTree* frame_tree,
27 FrameTreeNode* frame_tree_node, 27 FrameTreeNode* frame_tree_node,
28 int routing_id, 28 int routing_id,
29 bool is_swapped_out) { 29 bool is_swapped_out) {
30 return make_scoped_ptr( 30 return make_scoped_ptr(
31 new TestRenderFrameHost( 31 new TestRenderFrameHost(
32 render_view_host, delegate, frame_tree, frame_tree_node, routing_id, 32 render_view_host, delegate, frame_tree, frame_tree_node, routing_id,
33 is_swapped_out)) 33 is_swapped_out));
34 .PassAs<RenderFrameHostImpl>();
35 } 34 }
36 35
37 } // namespace content 36 } // namespace content
OLDNEW
« no previous file with comments | « content/test/layouttest_support.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698