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

Issue 2095223002: Refactor notification operation functionality out of PNS (Closed)

Created:
4 years, 6 months ago by Miguel Garcia
Modified:
4 years, 5 months ago
Reviewers:
Peter Beverloo
CC:
chromium-reviews, mlamouri+watch-notifications_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor notification operation functionality out of PNS Move to its own file - The enum with the different operations exercesied in a notification - The ability to open notification settings This is some prework before introducing notification operation handlers BUG=571056 Committed: https://crrev.com/3cc06ec198342fba03eea9c2a265ca89cb39dff1 Cr-Commit-Position: refs/heads/master@{#403128}

Patch Set 1 #

Patch Set 2 : include #

Total comments: 8

Patch Set 3 : review #

Patch Set 4 : remove renamed files #

Total comments: 2

Patch Set 5 : remove enum suffix #

Messages

Total messages: 15 (4 generated)
Miguel Garcia
4 years, 6 months ago (2016-06-25 21:56:01 UTC) #2
Peter Beverloo
Could you detail what the rest of the "common" behaviour is? I suspect that it ...
4 years, 5 months ago (2016-06-28 22:52:41 UTC) #3
Miguel Garcia
https://chromiumcodereview.appspot.com/2095223002/diff/20001/chrome/browser/notifications/notification_operation_common.cc File chrome/browser/notifications/notification_operation_common.cc (right): https://chromiumcodereview.appspot.com/2095223002/diff/20001/chrome/browser/notifications/notification_operation_common.cc#newcode31 chrome/browser/notifications/notification_operation_common.cc:31: On 2016/06/28 22:52:41, Peter Beverloo wrote: > nit: --whitespace ...
4 years, 5 months ago (2016-06-29 17:25:40 UTC) #4
Peter Beverloo
Could you please answer the question I left in my previous comment? On 2016/06/29 17:25:40, ...
4 years, 5 months ago (2016-06-29 17:29:44 UTC) #5
Peter Beverloo
lgtm % answering the question https://chromiumcodereview.appspot.com/2095223002/diff/60001/chrome/browser/notifications/notification_common.h File chrome/browser/notifications/notification_common.h (right): https://chromiumcodereview.appspot.com/2095223002/diff/60001/chrome/browser/notifications/notification_common.h#newcode19 chrome/browser/notifications/notification_common.h:19: NOTIFICATION_SETTINGS = 2 nit: ...
4 years, 5 months ago (2016-06-29 17:32:29 UTC) #6
Miguel Garcia
> Could you detail what the rest of the "common" behaviour is? Oh sorry I ...
4 years, 5 months ago (2016-06-29 17:38:22 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2095223002/80001
4 years, 5 months ago (2016-06-30 08:20:11 UTC) #10
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-06-30 09:14:23 UTC) #11
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-30 09:14:25 UTC) #12
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/3cc06ec198342fba03eea9c2a265ca89cb39dff1 Cr-Commit-Position: refs/heads/master@{#403128}
4 years, 5 months ago (2016-06-30 09:15:41 UTC) #14
Miguel Garcia
4 years, 5 months ago (2016-07-01 10:49:09 UTC) #15
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/2095223002/diff/60001/chrome/browser/n...
File chrome/browser/notifications/notification_common.h (right):

https://chromiumcodereview.appspot.com/2095223002/diff/60001/chrome/browser/n...
chrome/browser/notifications/notification_common.h:19: NOTIFICATION_SETTINGS = 2
On 2016/06/29 17:32:29, Peter Beverloo wrote:
> nit: since it's scoped to the NotificationCommon class, no need to prefix with
> Notification again. What about {CLICK, CLOSE, SETTINGS}? You could prefix with
> OPERATION_ if you so desire.

The shorter the better, so I went with CLICK,CLOSE,SETTINGS.

Powered by Google App Engine
This is Rietveld 408576698