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

Issue 8567018: Limit number of notifications that can be received by the client. (Closed)

Created:
9 years, 1 month ago by elvin
Modified:
9 years, 1 month ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, mihaip+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Persist notification creation time. Ensure notification displayed is latest Limit number of notifications that can be received by the client. (Client side Garbage collection) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110669

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 33

Patch Set 6 : '' #

Total comments: 17

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -13 lines) Patch
M chrome/browser/extensions/app_notification.h View 1 2 3 4 5 6 4 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/app_notification.cc View 1 2 3 4 5 6 7 8 9 6 chunks +30 lines, -2 lines 0 comments Download
M chrome/browser/extensions/app_notification_manager.h View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/app_notification_manager.cc View 1 2 3 4 5 6 6 chunks +35 lines, -4 lines 0 comments Download
M chrome/browser/extensions/app_notification_manager_sync_unittest.cc View 1 2 3 4 5 6 5 chunks +37 lines, -5 lines 0 comments Download
M chrome/browser/extensions/app_notification_test_util.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_app_api.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
Munjal (Google)
I think Antony should also take a look. http://codereview.chromium.org/8567018/diff/9004/chrome/browser/extensions/app_notification.cc File chrome/browser/extensions/app_notification.cc (right): http://codereview.chromium.org/8567018/diff/9004/chrome/browser/extensions/app_notification.cc#newcode13 chrome/browser/extensions/app_notification.cc:13: const ...
9 years, 1 month ago (2011-11-17 19:45:32 UTC) #1
elvin
http://codereview.chromium.org/8567018/diff/9004/chrome/browser/extensions/app_notification.cc File chrome/browser/extensions/app_notification.cc (right): http://codereview.chromium.org/8567018/diff/9004/chrome/browser/extensions/app_notification.cc#newcode13 chrome/browser/extensions/app_notification.cc:13: const char* kCreationKey= "creation_timestamp_ms"; On 2011/11/17 19:45:32, munjal wrote: ...
9 years, 1 month ago (2011-11-17 22:28:17 UTC) #2
asargent_no_longer_on_chrome
http://codereview.chromium.org/8567018/diff/9004/chrome/browser/extensions/app_notification.cc File chrome/browser/extensions/app_notification.cc (right): http://codereview.chromium.org/8567018/diff/9004/chrome/browser/extensions/app_notification.cc#newcode52 chrome/browser/extensions/app_notification.cc:52: result->SetDouble(kCreationKey, creation_timestamp_ms_); for a Time, you can serialize it ...
9 years, 1 month ago (2011-11-17 22:36:24 UTC) #3
elvin
http://codereview.chromium.org/8567018/diff/9004/chrome/browser/extensions/app_notification.cc File chrome/browser/extensions/app_notification.cc (right): http://codereview.chromium.org/8567018/diff/9004/chrome/browser/extensions/app_notification.cc#newcode52 chrome/browser/extensions/app_notification.cc:52: result->SetDouble(kCreationKey, creation_timestamp_ms_); Done On 2011/11/17 22:36:24, Antony Sargent wrote: ...
9 years, 1 month ago (2011-11-17 22:52:58 UTC) #4
asargent_no_longer_on_chrome
LGTM w/ some nits you should address before checking in http://codereview.chromium.org/8567018/diff/5005/chrome/browser/extensions/app_notification.cc File chrome/browser/extensions/app_notification.cc (right): http://codereview.chromium.org/8567018/diff/5005/chrome/browser/extensions/app_notification.cc#newcode53 ...
9 years, 1 month ago (2011-11-17 23:40:14 UTC) #5
elvin
also added the sorting on Add http://codereview.chromium.org/8567018/diff/5005/chrome/browser/extensions/app_notification.cc File chrome/browser/extensions/app_notification.cc (right): http://codereview.chromium.org/8567018/diff/5005/chrome/browser/extensions/app_notification.cc#newcode53 chrome/browser/extensions/app_notification.cc:53: if (creation_time_.is_null()) On ...
9 years, 1 month ago (2011-11-18 00:10:18 UTC) #6
asargent_no_longer_on_chrome
> Done, kept it unsigned as size() is unsigned? Ok, no problem.
9 years, 1 month ago (2011-11-18 00:19:58 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/elvin@google.com/8567018/14005
9 years, 1 month ago (2011-11-18 06:29:23 UTC) #8
commit-bot: I haz the power
9 years, 1 month ago (2011-11-18 07:50:15 UTC) #9
Change committed as 110669

Powered by Google App Engine
This is Rietveld 408576698