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

Side by Side Diff: chrome/browser/net/chrome_url_request_context.cc

Issue 9317018: referrer_charset is a lie. It's really the user's default_charset. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/download/download_util.cc ('k') | chrome/browser/profiles/profile_io_data.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/net/chrome_url_request_context.h" 5 #include "chrome/browser/net/chrome_url_request_context.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 void ChromeURLRequestContext::OnAcceptLanguageChange( 383 void ChromeURLRequestContext::OnAcceptLanguageChange(
384 const std::string& accept_language) { 384 const std::string& accept_language) {
385 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 385 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
386 set_accept_language( 386 set_accept_language(
387 net::HttpUtil::GenerateAcceptLanguageHeader(accept_language)); 387 net::HttpUtil::GenerateAcceptLanguageHeader(accept_language));
388 } 388 }
389 389
390 void ChromeURLRequestContext::OnDefaultCharsetChange( 390 void ChromeURLRequestContext::OnDefaultCharsetChange(
391 const std::string& default_charset) { 391 const std::string& default_charset) {
392 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 392 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
393 set_referrer_charset(default_charset); 393 set_default_charset(default_charset);
394 set_accept_charset( 394 set_accept_charset(
395 net::HttpUtil::GenerateAcceptCharsetHeader(default_charset)); 395 net::HttpUtil::GenerateAcceptCharsetHeader(default_charset));
396 } 396 }
OLDNEW
« no previous file with comments | « chrome/browser/download/download_util.cc ('k') | chrome/browser/profiles/profile_io_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698