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

Side by Side Diff: chrome/browser/tab_contents/test_tab_contents.cc

Issue 3036038: ChromeFrame currently overrides the request context for intercepting network ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/browser/tab_contents/test_tab_contents.h" 5 #include "chrome/browser/tab_contents/test_tab_contents.h"
6 6
7 #include "chrome/browser/renderer_host/render_view_host.h" 7 #include "chrome/browser/renderer_host/render_view_host.h"
8 #include "chrome/browser/renderer_host/test/test_render_view_host.h" 8 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
9 #include "chrome/browser/tab_contents/infobar_delegate.h" 9 #include "chrome/browser/tab_contents/infobar_delegate.h"
10 #include "chrome/common/notification_service.h" 10 #include "chrome/common/notification_service.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 } 43 }
44 44
45 TestRenderViewHost* TestTabContents::pending_rvh() { 45 TestRenderViewHost* TestTabContents::pending_rvh() {
46 return static_cast<TestRenderViewHost*>( 46 return static_cast<TestRenderViewHost*>(
47 render_manager_.pending_render_view_host_); 47 render_manager_.pending_render_view_host_);
48 } 48 }
49 49
50 bool TestTabContents::CreateRenderViewForRenderManager( 50 bool TestTabContents::CreateRenderViewForRenderManager(
51 RenderViewHost* render_view_host) { 51 RenderViewHost* render_view_host) {
52 // This will go to a TestRenderViewHost. 52 // This will go to a TestRenderViewHost.
53 render_view_host->CreateRenderView(profile()->GetRequestContext(), 53 render_view_host->CreateRenderView(string16());
54 string16());
55 return true; 54 return true;
56 } 55 }
57 56
58 TabContents* TestTabContents::Clone() { 57 TabContents* TestTabContents::Clone() {
59 TabContents* tc = new TestTabContents( 58 TabContents* tc = new TestTabContents(
60 profile(), SiteInstance::CreateSiteInstance(profile())); 59 profile(), SiteInstance::CreateSiteInstance(profile()));
61 tc->controller().CopyStateFrom(controller_); 60 tc->controller().CopyStateFrom(controller_);
62 return tc; 61 return tc;
63 } 62 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698