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

Unified Diff: chrome/browser/download/drag_download_util.cc

Issue 3056029: Move the number conversions from string_util to a new file.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/download/drag_download_util.cc
===================================================================
--- chrome/browser/download/drag_download_util.cc (revision 54340)
+++ chrome/browser/download/drag_download_util.cc (working copy)
@@ -9,6 +9,7 @@
#include "base/file_util.h"
#include "base/scoped_ptr.h"
#include "base/task.h"
+#include "base/string_number_conversions.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/chrome_thread.h"
#include "googleurl/src/gurl.h"
@@ -65,9 +66,9 @@
new_file_path = *file_path;
} else {
#if defined(OS_WIN)
- std::wstring suffix = std::wstring(L"-") + IntToWString(seq);
+ string16 suffix = ASCIIToUTF16("-") + base::IntToString16(seq);
#else
- std::string suffix = std::string("-") + IntToString(seq);
+ std::string suffix = std::string("-") + base::IntToString(seq);
#endif
new_file_path = file_path->InsertBeforeExtension(suffix);
}
« no previous file with comments | « chrome/browser/dom_ui/ntp_resource_cache.cc ('k') | chrome/browser/extensions/extension_bookmark_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698