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

Unified Diff: chrome/browser/profiles/profile_io_data.cc

Issue 9415040: Refactor TransportSecurityState. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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: chrome/browser/profiles/profile_io_data.cc
===================================================================
--- chrome/browser/profiles/profile_io_data.cc (revision 134551)
+++ chrome/browser/profiles/profile_io_data.cc (working copy)
@@ -460,12 +460,14 @@
profile_params_->proxy_config_service.release(),
command_line));
- transport_security_state_.reset(new net::TransportSecurityState(
- command_line.GetSwitchValueASCII(switches::kHstsHosts)));
+ transport_security_state_.reset(new net::TransportSecurityState());
transport_security_persister_.reset(
new TransportSecurityPersister(transport_security_state_.get(),
profile_params_->path,
profile_params_->is_incognito));
+ const std::string& serialized =
+ command_line.GetSwitchValueASCII(switches::kHstsHosts);
+ transport_security_persister_.get()->DeserializeFromCommandLine(serialized);
// NOTE(willchan): Keep these protocol handlers in sync with
// ProfileIOData::IsHandledProtocol().
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698