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

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

Issue 10918279: Provide mutable members of UrlRequestContext via pure-virtual interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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_impl_io_data.cc
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc
index 4e7e378b5b3ed8250d15fee8dc37546f221a8f62..37fcbb15eb47ed77530de70b78815ff355910026 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -13,6 +13,7 @@
#include "chrome/browser/api/prefs/pref_member.h"
#include "chrome/browser/io_thread.h"
#include "chrome/browser/net/about_protocol_handler.h"
+#include "chrome/browser/net/basic_http_user_agent_settings.h"
#include "chrome/browser/net/chrome_net_log.h"
#include "chrome/browser/net/clear_on_exit_policy.h"
#include "chrome/browser/net/connect_interceptor.h"
@@ -317,6 +318,12 @@ void ProfileImplIOData::LazyInitializeInternal(
// Initialize context members.
+ http_user_agent_settings_.reset(new BasicHttpUserAgentSettings(
erikwright (departed) 2012/09/21 15:06:33 I'm not certain, but I think that the main_context
+ profile_params->accept_language, profile_params->accept_charset));
+ main_context->set_http_user_agent_settings(http_user_agent_settings_.get());
+ extensions_context->set_http_user_agent_settings(
+ http_user_agent_settings_.get());
+
ApplyProfileParamsToContext(main_context);
ApplyProfileParamsToContext(extensions_context);

Powered by Google App Engine
This is Rietveld 408576698