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

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

Issue 13533007: Test extension reloading behavior. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Pawel's and Matt's comments Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_view_host_factory.h" 5 #include "content/test/test_render_view_host_factory.h"
6 6
7 #include "content/browser/renderer_host/test_render_view_host.h" 7 #include "content/browser/renderer_host/test_render_view_host.h"
8 #include "content/browser/site_instance_impl.h" 8 #include "content/browser/site_instance_impl.h"
9 #include "content/public/browser/render_process_host_factory.h" 9 #include "content/public/browser/render_process_host_factory.h"
10 10
(...skipping 16 matching lines...) Expand all
27 27
28 RenderViewHost* TestRenderViewHostFactory::CreateRenderViewHost( 28 RenderViewHost* TestRenderViewHostFactory::CreateRenderViewHost(
29 SiteInstance* instance, 29 SiteInstance* instance,
30 RenderViewHostDelegate* delegate, 30 RenderViewHostDelegate* delegate,
31 RenderWidgetHostDelegate* widget_delegate, 31 RenderWidgetHostDelegate* widget_delegate,
32 int routing_id, 32 int routing_id,
33 bool swapped_out, 33 bool swapped_out,
34 SessionStorageNamespace* session_storage) { 34 SessionStorageNamespace* session_storage) {
35 // See declaration of render_process_host_factory_ below. 35 // See declaration of render_process_host_factory_ below.
36 static_cast<SiteInstanceImpl*>(instance)-> 36 static_cast<SiteInstanceImpl*>(instance)->
37 set_render_process_host_factory(render_process_host_factory_); 37 SetRenderProcessHostFactory(render_process_host_factory_);
38 return new TestRenderViewHost( 38 return new TestRenderViewHost(
39 instance, delegate, widget_delegate, routing_id, swapped_out); 39 instance, delegate, widget_delegate, routing_id, swapped_out);
40 } 40 }
41 41
42 } // namespace content 42 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698