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

Unified Diff: chrome/browser/net/chrome_url_request_context.cc

Issue 6342016: Remove ChromeURLRequestContext::is_media_ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 9 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/net/chrome_url_request_context.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/chrome_url_request_context.cc
diff --git a/chrome/browser/net/chrome_url_request_context.cc b/chrome/browser/net/chrome_url_request_context.cc
index 2b4473fea847a51d7742f3ae0d50e4dc76bc36d5..e742430f3154e0f4adeac09d19341a8654114373 100644
--- a/chrome/browser/net/chrome_url_request_context.cc
+++ b/chrome/browser/net/chrome_url_request_context.cc
@@ -450,7 +450,6 @@ class FactoryForMedia : public ChromeURLRequestContextFactory {
profile->GetRequestContext())),
disk_cache_path_(disk_cache_path),
cache_size_(cache_size) {
- is_media_ = true;
is_off_the_record_ = off_the_record;
}
@@ -767,8 +766,7 @@ void ChromeURLRequestContextGetter::GetCookieStoreAsyncHelper(
// ----------------------------------------------------------------------------
ChromeURLRequestContext::ChromeURLRequestContext()
- : is_media_(false),
- is_off_the_record_(false) {
+ : is_off_the_record_(false) {
CheckCurrentlyOnIOThread();
}
@@ -843,8 +841,7 @@ void ChromeURLRequestContext::OnDefaultCharsetChange(
// ChromeURLRequestContext on the IO thread (see
// ApplyProfileParametersToContext() which reverses this).
ChromeURLRequestContextFactory::ChromeURLRequestContextFactory(Profile* profile)
- : is_media_(false),
- is_off_the_record_(profile->IsOffTheRecord()),
+ : is_off_the_record_(profile->IsOffTheRecord()),
io_thread_(g_browser_process->io_thread()) {
CheckCurrentlyOnMainThread();
PrefService* prefs = profile->GetPrefs();
@@ -897,7 +894,6 @@ void ChromeURLRequestContextFactory::ApplyProfileParametersToContext(
ChromeURLRequestContext* context) {
// Apply all the parameters. NOTE: keep this in sync with
// ChromeURLRequestContextFactory(Profile*).
- context->set_is_media(is_media_);
context->set_is_off_the_record(is_off_the_record_);
context->set_accept_language(accept_language_);
context->set_accept_charset(accept_charset_);
« no previous file with comments | « chrome/browser/net/chrome_url_request_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698