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

Issue 10660016: Update manager fixes to handle update check failures. (Closed)

Created:
8 years, 6 months ago by pquitslund
Modified:
8 years, 6 months ago
Reviewers:
devoncarew, jwren
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Update manager fixes to handle update check failures. Committed: https://code.google.com/p/dart/source/detail?r=9125

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -27 lines) Patch
M editor/tools/plugins/com.google.dart.tools.deploy/src/com/google/dart/tools/ui/dialogs/UpdateStatusControl.java View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.update.core/src/com/google/dart/tools/update/core/UpdateAdapter.java View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.update.core/src/com/google/dart/tools/update/core/UpdateListener.java View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.update.core/src/com/google/dart/tools/update/core/internal/DownloadManager.java View 1 2 2 chunks +21 lines, -11 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.update.core/src/com/google/dart/tools/update/core/internal/UpdateModel.java View 1 2 3 chunks +18 lines, -2 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.update.core/src/com/google/dart/tools/update/core/internal/UpdateUtils.java View 2 chunks +0 lines, -13 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.update.core/src/com/google/dart/tools/update/core/internal/jobs/CheckForUpdatesJob.java View 1 2 3 chunks +12 lines, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.tools.update.core/src/com/google/dart/tools/update/core/internal/jobs/InstallUpdateAction.java View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
pquitslund
8 years, 6 months ago (2012-06-25 22:44:37 UTC) #1
devoncarew
lgtm http://codereview.chromium.org/10660016/diff/2001/editor/tools/plugins/com.google.dart.tools.update.core/src/com/google/dart/tools/update/core/internal/jobs/CheckForUpdatesJob.java File editor/tools/plugins/com.google.dart.tools.update.core/src/com/google/dart/tools/update/core/internal/jobs/CheckForUpdatesJob.java (right): http://codereview.chromium.org/10660016/diff/2001/editor/tools/plugins/com.google.dart.tools.update.core/src/com/google/dart/tools/update/core/internal/jobs/CheckForUpdatesJob.java#newcode59 editor/tools/plugins/com.google.dart.tools.update.core/src/com/google/dart/tools/update/core/internal/jobs/CheckForUpdatesJob.java:59: UpdateCore.logError("Unable to get latest revision: " + e.getMessage());//$NON-NLS-1$ ...
8 years, 6 months ago (2012-06-25 22:51:51 UTC) #2
jwren
On 2012/06/25 22:51:51, devoncarew wrote: > lgtm > > http://codereview.chromium.org/10660016/diff/2001/editor/tools/plugins/com.google.dart.tools.update.core/src/com/google/dart/tools/update/core/internal/jobs/CheckForUpdatesJob.java > File > editor/tools/plugins/com.google.dart.tools.update.core/src/com/google/dart/tools/update/core/internal/jobs/CheckForUpdatesJob.java > ...
8 years, 6 months ago (2012-06-25 23:41:30 UTC) #3
pquitslund
8 years, 6 months ago (2012-06-26 18:10:22 UTC) #4
Thanks!

updateFailed() now passes an error message which is handed off to listeners.

https://chromiumcodereview.appspot.com/10660016/diff/2001/editor/tools/plugin...
File
editor/tools/plugins/com.google.dart.tools.update.core/src/com/google/dart/tools/update/core/internal/jobs/CheckForUpdatesJob.java
(right):

https://chromiumcodereview.appspot.com/10660016/diff/2001/editor/tools/plugin...
editor/tools/plugins/com.google.dart.tools.update.core/src/com/google/dart/tools/update/core/internal/jobs/CheckForUpdatesJob.java:59:
UpdateCore.logError("Unable to get latest revision: " +
e.getMessage());//$NON-NLS-1$
On 2012/06/25 22:51:51, devoncarew wrote:
> What about storing this error, and having the update manager pass it into
> listeners to the update process? As is currently is, the updateFailed()
> notification passes no arguments to receivers, and gives no indication as to
why
> the update failed.

Right.  As per our conversation, I've plumbed this through.

Powered by Google App Engine
This is Rietveld 408576698