| Index: chrome/browser/download/download_manager.cc
|
| diff --git a/chrome/browser/download/download_manager.cc b/chrome/browser/download/download_manager.cc
|
| index de7344a3e237a963ae382ca2b3c9c6c2f43e7a4f..7deb3e79e0e33fa9571400223f27b1e0ecdc3b1d 100644
|
| --- a/chrome/browser/download/download_manager.cc
|
| +++ b/chrome/browser/download/download_manager.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -334,10 +334,19 @@ void DownloadManager::CheckIfSuggestedPathExists(DownloadCreateInfo* info,
|
| // download.
|
| FilePath::StringType file_name;
|
| FilePath path;
|
| +#if defined(OS_WIN)
|
| + string16 unconfirmed_prefix =
|
| + l10n_util::GetStringUTF16(IDS_DOWNLOAD_UNCONFIRMED_PREFIX);
|
| +#else
|
| + std::string unconfirmed_prefix =
|
| + l10n_util::GetStringUTF8(IDS_DOWNLOAD_UNCONFIRMED_PREFIX);
|
| +#endif
|
| +
|
| while (path.empty()) {
|
| base::SStringPrintf(
|
| &file_name,
|
| - FILE_PATH_LITERAL("unconfirmed %d.crdownload"),
|
| + unconfirmed_prefix.append(
|
| + FILE_PATH_LITERAL(" %d.crdownload")).c_str(),
|
| base::RandInt(0, 100000));
|
| path = dir.Append(file_name);
|
| if (file_util::PathExists(path))
|
|
|