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

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

Issue 6090006: Regkey functions return error code instead of bool (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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: chrome/installer/util/delete_after_reboot_helper.cc
===================================================================
--- chrome/installer/util/delete_after_reboot_helper.cc (revision 71561)
+++ chrome/installer/util/delete_after_reboot_helper.cc (working copy)
@@ -379,13 +379,14 @@
if (strings_to_keep.size() <= 1) {
// We have only the trailing NULL string. Don't bother writing that.
- return session_manager_key.DeleteValue(kPendingFileRenameOps);
+ return (session_manager_key.DeleteValue(kPendingFileRenameOps)
+ == ERROR_SUCCESS);
grt (UTC plus 2) 2011/01/16 04:19:48 Wrapping and indentation.
amit 2011/01/16 07:54:28 Done.
}
std::vector<char> buffer;
StringArrayToMultiSZBytes(strings_to_keep, &buffer);
DCHECK(buffer.size() > 0);
if (buffer.empty())
return false;
- return session_manager_key.WriteValue(kPendingFileRenameOps, &buffer[0],
- buffer.size(), REG_MULTI_SZ);
+ return (session_manager_key.WriteValue(kPendingFileRenameOps, &buffer[0],
+ buffer.size(), REG_MULTI_SZ) == ERROR_SUCCESS);
grt (UTC plus 2) 2011/01/16 04:19:48 Should this be indented 4 spaces from the open par
amit 2011/01/16 07:54:28 If it fits in one line. It does not and it will ma
}

Powered by Google App Engine
This is Rietveld 408576698