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

Unified Diff: chrome/browser/io_thread.cc

Issue 1378613004: Set Token-Binding HTTP header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tb-tls-ext-new
Patch Set: Remove sequence numbers from mock reads Created 4 years, 11 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 | « chrome/browser/io_thread.h ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread.cc
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index 0de54ea70fbfc92850374818d72cc22f8e570549..5e38908011b16f7cd7e53a89dd3e86d751fa7ceb 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -455,8 +455,8 @@ IOThread::Globals::Globals()
ignore_certificate_errors(false),
testing_fixed_http_port(0),
testing_fixed_https_port(0),
- enable_user_alternate_protocol_ports(false) {
-}
+ enable_user_alternate_protocol_ports(false),
+ enable_token_binding(false) {}
IOThread::Globals::~Globals() {}
@@ -847,6 +847,9 @@ void IOThread::Init() {
}
globals_->enable_brotli.set(
base::FeatureList::IsEnabled(features::kBrotliEncoding));
+ if (command_line.HasSwitch(switches::kEnableTokenBinding)) {
Ryan Sleevi 2016/01/26 22:53:47 As command-line switches are generally inaccessibl
nharper 2016/01/26 23:29:30 There is a plan to add it to about:flags - see htt
+ globals_->enable_token_binding = true;
+ }
// TODO(erikchen): Remove ScopedTracker below once http://crbug.com/466432
// is fixed.
tracked_objects::ScopedTracker tracking_profile13(
@@ -1188,6 +1191,7 @@ void IOThread::InitializeNetworkSessionParamsFromGlobals(
&params->origin_to_force_quic_on);
params->enable_user_alternate_protocol_ports =
globals.enable_user_alternate_protocol_ports;
+ params->enable_token_binding = globals.enable_token_binding;
}
base::TimeTicks IOThread::creation_time() const {
« no previous file with comments | « chrome/browser/io_thread.h ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698