summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-16 00:05:52 +0000
committerabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-16 00:05:52 +0000
commit093e8e8fe2d5b09b8118eabcfaa87068ce5d6873 (patch)
tree195a912835eb89e57fc3c124bf32b5bd8efdda0a
parent01899c12fdad06f0e12667871be5ac99624256d8 (diff)
downloadchromium_src-093e8e8fe2d5b09b8118eabcfaa87068ce5d6873.zip
chromium_src-093e8e8fe2d5b09b8118eabcfaa87068ce5d6873.tar.gz
chromium_src-093e8e8fe2d5b09b8118eabcfaa87068ce5d6873.tar.bz2
Comments and white space changes requested by Wan-Teh.
TBR=wtc Review URL: http://codereview.chromium.org/14444 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7018 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--base/base_switches.cc7
-rw-r--r--net/url_request/url_request_http_job.cc2
2 files changed, 8 insertions, 1 deletions
diff --git a/base/base_switches.cc b/base/base_switches.cc
index c9d65cb0f..1baed5d 100644
--- a/base/base_switches.cc
+++ b/base/base_switches.cc
@@ -31,6 +31,13 @@ const wchar_t kProcessType[] = L"type";
const wchar_t kEnableDCHECK[] = L"enable-dcheck";
// Refuse to make HTTP connections and refuse to accept certificate errors.
+// For more information about the design of this feature, please see
+//
+// ForceHTTPS: Protecting High-Security Web Sites from Network Attacks
+// Collin Jackson and Adam Barth
+// In Proc. of the 17th International World Wide Web Conference (WWW 2008)
+//
+// Available at http://www.adambarth.com/papers/2008/jackson-barth.pdf
const wchar_t kForceHTTPS[] = L"force-https";
} // namespace switches
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc
index 3cfb5709..7504c54 100644
--- a/net/url_request/url_request_http_job.cc
+++ b/net/url_request/url_request_http_job.cc
@@ -385,7 +385,7 @@ void URLRequestHttpJob::OnStartCompleted(int result) {
if (result == net::OK) {
NotifyHeadersComplete();
} else if (net::IsCertificateError(result) &&
- !CommandLine().HasSwitch(switches::kForceHTTPS)) {
+ !CommandLine().HasSwitch(switches::kForceHTTPS)) {
// We encountered an SSL certificate error. Ask our delegate to decide
// what we should do.
// TODO(wtc): also pass ssl_info.cert_status, or just pass the whole