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

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

Issue 7493025: Instantiate OriginBoundCertService in relevant places and do plumbing to pass it down to HttpNetw... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/off_the_record_profile_io_data.cc
===================================================================
--- chrome/browser/profiles/off_the_record_profile_io_data.cc (revision 94628)
+++ chrome/browser/profiles/off_the_record_profile_io_data.cc (working copy)
@@ -19,6 +19,8 @@
#include "chrome/common/url_constants.h"
#include "content/browser/browser_thread.h"
#include "content/browser/resource_context.h"
+#include "net/base/default_origin_bound_cert_store.h"
+#include "net/base/origin_bound_cert_service.h"
#include "net/ftp/ftp_network_layer.h"
#include "net/http/http_cache.h"
#include "webkit/database/database_tracker.h"
@@ -161,6 +163,13 @@
main_context->set_dns_cert_checker(dns_cert_checker());
main_context->set_proxy_service(proxy_service());
+ // For incognito, we use a non-persistent origin bound cert store.
+ net::OriginBoundCertService* origin_bound_cert_service =
+ new net::OriginBoundCertService(
+ new net::DefaultOriginBoundCertStore(NULL));
+ set_origin_bound_cert_service(origin_bound_cert_service);
+ main_context->set_origin_bound_cert_service(origin_bound_cert_service);
+
main_context->set_cookie_store(
new net::CookieMonster(NULL, profile_params->cookie_monster_delegate));
// All we care about for extensions is the cookie store. For incognito, we
@@ -179,6 +188,7 @@
net::HttpCache* cache =
new net::HttpCache(main_context->host_resolver(),
main_context->cert_verifier(),
+ main_context->origin_bound_cert_service(),
main_context->dnsrr_resolver(),
main_context->dns_cert_checker(),
main_context->proxy_service(),
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698