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

Unified Diff: chrome/tools/profiles/generate_profile.cc

Issue 6019007: Remove win_util::FormatMessage and FormatLastWin32Error. These were only used... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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/default_plugin/plugin_impl_win.h ('k') | chrome_frame/test/chrome_frame_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/tools/profiles/generate_profile.cc
===================================================================
--- chrome/tools/profiles/generate_profile.cc (revision 70263)
+++ chrome/tools/profiles/generate_profile.cc (working copy)
@@ -226,9 +226,9 @@
dst_dir = current_dir.Append(dst_dir);
}
if (!file_util::CreateDirectory(dst_dir)) {
- printf("Unable to create directory %ls: %ls\n",
+ printf("Unable to create directory %ls: %d\n",
dst_dir.value().c_str(),
- win_util::FormatLastWin32Error().c_str());
+ ::GetLastError());
}
icu_util::Initialize();
@@ -278,8 +278,7 @@
printf("Copying file %ls to %ls\n", path.value().c_str(),
dst_file.value().c_str());
if (!file_util::CopyFile(path, dst_file)) {
- printf("Copying file failed: %ls\n",
- win_util::FormatLastWin32Error().c_str());
+ printf("Copying file failed: %d\n", ::GetLastError());
return -1;
}
path = file_iterator.Next();
« no previous file with comments | « chrome/default_plugin/plugin_impl_win.h ('k') | chrome_frame/test/chrome_frame_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698