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

Unified Diff: net/http/transport_security_state.cc

Issue 2906633003: Add a build flag to configure bundling of HSTS preload list (Closed)
Patch Set: self (one typo) Created 3 years, 6 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
Index: net/http/transport_security_state.cc
diff --git a/net/http/transport_security_state.cc b/net/http/transport_security_state.cc
index d4d6f495199460c4af336f05ba4f5c5b3649a278..acbd07bae91394cd7ad429771d22928216490107 100644
--- a/net/http/transport_security_state.cc
+++ b/net/http/transport_security_state.cc
@@ -639,8 +639,8 @@ bool DecodeHSTSPreloadRaw(const std::string& search_hostname,
bool DecodeHSTSPreload(const std::string& hostname, PreloadResult* out) {
bool found;
if (!DecodeHSTSPreloadRaw(hostname, &found, out)) {
- DCHECK(false) << "Internal error in DecodeHSTSPreloadRaw for hostname "
- << hostname;
+ // This can happen when INCLUDE_TRANSPORT_SECURITY_STATE_PRELOAD_LIST is
+ // false, in which case BitReader.seek(0) will return false.
Ryan Sleevi 2017/07/07 16:45:13 Could you explain the rationale for doing this cha
xunjieli 2017/07/10 22:20:40 Done. That's very neat. Thank you for the suggesti
return false;
}

Powered by Google App Engine
This is Rietveld 408576698