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

Issue 19771013: Adapting the UI to bring it closer to the spec, and fixing image fetching. (Closed)

Created:
7 years, 5 months ago by Pete Williamson
Modified:
7 years, 5 months ago
Reviewers:
Nicolas Zea, dewittj
CC:
chromium-reviews, tim+watch_chromium.org, rsimha+watch_chromium.org, haitaol+watch_chromium.org, albertb+watch_chromium.org
Visibility:
Public.

Description

Adapting the UI to bring it closer to the spec, and fixing image fetching. Firstly, this uses more correct fields for displaying synced notifications. The Annotation field is better than the description or text fields in most cases. Secondly, this fixes some image fetch problems. I was using images from the expanded_notification section instead of the collapsed_notification section, and the schemaless URLs were being interpreted by the chrome code as UNC paths! I added a function to add a default schema of https: if none was provided to prevent the GURL code from thinking "//" meant a UNC path on windows. Thirdly, I noticed some changes to the server side protobuf that we were not in sync with, so I copied the new fields into the protobuf that we use. (This includes the annotation field). BUG=262303, 247668 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213288

Patch Set 1 #

Total comments: 2

Patch Set 2 : Adapting the UI: Fix string comparison #

Total comments: 2

Patch Set 3 : Adapting the UI: fix unit tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -45 lines) Patch
M chrome/browser/notifications/sync_notifier/sync_notifier_test_utils.cc View 1 2 2 chunks +7 lines, -8 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/synced_notification.h View 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/synced_notification.cc View 1 2 19 chunks +124 lines, -37 lines 0 comments Download
M sync/protocol/synced_notification_render.proto View 4 chunks +23 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Pete Williamson
zea: Please review the protobuf changes dewittj: Please review everything else
7 years, 5 months ago (2013-07-19 22:10:09 UTC) #1
dewittj
https://codereview.chromium.org/19771013/diff/1/chrome/browser/notifications/sync_notifier/synced_notification.cc File chrome/browser/notifications/sync_notifier/synced_notification.cc (right): https://codereview.chromium.org/19771013/diff/1/chrome/browser/notifications/sync_notifier/synced_notification.cc#newcode37 chrome/browser/notifications/sync_notifier/synced_notification.cc:37: std::string AddDefaultSchemaIfNeeded(std::string& url_spec) { This function makes me sad. ...
7 years, 5 months ago (2013-07-19 22:37:18 UTC) #2
Pete Williamson
Answer for DewittJ https://codereview.chromium.org/19771013/diff/1/chrome/browser/notifications/sync_notifier/synced_notification.cc File chrome/browser/notifications/sync_notifier/synced_notification.cc (right): https://codereview.chromium.org/19771013/diff/1/chrome/browser/notifications/sync_notifier/synced_notification.cc#newcode37 chrome/browser/notifications/sync_notifier/synced_notification.cc:37: std::string AddDefaultSchemaIfNeeded(std::string& url_spec) { On 2013/07/19 ...
7 years, 5 months ago (2013-07-19 22:49:07 UTC) #3
Pete Williamson
Fixes per DewittJ@
7 years, 5 months ago (2013-07-19 23:16:06 UTC) #4
dewittj
https://codereview.chromium.org/19771013/diff/6001/chrome/browser/notifications/sync_notifier/synced_notification.cc File chrome/browser/notifications/sync_notifier/synced_notification.cc (right): https://codereview.chromium.org/19771013/diff/6001/chrome/browser/notifications/sync_notifier/synced_notification.cc#newcode44 chrome/browser/notifications/sync_notifier/synced_notification.cc:44: return url_spec; On other platforms, how is a url ...
7 years, 5 months ago (2013-07-22 14:48:16 UTC) #5
Pete Williamson
https://codereview.chromium.org/19771013/diff/6001/chrome/browser/notifications/sync_notifier/synced_notification.cc File chrome/browser/notifications/sync_notifier/synced_notification.cc (right): https://codereview.chromium.org/19771013/diff/6001/chrome/browser/notifications/sync_notifier/synced_notification.cc#newcode44 chrome/browser/notifications/sync_notifier/synced_notification.cc:44: return url_spec; On 2013/07/22 14:48:16, dewittj wrote: > On ...
7 years, 5 months ago (2013-07-22 22:25:29 UTC) #6
dewittj
lgtm but I don't have enough context to determine if the actual data you're pulling ...
7 years, 5 months ago (2013-07-22 23:24:01 UTC) #7
dewittj
I would also prefer to set any urls to https that have no scheme. Perhaps ...
7 years, 5 months ago (2013-07-22 23:29:36 UTC) #8
Pete Williamson
ping Zea@ - Please look at the protobuf changes Also, I thought I had run ...
7 years, 5 months ago (2013-07-23 18:31:11 UTC) #9
Nicolas Zea
sync LGTM
7 years, 5 months ago (2013-07-23 20:23:31 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/petewil@chromium.org/19771013/16001
7 years, 5 months ago (2013-07-23 20:26:31 UTC) #11
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 5 months ago (2013-07-23 20:33:59 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/petewil@chromium.org/19771013/16001
7 years, 5 months ago (2013-07-23 22:00:26 UTC) #13
commit-bot: I haz the power
7 years, 5 months ago (2013-07-24 00:15:48 UTC) #14
Message was sent while issue was closed.
Change committed as 213288

Powered by Google App Engine
This is Rietveld 408576698