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

Unified Diff: printing/printed_document.cc

Issue 654013: Deprecate file_util::AppendToPath() on non-Windows. (Closed)
Patch Set: ok Created 10 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
« no previous file with comments | « chrome/plugin/chrome_plugin_host.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printed_document.cc
diff --git a/printing/printed_document.cc b/printing/printed_document.cc
index 7452e0e44672f00600d7a59f88a8fbf0431519d8..605896892497ac1814427e02f003a132abfc6afe 100644
--- a/printing/printed_document.cc
+++ b/printing/printed_document.cc
@@ -270,10 +270,10 @@ void PrintedDocument::DebugDump(const PrintedPage& page) {
file_util::ReplaceIllegalCharactersInPath(&narrow_filename, '_');
filename = UTF8ToWide(narrow_filename);
#endif
- std::wstring path(g_debug_dump_info->debug_dump_path);
- file_util::AppendToPath(&path, filename);
+ FilePath path = FilePath::FromWStringHack(
+ g_debug_dump_info->debug_dump_path);
#if defined(OS_WIN)
- page.native_metafile()->SaveTo(path);
+ page.native_metafile()->SaveTo(path.Append(filename).ToWStringHack());
#else // OS_WIN
NOTIMPLEMENTED();
#endif // OS_WIN
« no previous file with comments | « chrome/plugin/chrome_plugin_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698