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

Unified Diff: chrome/installer/util/delete_after_reboot_helper.cc

Issue 2161193003: Use __func__ instead of __FUNCTION__. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync Created 4 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
« no previous file with comments | « chrome/install_static/install_util.cc ('k') | chrome/installer/util/user_experiment.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/delete_after_reboot_helper.cc
diff --git a/chrome/installer/util/delete_after_reboot_helper.cc b/chrome/installer/util/delete_after_reboot_helper.cc
index c9cf0fe783f56796ee07eccf46067eed48f2697c..cf5e20ac4f9ae327c769f87af619547dedfaf8b0 100644
--- a/chrome/installer/util/delete_after_reboot_helper.cc
+++ b/chrome/installer/util/delete_after_reboot_helper.cc
@@ -250,9 +250,8 @@ base::FilePath GetShortPathName(const base::FilePath& path) {
DWORD length = GetShortPathName(path.value().c_str(),
base::WriteInto(&short_path, MAX_PATH),
MAX_PATH);
- DWORD last_error = ::GetLastError();
- DLOG_IF(WARNING, length == 0 && last_error != ERROR_PATH_NOT_FOUND)
- << __FUNCTION__ << " gle=" << last_error;
+ DPLOG_IF(WARNING, length == 0 && GetLastError() != ERROR_PATH_NOT_FOUND)
+ << __func__;
if ((length == 0) || (length > MAX_PATH)) {
// GetShortPathName fails if the path is no longer present or cannot be
// put in the size buffer provided. Instead of returning an empty string,
« no previous file with comments | « chrome/install_static/install_util.cc ('k') | chrome/installer/util/user_experiment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698