diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-04 18:37:31 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-04 18:37:31 +0000 |
commit | 630947caffc803a4cc96e3754af45aeedc957c0c (patch) | |
tree | 3950c0a479831c51a008a4ef210829a041498f33 /app | |
parent | 055aedeb2134e49c10c3b3a3593cb8df768d737c (diff) | |
download | chromium_src-630947caffc803a4cc96e3754af45aeedc957c0c.zip chromium_src-630947caffc803a4cc96e3754af45aeedc957c0c.tar.gz chromium_src-630947caffc803a4cc96e3754af45aeedc957c0c.tar.bz2 |
Enable localization of default downloaded filename.
Instead of localizing "download" string in net_util.cc, make a caller,
download_manger, provide a localized string.
BUG=25289
TEST=NetUtilTest.GetSuggestedFilename,DownloadManagerTest.TestDownloadFilename
Original patch by hayato@google.com at:
http://codereview.chromium.org/343014/show
Review URL: http://codereview.chromium.org/367003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30971 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app')
-rw-r--r-- | app/os_exchange_data_provider_win.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/os_exchange_data_provider_win.cc b/app/os_exchange_data_provider_win.cc index 81db40e..9efa5ee 100644 --- a/app/os_exchange_data_provider_win.cc +++ b/app/os_exchange_data_provider_win.cc @@ -6,6 +6,7 @@ #include "app/clipboard/clipboard_util_win.h" #include "app/l10n_util.h" +#include "base/file_path.h" #include "base/i18n/file_util_icu.h" #include "base/logging.h" #include "base/pickle.h" @@ -703,8 +704,8 @@ static void CreateValidFileNameFromTitle(const GURL& url, std::wstring* validated) { if (title.empty()) { if (url.is_valid()) { - *validated = net::GetSuggestedFilename(url, std::string(), - std::string(), "").ToWStringHack(); + *validated = net::GetSuggestedFilename( + url, std::string(), std::string(), FilePath()).ToWStringHack(); } else { // Nothing else can be done, just use a default. *validated = l10n_util::GetString(IDS_APP_UNTITLED_SHORTCUT_FILE_NAME); |