Skip to content

Commit

Permalink
Fix a regression with writing "version" instead of "error" when updat…
Browse files Browse the repository at this point in the history
…e checks produce an error.

R=thomasvl@chromium.org,mark@chromium.org,ryanmyers@chromium.org
BUG=

Review URL: https://codereview.chromium.org/1875823002

Cr-Commit-Position: refs/heads/master@{#386283}
  • Loading branch information
borisv authored and Commit bot committed Apr 9, 2016
1 parent 4ac58c7 commit 02cec33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chrome/browser/mac/keystone_glue.mm
Original file line number Diff line number Diff line change
Expand Up @@ -760,11 +760,11 @@ - (void)updateStatus:(AutoupdateStatus)status
NSMutableDictionary* dictionary =
[NSMutableDictionary dictionaryWithObject:statusNumber
forKey:kAutoupdateStatusStatus];
if (version) {
if ([version length]) {
[dictionary setObject:version forKey:kAutoupdateStatusVersion];
}
if (error) {
[dictionary setObject:version forKey:kAutoupdateStatusErrorMessages];
if ([error length]) {
[dictionary setObject:error forKey:kAutoupdateStatusErrorMessages];
}

NSNotification* notification =
Expand Down

0 comments on commit 02cec33

Please sign in to comment.