summaryrefslogtreecommitdiffstats
path: root/chrome/tools/profiles
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-30 15:38:47 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-30 15:38:47 +0000
commitfff369b8be4e7df5af4f9c2cedd29234248fd35b (patch)
tree4e6494c94c2cb379273ab1beab20c0c142485601 /chrome/tools/profiles
parentc376c45bd9f166acbdc776c640161d7fbd5956a4 (diff)
downloadchromium_src-fff369b8be4e7df5af4f9c2cedd29234248fd35b.zip
chromium_src-fff369b8be4e7df5af4f9c2cedd29234248fd35b.tar.gz
chromium_src-fff369b8be4e7df5af4f9c2cedd29234248fd35b.tar.bz2
Remove win_util::FormatMessage and FormatLastWin32Error. These were only used in a couple of diagnostic places and one can always use the "Error Lookup" utility.
Move window HWND-specific functions from base/win_util.h to a new file app/win/hwnd_util.h. I plan to put some more stuff from app/win_util into this file as well. Move gfx/window_impl.h into app/win TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/6019007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70312 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools/profiles')
-rw-r--r--chrome/tools/profiles/generate_profile.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/tools/profiles/generate_profile.cc b/chrome/tools/profiles/generate_profile.cc
index 89eebbd..d87366f 100644
--- a/chrome/tools/profiles/generate_profile.cc
+++ b/chrome/tools/profiles/generate_profile.cc
@@ -226,9 +226,9 @@ int main(int argc, const char* argv[]) {
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 @@ int main(int argc, const char* argv[]) {
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();