summaryrefslogtreecommitdiffstats
path: root/content/shell
diff options
context:
space:
mode:
authortonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-17 19:45:42 +0000
committertonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-17 19:45:42 +0000
commitc280aeb40d33d1b542a62436f09dd7b55b1bc012 (patch)
tree1d4ca82d3c661611cccb56ddc5222ae38259e94c /content/shell
parent606703e127017b433889a2343fc3c599a62a2718 (diff)
downloadchromium_src-c280aeb40d33d1b542a62436f09dd7b55b1bc012.zip
chromium_src-c280aeb40d33d1b542a62436f09dd7b55b1bc012.tar.gz
chromium_src-c280aeb40d33d1b542a62436f09dd7b55b1bc012.tar.bz2
Make content shell support --ignore-certificate-errors.
This flag is useful for benchmarking against recorded web pages using web page replay. BUG=None TEST=None Review URL: https://chromiumcodereview.appspot.com/11159003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162488 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell')
-rw-r--r--content/shell/shell_browser_context.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/content/shell/shell_browser_context.cc b/content/shell/shell_browser_context.cc
index 0a66e15..cdba836 100644
--- a/content/shell/shell_browser_context.cc
+++ b/content/shell/shell_browser_context.cc
@@ -16,6 +16,7 @@
#include "content/shell/shell_resource_context.h"
#include "content/shell/shell_switches.h"
#include "content/shell/shell_url_request_context_getter.h"
+#include "content/public/common/content_switches.h"
#if defined(OS_WIN)
#include "base/base_paths_win.h"
@@ -42,7 +43,7 @@ ShellBrowserContext::~ShellBrowserContext() {
void ShellBrowserContext::InitWhileIOAllowed() {
CommandLine* cmd_line = CommandLine::ForCurrentProcess();
- if (cmd_line->HasSwitch(switches::kDumpRenderTree))
+ if (cmd_line->HasSwitch(switches::kIgnoreCertificateErrors))
ignore_certificate_errors_ = true;
if (cmd_line->HasSwitch(switches::kDumpRenderTree)) {
CHECK(testing_path_.CreateUniqueTempDir());