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

Unified Diff: content/public/test/web_contents_tester.cc

Issue 10836164: Change policy to not trigger dangerous download UI for web intents dispatched files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move to WebContentsTester Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/test/web_contents_tester.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/web_contents_tester.cc
diff --git a/content/public/test/web_contents_tester.cc b/content/public/test/web_contents_tester.cc
index e2b249b1a0fac7443823cc60f8b5ad1ea8f20c55..512634622b763f096936ef35fb1a450d5a9b574d 100644
--- a/content/public/test/web_contents_tester.cc
+++ b/content/public/test/web_contents_tester.cc
@@ -5,6 +5,7 @@
#include "content/public/test/web_contents_tester.h"
#include "content/browser/web_contents/test_web_contents.h"
+#include "content/browser/web_contents/render_view_host_manager.h"
namespace content {
@@ -62,6 +63,15 @@ WebContents* WebContentsTester::CreateTestWebContents(
}
// static
+WebContents* WebContentsTester::CreateTestWebContentsNoInit(
+ BrowserContext* browser_context) {
+ TestWebContents* contents = TestWebContents::CreateWithoutInit(browser_context);
jam 2012/08/28 21:50:19 nit: 80 chars...
Greg Billock 2012/08/29 00:55:31 (was reverted in this change)
+ contents->GetRenderManagerForTesting()->Init(
+ browser_context, NULL, MSG_ROUTING_NONE);
+ return contents;
+}
+
+// static
WebContents* WebContentsTester::CreateTestWebContentsCountSetFocusToLocationBar(
BrowserContext* browser_context,
SiteInstance* instance) {
« no previous file with comments | « content/public/test/web_contents_tester.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698