Index: chrome/installer/util/channel_info.cc |
=================================================================== |
--- chrome/installer/util/channel_info.cc (revision 71761) |
+++ chrome/installer/util/channel_info.cc (working copy) |
@@ -116,11 +116,12 @@ |
namespace installer { |
bool ChannelInfo::Initialize(const RegKey& key) { |
- return key.ReadValue(google_update::kRegApField, &value_); |
+ return (key.ReadValue(google_update::kRegApField, &value_) == ERROR_SUCCESS); |
} |
bool ChannelInfo::Write(RegKey* key) const { |
- return key->WriteValue(google_update::kRegApField, value_.c_str()); |
+ return (key->WriteValue(google_update::kRegApField, value_.c_str()) == |
+ ERROR_SUCCESS); |
} |
bool ChannelInfo::GetChannelName(std::wstring* channel_name) const { |