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 /chrome/browser/bookmarks | |
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 'chrome/browser/bookmarks')
-rw-r--r-- | chrome/browser/bookmarks/bookmark_utils.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/bookmarks/bookmark_utils.cc b/chrome/browser/bookmarks/bookmark_utils.cc index 3af7910..54ea21cb 100644 --- a/chrome/browser/bookmarks/bookmark_utils.cc +++ b/chrome/browser/bookmarks/bookmark_utils.cc @@ -9,6 +9,7 @@ #include "app/l10n_util.h" #include "app/tree_node_iterator.h" #include "base/basictypes.h" +#include "base/file_path.h" #include "base/string_util.h" #include "base/time.h" #include "chrome/browser/bookmarks/bookmark_drag_data.h" @@ -403,7 +404,7 @@ bool CanPasteFromClipboard(const BookmarkNode* node) { std::string GetNameForURL(const GURL& url) { if (url.is_valid()) { return WideToUTF8(net::GetSuggestedFilename( - url, std::string(), std::string(), "").ToWStringHack()); + url, std::string(), std::string(), FilePath()).ToWStringHack()); } else { return l10n_util::GetStringUTF8(IDS_APP_UNTITLED_SHORTCUT_FILE_NAME); } |