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

Issue 9317018: referrer_charset is a lie. It's really the user's default_charset. (Closed)

Created:
8 years, 10 months ago by abarth-chromium
Modified:
8 years, 2 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cbentzel+watch_chromium.org, jam, rdsmith+dwatch_chromium.org
Visibility:
Public.

Description

referrer_charset is a lie. It's really the user's default_charset. The "referrer_charset" is used as a fallback for decode filenames in the Content-Disposition header. This name is a mis-nomer because the value of this variable is completely unrelated to the referrer. Instead, the value actually is the default charset from the user's profile. This patch renames the "referrer_charset" concept to "default_charset" in an attempt to restore sanity to the world.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -77 lines) Patch
M chrome/browser/download/download_util.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/chrome_url_request_context.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 2 chunks +2 lines, -16 lines 0 comments Download
M content/browser/download/download_create_info.h View 1 chunk +2 lines, -3 lines 0 comments Download
M content/browser/download/download_item_impl.h View 2 chunks +3 lines, -4 lines 0 comments Download
M content/browser/download/download_item_impl.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/download/download_manager_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/download_manager_impl_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/download_resource_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/mock_download_item.h View 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/download_item.h View 1 chunk +1 line, -1 line 0 comments Download
M content/shell/shell_download_manager_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/net_util.h View 4 chunks +5 lines, -5 lines 0 comments Download
M net/base/net_util.cc View 10 chunks +13 lines, -13 lines 0 comments Download
M net/base/net_util_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M net/http/http_content_disposition.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/http_content_disposition.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M net/http/http_content_disposition_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M net/url_request/url_request_context.h View 2 chunks +6 lines, -9 lines 0 comments Download
M net/url_request/url_request_context.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
abarth-chromium
@asaka for net OWNERS; @darin for contetn OWNERS.
8 years, 10 months ago (2012-02-01 00:01:54 UTC) #1
asanka
Is the charset passed in to DownloadManager::DownloadUrl() from RenderViewContextMenu::ExecuteCommand() incorrect? It seems the charset doesn't ...
8 years, 10 months ago (2012-02-01 01:42:58 UTC) #2
cbentzel
I tripped over this problem recently, and tracked down when the problem was introduced. From ...
8 years, 10 months ago (2012-02-01 01:57:15 UTC) #3
abarth-chromium
I'm not sure I quite follow, but maybe I need to look at the code ...
8 years, 10 months ago (2012-02-01 02:02:19 UTC) #4
darin (slow to review)
8 years, 10 months ago (2012-02-01 05:51:13 UTC) #5
content/  <--  LGTM

Powered by Google App Engine
This is Rietveld 408576698