Commit efc0c9f2 authored by willchan@chromium.org's avatar willchan@chromium.org

Remove ChromeURLRequestContext::is_media_

BUG=none
TEST=compiles

Review URL: http://codereview.chromium.org/6342016

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72291 0039d316-1c4b-4281-b951-d872f2087c98
parent e2d74791
...@@ -450,7 +450,6 @@ class FactoryForMedia : public ChromeURLRequestContextFactory { ...@@ -450,7 +450,6 @@ class FactoryForMedia : public ChromeURLRequestContextFactory {
profile->GetRequestContext())), profile->GetRequestContext())),
disk_cache_path_(disk_cache_path), disk_cache_path_(disk_cache_path),
cache_size_(cache_size) { cache_size_(cache_size) {
is_media_ = true;
is_off_the_record_ = off_the_record; is_off_the_record_ = off_the_record;
} }
...@@ -767,8 +766,7 @@ void ChromeURLRequestContextGetter::GetCookieStoreAsyncHelper( ...@@ -767,8 +766,7 @@ void ChromeURLRequestContextGetter::GetCookieStoreAsyncHelper(
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
ChromeURLRequestContext::ChromeURLRequestContext() ChromeURLRequestContext::ChromeURLRequestContext()
: is_media_(false), : is_off_the_record_(false) {
is_off_the_record_(false) {
CheckCurrentlyOnIOThread(); CheckCurrentlyOnIOThread();
} }
...@@ -843,8 +841,7 @@ void ChromeURLRequestContext::OnDefaultCharsetChange( ...@@ -843,8 +841,7 @@ void ChromeURLRequestContext::OnDefaultCharsetChange(
// ChromeURLRequestContext on the IO thread (see // ChromeURLRequestContext on the IO thread (see
// ApplyProfileParametersToContext() which reverses this). // ApplyProfileParametersToContext() which reverses this).
ChromeURLRequestContextFactory::ChromeURLRequestContextFactory(Profile* profile) 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()) { io_thread_(g_browser_process->io_thread()) {
CheckCurrentlyOnMainThread(); CheckCurrentlyOnMainThread();
PrefService* prefs = profile->GetPrefs(); PrefService* prefs = profile->GetPrefs();
...@@ -897,7 +894,6 @@ void ChromeURLRequestContextFactory::ApplyProfileParametersToContext( ...@@ -897,7 +894,6 @@ void ChromeURLRequestContextFactory::ApplyProfileParametersToContext(
ChromeURLRequestContext* context) { ChromeURLRequestContext* context) {
// Apply all the parameters. NOTE: keep this in sync with // Apply all the parameters. NOTE: keep this in sync with
// ChromeURLRequestContextFactory(Profile*). // ChromeURLRequestContextFactory(Profile*).
context->set_is_media(is_media_);
context->set_is_off_the_record(is_off_the_record_); context->set_is_off_the_record(is_off_the_record_);
context->set_accept_language(accept_language_); context->set_accept_language(accept_language_);
context->set_accept_charset(accept_charset_); context->set_accept_charset(accept_charset_);
......
...@@ -79,9 +79,6 @@ class ChromeURLRequestContext : public net::URLRequestContext { ...@@ -79,9 +79,6 @@ class ChromeURLRequestContext : public net::URLRequestContext {
bool is_off_the_record() const { bool is_off_the_record() const {
return is_off_the_record_; return is_off_the_record_;
} }
bool is_media() const {
return is_media_;
}
virtual const std::string& GetUserAgent(const GURL& url) const; virtual const std::string& GetUserAgent(const GURL& url) const;
...@@ -141,9 +138,6 @@ class ChromeURLRequestContext : public net::URLRequestContext { ...@@ -141,9 +138,6 @@ class ChromeURLRequestContext : public net::URLRequestContext {
void set_is_off_the_record(bool is_off_the_record) { void set_is_off_the_record(bool is_off_the_record) {
is_off_the_record_ = is_off_the_record; is_off_the_record_ = is_off_the_record;
} }
void set_is_media(bool is_media) {
is_media_ = is_media;
}
void set_host_content_settings_map( void set_host_content_settings_map(
HostContentSettingsMap* host_content_settings_map) { HostContentSettingsMap* host_content_settings_map) {
host_content_settings_map_ = host_content_settings_map; host_content_settings_map_ = host_content_settings_map;
...@@ -195,7 +189,6 @@ class ChromeURLRequestContext : public net::URLRequestContext { ...@@ -195,7 +189,6 @@ class ChromeURLRequestContext : public net::URLRequestContext {
scoped_refptr<ExtensionInfoMap> extension_info_map_; scoped_refptr<ExtensionInfoMap> extension_info_map_;
scoped_refptr<PrerenderManager> prerender_manager_; scoped_refptr<PrerenderManager> prerender_manager_;
bool is_media_;
bool is_off_the_record_; bool is_off_the_record_;
private: private:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment