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

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

Issue 9558012: Cleanup: IWYU for BrowserThread. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix win Created 8 years, 10 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: content/browser/download/drag_download_util.cc
===================================================================
--- content/browser/download/drag_download_util.cc (revision 124292)
+++ content/browser/download/drag_download_util.cc (working copy)
@@ -4,12 +4,15 @@
#include "content/browser/download/drag_download_util.h"
+#include <string>
+
#include "base/bind.h"
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/memory/scoped_ptr.h"
#include "base/string_number_conversions.h"
#include "base/string_util.h"
+#include "base/threading/thread_restrictions.h"
#include "base/utf_string_conversions.h"
#include "content/public/browser/browser_thread.h"
#include "googleurl/src/gurl.h"
@@ -66,11 +69,11 @@
if (seq == 0) {
new_file_path = *file_path;
} else {
- #if defined(OS_WIN)
+#if defined(OS_WIN)
string16 suffix = ASCIIToUTF16("-") + base::IntToString16(seq);
- #else
+#else
std::string suffix = std::string("-") + base::IntToString(seq);
- #endif
+#endif
new_file_path = file_path->InsertBeforeExtension(suffix);
}
« no previous file with comments | « content/browser/browser_thread_impl.cc ('k') | content/browser/in_process_webkit/indexed_db_quota_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698