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

Issue 10855079: Fix Ash notification updates (Closed)

Created:
8 years, 4 months ago by stevenjb
Modified:
8 years, 4 months ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, tfarina, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Fix Ash notification updates In Chrome, it turns out that every Notification has a unique id. In the Ash implementation we need to track and update that id when an existing Bubble is updated. This also ensures that the UI is safely created initially (in case the initial asynchronous Update is delayed) to prevent crashes and to make Layout more consistent. Also includes some cleanup of the WebNotificationTray API. BUG=141285 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150979

Patch Set 1 #

Total comments: 2

Patch Set 2 : Ensure updated notifications are unique. #

Patch Set 3 : Update tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -107 lines) Patch
M ash/system/web_notification/web_notification_tray.h View 1 2 3 chunks +29 lines, -19 lines 0 comments Download
M ash/system/web_notification/web_notification_tray.cc View 1 2 18 chunks +99 lines, -78 lines 0 comments Download
M ash/system/web_notification/web_notification_tray_unittest.cc View 1 2 2 chunks +53 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/ash/balloon_view_ash.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/ash/balloon_view_ash.cc View 2 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
stevenjb
8 years, 4 months ago (2012-08-09 17:36:50 UTC) #1
sadrul
LGTM with a comment: http://codereview.chromium.org/10855079/diff/1/ash/system/web_notification/web_notification_tray.cc File ash/system/web_notification/web_notification_tray.cc (right): http://codereview.chromium.org/10855079/diff/1/ash/system/web_notification/web_notification_tray.cc#newcode150 ash/system/web_notification/web_notification_tray.cc:150: notification.id = new_id; In AddNotification, ...
8 years, 4 months ago (2012-08-09 18:14:44 UTC) #2
stevenjb
Updated code and updated tests. +sky for chrome/browser/ui/views/ash/ OWNERS PTAL http://codereview.chromium.org/10855079/diff/1/ash/system/web_notification/web_notification_tray.cc File ash/system/web_notification/web_notification_tray.cc (right): http://codereview.chromium.org/10855079/diff/1/ash/system/web_notification/web_notification_tray.cc#newcode150 ...
8 years, 4 months ago (2012-08-09 19:05:05 UTC) #3
stevenjb
+sky for chrome/browser/ui/views/ash/ OWNERS
8 years, 4 months ago (2012-08-09 19:05:21 UTC) #4
sky
LGTM
8 years, 4 months ago (2012-08-09 19:47:25 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/10855079/9001
8 years, 4 months ago (2012-08-10 01:01:48 UTC) #6
commit-bot: I haz the power
8 years, 4 months ago (2012-08-10 02:43:46 UTC) #7
Change committed as 150979

Powered by Google App Engine
This is Rietveld 408576698