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

Issue 2053613002: Make the notification builder more XPC friendly (Closed)

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

Description

Make the notification builder more XPC friendly Move it to ui/cocoa/notifications where the xpc service will eventually live. Make it a static library so it can be linked by both the app and the XPC. Make sure the build operation only uses information from the underlying dictionary. BUG=571056 Committed: https://crrev.com/aafb03bf0df164a2fb86db117ae6053e9578c437 Cr-Commit-Position: refs/heads/master@{#400672}

Patch Set 1 #

Patch Set 2 : Fix gyp #

Patch Set 3 : rule #

Total comments: 6

Patch Set 4 : review comments #

Total comments: 4

Patch Set 5 : rebase + Peter's comments #

Total comments: 2

Patch Set 6 : revert unintended change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -462 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
D chrome/browser/notifications/notification_builder_mac.h View 1 chunk +0 lines, -73 lines 0 comments Download
D chrome/browser/notifications/notification_builder_mac.mm View 1 chunk +0 lines, -214 lines 0 comments Download
D chrome/browser/notifications/notification_builder_mac_unittest.mm View 1 chunk +0 lines, -152 lines 0 comments Download
M chrome/browser/notifications/notification_platform_bridge_mac.mm View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
A + chrome/browser/ui/cocoa/notifications/BUILD.gn View 1 2 3 4 1 chunk +6 lines, -3 lines 0 comments Download
A + chrome/browser/ui/cocoa/notifications/notification_builder_mac.h View 4 chunks +8 lines, -3 lines 0 comments Download
A + chrome/browser/ui/cocoa/notifications/notification_builder_mac.mm View 1 7 chunks +27 lines, -10 lines 0 comments Download
A + chrome/browser/ui/cocoa/notifications/notification_builder_mac_unittest.mm View 1 2 chunks +2 lines, -2 lines 0 comments Download
A chrome/browser/ui/cocoa/notifications/notification_common.gyp View 1 2 3 4 1 chunk +20 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 21 (8 generated)
Miguel Garcia
I will work on the windows failures as soon as I get my hands on ...
4 years, 6 months ago (2016-06-14 08:51:43 UTC) #3
Robert Sesek
https://codereview.chromium.org/2053613002/diff/40001/chrome/browser/ui/cocoa/notifications/BUILD.gn File chrome/browser/ui/cocoa/notifications/BUILD.gn (right): https://codereview.chromium.org/2053613002/diff/40001/chrome/browser/ui/cocoa/notifications/BUILD.gn#newcode5 chrome/browser/ui/cocoa/notifications/BUILD.gn:5: static_library("notification_common") { This can just be "common" in GN. ...
4 years, 6 months ago (2016-06-14 14:06:31 UTC) #5
Miguel Garcia
https://chromiumcodereview.appspot.com/2053613002/diff/40001/chrome/browser/ui/cocoa/notifications/BUILD.gn File chrome/browser/ui/cocoa/notifications/BUILD.gn (right): https://chromiumcodereview.appspot.com/2053613002/diff/40001/chrome/browser/ui/cocoa/notifications/BUILD.gn#newcode5 chrome/browser/ui/cocoa/notifications/BUILD.gn:5: static_library("notification_common") { On 2016/06/14 14:06:30, Robert Sesek wrote: > ...
4 years, 6 months ago (2016-06-15 14:43:31 UTC) #6
Miguel Garcia
+Jochen for the BUILD.gn file Jochen let me know if you need additional context on ...
4 years, 6 months ago (2016-06-15 15:28:39 UTC) #8
Peter Beverloo
From the notifications side this lgtm, but I don't think it's common to have sub-libraries ...
4 years, 6 months ago (2016-06-16 17:01:30 UTC) #9
Miguel Garcia
Robert can you have a final look? https://codereview.chromium.org/2053613002/diff/60001/chrome/browser/ui/cocoa/notifications/BUILD.gn File chrome/browser/ui/cocoa/notifications/BUILD.gn (right): https://codereview.chromium.org/2053613002/diff/60001/chrome/browser/ui/cocoa/notifications/BUILD.gn#newcode12 chrome/browser/ui/cocoa/notifications/BUILD.gn:12: "//ui/base:base", On ...
4 years, 6 months ago (2016-06-17 12:44:46 UTC) #10
Robert Sesek
LGTM % one thing https://codereview.chromium.org/2053613002/diff/80001/build/config/mac/rules.gni File build/config/mac/rules.gni (left): https://codereview.chromium.org/2053613002/diff/80001/build/config/mac/rules.gni#oldcode341 build/config/mac/rules.gni:341: product_type = "com.apple.product-type.application" Remove this ...
4 years, 6 months ago (2016-06-17 12:46:16 UTC) #11
Miguel Garcia
Will wait for jochen to LGTM the BUILD.gn file before landing it. (Even though the ...
4 years, 6 months ago (2016-06-17 17:10:49 UTC) #12
jochen (gone - plz use gerrit)
lgtm
4 years, 6 months ago (2016-06-20 11:37:07 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2053613002/100001
4 years, 6 months ago (2016-06-20 12:47:02 UTC) #16
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 6 months ago (2016-06-20 14:15:05 UTC) #18
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/aafb03bf0df164a2fb86db117ae6053e9578c437 Cr-Commit-Position: refs/heads/master@{#400672}
4 years, 6 months ago (2016-06-20 14:17:01 UTC) #20
vasilii
4 years, 6 months ago (2016-06-20 14:54:43 UTC) #21
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/2080733002/ by vasilii@chromium.org.

The reason for reverting is: Broke compilation on Mac
https://build.chromium.org/p/chromium/builders/Mac/builds/16903/steps/compile...

../../chrome/browser/ui/cocoa/notifications/notification_builder_mac.mm:11:10:
fatal error: 'chrome/grit/generated_resources.h' file not found
#include "chrome/grit/generated_resources.h".

Powered by Google App Engine
This is Rietveld 408576698