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

Issue 1141613003: Push API: Include origin in generated app_ids (Closed)

Created:
5 years, 7 months ago by johnme
Modified:
5 years, 7 months ago
Reviewers:
Peter Beverloo
CC:
chromium-reviews, mvanouwerkerk+watch_chromium.org, peter+watch_chromium.org, johnme+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@ident_test
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Push API: Include origin in generated app_ids PushMessagingAppIdentifier currently generates app_id strings of the form: "wp:9CC55CCE-B8F9-4092-A364-3B0F73A3AB5F". This patch changes it to generate app_id strings of the form: "wp:https://foo.example.com:8443/#9CC55CCE-B8F9-4092-A364-3B0F73A3AB5F" BUG=458592, 461867 Committed: https://crrev.com/14defc6866693aa3dfceed796cd94d788e9f3122 Cr-Commit-Position: refs/heads/master@{#329851}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Fix typo in app_id comment #

Patch Set 3 : Address peter's minor review comments #

Patch Set 4 : For discussion (may revert to earlier patch set): Always store origin in pref value #

Patch Set 5 : Add test for reading old values from prefs #

Total comments: 8

Patch Set 6 : Address peter's nits #

Patch Set 7 : Simplify DCHECKs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -98 lines) Patch
M chrome/browser/push_messaging/push_messaging_app_identifier.h View 1 2 3 4 5 4 chunks +16 lines, -9 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_app_identifier.cc View 1 2 3 4 5 6 7 chunks +75 lines, -39 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_app_identifier_unittest.cc View 1 2 3 4 4 chunks +70 lines, -39 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_browsertest.cc View 1 2 3 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_service_impl.cc View 1 2 4 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
johnme
5 years, 7 months ago (2015-05-13 11:38:40 UTC) #2
Peter Beverloo
Thanks for the patch. Hereby a few comments, and some questions. (1) What's the plan ...
5 years, 7 months ago (2015-05-13 13:04:14 UTC) #3
johnme
Addressed peter's inline review comments, but haven't yet addressed the bigger questions asked. https://codereview.chromium.org/1141613003/diff/1/chrome/browser/push_messaging/push_messaging_app_identifier.cc File ...
5 years, 7 months ago (2015-05-13 16:18:09 UTC) #4
johnme
> (1) What's the plan for stopping to support legacy app > ids? Is this ...
5 years, 7 months ago (2015-05-13 17:25:58 UTC) #5
Peter Beverloo
lgtm https://codereview.chromium.org/1141613003/diff/80001/chrome/browser/push_messaging/push_messaging_app_identifier.cc File chrome/browser/push_messaging/push_messaging_app_identifier.cc (left): https://codereview.chromium.org/1141613003/diff/80001/chrome/browser/push_messaging/push_messaging_app_identifier.cc#oldcode48 chrome/browser/push_messaging/push_messaging_app_identifier.cc:48: // Workaround crbug.com/461867 in GCM where it converts ...
5 years, 7 months ago (2015-05-14 11:26:29 UTC) #6
johnme
Addressed peter's nits - thanks :) https://codereview.chromium.org/1141613003/diff/80001/chrome/browser/push_messaging/push_messaging_app_identifier.cc File chrome/browser/push_messaging/push_messaging_app_identifier.cc (left): https://codereview.chromium.org/1141613003/diff/80001/chrome/browser/push_messaging/push_messaging_app_identifier.cc#oldcode48 chrome/browser/push_messaging/push_messaging_app_identifier.cc:48: // Workaround crbug.com/461867 ...
5 years, 7 months ago (2015-05-14 13:18:20 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1141613003/120001
5 years, 7 months ago (2015-05-14 14:07:43 UTC) #10
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 7 months ago (2015-05-14 15:04:09 UTC) #11
commit-bot: I haz the power
5 years, 7 months ago (2015-05-14 15:05:46 UTC) #12
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/14defc6866693aa3dfceed796cd94d788e9f3122
Cr-Commit-Position: refs/heads/master@{#329851}

Powered by Google App Engine
This is Rietveld 408576698