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

Issue 193773003: Turn on and use the AppInfo data. (Closed)

Created:
6 years, 9 months ago by Pete Williamson
Modified:
6 years, 8 months ago
Reviewers:
cmp, dewittj
CC:
chromium-reviews
Visibility:
Public.

Description

Turn on and use the AppInfo data. Synced Notifications uses the SyncedNotificationAppInfo struct to name the sending services and supply icons for them. The first two checkins in this larger change established the datatype and the sync change processor for it. This checkin wires up the data type to the rest of the Synced Notifications code. This checkin now uses the SNAI class to provide the bitmap and service name, and removes the hardcoding to our first service name provider and bitmap. This checkin also adds code to fetch the bitmaps provided by the SNAI protobuf. New unit tests have been added to cover the new functionality. A lifetime dependency has been set up to ensure that the SyncedNotificationAppInfoService is always present whenever we have a ChromeNotifierService. BUG=280266 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260433

Patch Set 1 #

Patch Set 2 : Turn on app info: fix windows build #

Total comments: 53

Patch Set 3 : Turn on app info: CR fixes per DewittJ #

Total comments: 21

Patch Set 4 : Turn on app info: Refactoring the image holders #

Total comments: 10

Patch Set 5 : Turn on app info: more CR fixes per DewittJ #

Patch Set 6 : Turn on app info: another windows fix #

Total comments: 48

Patch Set 7 : Turn on app info: Style fixes #

Patch Set 8 : Turn on app info: LGTM nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1512 lines, -480 lines) Patch
M chrome/browser/notifications/sync_notifier/chrome_notifier_delegate_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/sync_notifier/chrome_notifier_service.h View 1 2 3 4 5 6 6 chunks +27 lines, -8 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc View 1 2 3 4 5 6 7 16 chunks +132 lines, -106 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/chrome_notifier_service_factory.cc View 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/chrome_notifier_service_unittest.cc View 1 2 3 4 5 6 7 15 chunks +87 lines, -26 lines 0 comments Download
A chrome/browser/notifications/sync_notifier/image_holder.h View 1 2 3 4 5 6 7 1 chunk +72 lines, -0 lines 0 comments Download
A chrome/browser/notifications/sync_notifier/image_holder.cc View 1 2 3 4 5 6 7 1 chunk +93 lines, -0 lines 0 comments Download
A chrome/browser/notifications/sync_notifier/image_holder_unittest.cc View 1 2 3 1 chunk +103 lines, -0 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/sync_notifier_test_utils.h View 1 2 3 4 5 2 chunks +66 lines, -0 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/sync_notifier_test_utils.cc View 1 2 3 4 2 chunks +90 lines, -0 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/synced_notification.h View 1 2 3 4 5 6 7 4 chunks +48 lines, -32 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/synced_notification.cc View 1 2 3 4 5 6 7 10 chunks +224 lines, -223 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/synced_notification_app_info.h View 1 2 3 4 5 6 2 chunks +87 lines, -12 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/synced_notification_app_info.cc View 1 2 3 4 5 6 2 chunks +103 lines, -7 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/synced_notification_app_info_service.h View 1 2 3 4 5 6 4 chunks +57 lines, -5 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/synced_notification_app_info_service.cc View 1 2 3 4 5 6 7 chunks +125 lines, -6 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/synced_notification_app_info_service_unittest.cc View 1 2 3 4 12 chunks +65 lines, -23 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/synced_notification_app_info_unittest.cc View 1 2 3 3 chunks +47 lines, -5 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/synced_notification_unittest.cc View 1 2 3 4 5 6 10 chunks +74 lines, -24 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Pete Williamson
6 years, 9 months ago (2014-03-11 00:49:35 UTC) #1
dewittj
missing AppInfo factory files.
6 years, 9 months ago (2014-03-11 01:34:07 UTC) #2
Pete Williamson
On 2014/03/11 01:34:07, dewittj wrote: > missing AppInfo factory files. The AppInfo factory was already ...
6 years, 9 months ago (2014-03-11 16:51:47 UTC) #3
dewittj
Here are some preliminary comments. Additionally, all classes need class-level comments, and all public class ...
6 years, 9 months ago (2014-03-17 21:43:43 UTC) #4
dewittj
here are my comments for the SyncedNotificationAppInfo* classes: https://codereview.chromium.org/193773003/diff/40001/chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc File chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc (right): https://codereview.chromium.org/193773003/diff/40001/chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc#newcode367 chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc:367: synced_notification_app_info_service_->GetAllSendingServiceNames(); ...
6 years, 9 months ago (2014-03-20 18:00:28 UTC) #5
Pete Williamson
CR fixes as suggested by DewittJ from his first round. (I haven't looked at the ...
6 years, 9 months ago (2014-03-21 01:22:30 UTC) #6
dewittj
I like the imageholder thanks https://codereview.chromium.org/193773003/diff/60001/chrome/browser/notifications/sync_notifier/chrome_notifier_service.h File chrome/browser/notifications/sync_notifier/chrome_notifier_service.h (right): https://codereview.chromium.org/193773003/diff/60001/chrome/browser/notifications/sync_notifier/chrome_notifier_service.h#newcode37 chrome/browser/notifications/sync_notifier/chrome_notifier_service.h:37: // TODO(petewil): Remove this ...
6 years, 9 months ago (2014-03-24 17:35:50 UTC) #7
Pete Williamson
https://codereview.chromium.org/193773003/diff/40001/chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc File chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc (right): https://codereview.chromium.org/193773003/diff/40001/chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc#newcode367 chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc:367: synced_notification_app_info_service_->GetAllSendingServiceNames(); On 2014/03/20 18:00:28, dewittj wrote: > We should ...
6 years, 9 months ago (2014-03-25 00:08:37 UTC) #8
dewittj
https://codereview.chromium.org/193773003/diff/20001/chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc File chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc (left): https://codereview.chromium.org/193773003/diff/20001/chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc#oldcode152 chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc:152: // underlying problem causing bad data. On 2014/03/17 21:43:43, ...
6 years, 9 months ago (2014-03-25 22:31:13 UTC) #9
dewittj
fyi, since you were wondering if there's a style guide rule for declaration/definition ordering, see ...
6 years, 9 months ago (2014-03-26 17:04:11 UTC) #10
Pete Williamson
This should address all outstanding comments except the reordering of functions to have the order ...
6 years, 9 months ago (2014-03-26 18:12:54 UTC) #11
dewittj
lgtm, only nits remain at this point. https://codereview.chromium.org/193773003/diff/130001/chrome/browser/notifications/sync_notifier/chrome_notifier_service_unittest.cc File chrome/browser/notifications/sync_notifier/chrome_notifier_service_unittest.cc (right): https://codereview.chromium.org/193773003/diff/130001/chrome/browser/notifications/sync_notifier/chrome_notifier_service_unittest.cc#newcode563 chrome/browser/notifications/sync_notifier/chrome_notifier_service_unittest.cc:563: kSendingService1Name); On ...
6 years, 9 months ago (2014-03-26 18:38:38 UTC) #12
Pete Williamson
Address LGTM issues, and re-order the functions in synced_notification.cc/.h to match https://codereview.chromium.org/193773003/diff/130001/chrome/browser/notifications/sync_notifier/chrome_notifier_service_unittest.cc File chrome/browser/notifications/sync_notifier/chrome_notifier_service_unittest.cc (right): ...
6 years, 9 months ago (2014-03-26 21:03:50 UTC) #13
Pete Williamson
The CQ bit was checked by petewil@chromium.org
6 years, 9 months ago (2014-03-27 16:00:09 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/petewil@chromium.org/193773003/500001
6 years, 9 months ago (2014-03-27 16:00:28 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 16:09:03 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_clang_dbg
6 years, 9 months ago (2014-03-27 16:09:04 UTC) #17
Pete Williamson
The CQ bit was checked by petewil@chromium.org
6 years, 9 months ago (2014-03-27 22:20:02 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/petewil@chromium.org/193773003/500001
6 years, 9 months ago (2014-03-27 22:21:13 UTC) #19
cmp
The CQ bit was unchecked by cmp@chromium.org
6 years, 8 months ago (2014-03-30 16:27:41 UTC) #20
cmp
The CQ bit was checked by cmp@chromium.org
6 years, 8 months ago (2014-03-30 16:29:54 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/petewil@chromium.org/193773003/500001
6 years, 8 months ago (2014-03-30 16:30:12 UTC) #22
commit-bot: I haz the power
6 years, 8 months ago (2014-03-30 17:00:02 UTC) #23
Message was sent while issue was closed.
Change committed as 260433

Powered by Google App Engine
This is Rietveld 408576698