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

Issue 718203004: [PUSH] Merge notifications and push messaging prompts (Closed)

Created:
6 years, 1 month ago by Miguel Garcia
Modified:
6 years, 1 month ago
CC:
chromium-reviews, markusheintz_, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[PUSH] Merge notifications and push messaging prompts This first step does the following - Shortcut the prompt for push - Instead rely on the notification permission having been allowed. - Push#hasPermission now considers both permissions before emiting a reply. BUG=432930 Committed: https://crrev.com/114bfd9f1543c40e8fc1f94f90eb83d2e061c40f Cr-Commit-Position: refs/heads/master@{#304590}

Patch Set 1 #

Total comments: 49

Patch Set 2 : #

Total comments: 13

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Total comments: 16

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+330 lines, -55 lines) Patch
M chrome/browser/content_settings/permission_context_base.h View 1 2 chunks +14 lines, -15 lines 0 comments Download
M chrome/browser/content_settings/permission_context_base.cc View 1 7 chunks +25 lines, -38 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_browsertest.cc View 1 4 chunks +22 lines, -1 line 0 comments Download
M chrome/browser/services/gcm/push_messaging_permission_context.h View 1 2 3 4 5 2 chunks +20 lines, -0 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_permission_context.cc View 1 2 3 4 5 1 chunk +79 lines, -1 line 0 comments Download
A chrome/browser/services/gcm/push_messaging_permission_context_unittest.cc View 1 2 3 4 5 1 chunk +163 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/push_messaging/test.html View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (6 generated)
Miguel Garcia
Initial non Owners review
6 years, 1 month ago (2014-11-13 17:48:46 UTC) #2
Miguel Garcia
On 2014/11/13 17:48:46, Miguel Garcia wrote: > Initial non Owners review I am fixing the ...
6 years, 1 month ago (2014-11-13 17:49:35 UTC) #3
Miguel Garcia
On 2014/11/13 17:48:46, Miguel Garcia wrote: > Initial non Owners review I am fixing the ...
6 years, 1 month ago (2014-11-13 17:49:36 UTC) #4
Michael van Ouwerkerk
https://chromiumcodereview.appspot.com/718203004/diff/1/chrome/browser/services/gcm/push_messaging_browsertest.cc File chrome/browser/services/gcm/push_messaging_browsertest.cc (right): https://chromiumcodereview.appspot.com/718203004/diff/1/chrome/browser/services/gcm/push_messaging_browsertest.cc#newcode143 chrome/browser/services/gcm/push_messaging_browsertest.cc:143: std::string script_result; Nit: newline after this. https://chromiumcodereview.appspot.com/718203004/diff/1/chrome/browser/services/gcm/push_messaging_browsertest.cc#newcode145 chrome/browser/services/gcm/push_messaging_browsertest.cc:145: ASSERT_TRUE(RunScript("requestPermission();", ...
6 years, 1 month ago (2014-11-13 18:35:52 UTC) #5
johnme
Generally looks good. A few nits and questions. https://chromiumcodereview.appspot.com/718203004/diff/1/chrome/browser/services/gcm/push_messaging_browsertest.cc File chrome/browser/services/gcm/push_messaging_browsertest.cc (right): https://chromiumcodereview.appspot.com/718203004/diff/1/chrome/browser/services/gcm/push_messaging_browsertest.cc#newcode144 chrome/browser/services/gcm/push_messaging_browsertest.cc:144: InfoBarResponder ...
6 years, 1 month ago (2014-11-13 18:50:06 UTC) #6
Miguel Garcia
Thanks for the fast reviews! Adding OWNERS now https://codereview.chromium.org/718203004/diff/1/chrome/browser/services/gcm/push_messaging_browsertest.cc File chrome/browser/services/gcm/push_messaging_browsertest.cc (right): https://codereview.chromium.org/718203004/diff/1/chrome/browser/services/gcm/push_messaging_browsertest.cc#newcode143 chrome/browser/services/gcm/push_messaging_browsertest.cc:143: std::string ...
6 years, 1 month ago (2014-11-14 11:34:36 UTC) #7
Miguel Garcia
Hi! Would you mind doing an OWNERS review of this patch? bauerb: for content_settings fgorsky: ...
6 years, 1 month ago (2014-11-14 11:35:48 UTC) #9
Miguel Garcia
fgorski@chromium.org: Please review changes in
6 years, 1 month ago (2014-11-14 11:36:26 UTC) #11
Bernhard Bauer
https://codereview.chromium.org/718203004/diff/1/chrome/browser/services/gcm/push_messaging_permission_context.cc File chrome/browser/services/gcm/push_messaging_permission_context.cc (right): https://codereview.chromium.org/718203004/diff/1/chrome/browser/services/gcm/push_messaging_permission_context.cc#newcode71 chrome/browser/services/gcm/push_messaging_permission_context.cc:71: DLOG(WARNING) << "Notification permission has not been granted."; On ...
6 years, 1 month ago (2014-11-14 12:31:34 UTC) #12
Miguel Garcia
Thanks for the quick review Bernhard! https://chromiumcodereview.appspot.com/718203004/diff/1/chrome/browser/services/gcm/push_messaging_permission_context.cc File chrome/browser/services/gcm/push_messaging_permission_context.cc (right): https://chromiumcodereview.appspot.com/718203004/diff/1/chrome/browser/services/gcm/push_messaging_permission_context.cc#newcode71 chrome/browser/services/gcm/push_messaging_permission_context.cc:71: DLOG(WARNING) << "Notification ...
6 years, 1 month ago (2014-11-17 11:43:23 UTC) #15
Bernhard Bauer
https://chromiumcodereview.appspot.com/718203004/diff/1/chrome/browser/services/gcm/push_messaging_permission_context.cc File chrome/browser/services/gcm/push_messaging_permission_context.cc (right): https://chromiumcodereview.appspot.com/718203004/diff/1/chrome/browser/services/gcm/push_messaging_permission_context.cc#newcode71 chrome/browser/services/gcm/push_messaging_permission_context.cc:71: DLOG(WARNING) << "Notification permission has not been granted."; On ...
6 years, 1 month ago (2014-11-17 11:53:37 UTC) #16
Miguel Garcia
Moved LOG(INFO) to VLOG(1) which as you say removes the warning. On 2014/11/17 11:53:37, Bernhard ...
6 years, 1 month ago (2014-11-17 12:50:32 UTC) #17
Miguel Garcia
https://chromiumcodereview.appspot.com/718203004/diff/80001/chrome/browser/services/gcm/push_messaging_permission_context_unittest.cc File chrome/browser/services/gcm/push_messaging_permission_context_unittest.cc (right): https://chromiumcodereview.appspot.com/718203004/diff/80001/chrome/browser/services/gcm/push_messaging_permission_context_unittest.cc#newcode15 chrome/browser/services/gcm/push_messaging_permission_context_unittest.cc:15: const GURL kEmbedderUrl(kEmbedder); On 2014/11/17 11:53:37, Bernhard Bauer wrote: ...
6 years, 1 month ago (2014-11-17 12:50:43 UTC) #18
Bernhard Bauer
https://chromiumcodereview.appspot.com/718203004/diff/100001/chrome/browser/services/gcm/push_messaging_permission_context_unittest.cc File chrome/browser/services/gcm/push_messaging_permission_context_unittest.cc (right): https://chromiumcodereview.appspot.com/718203004/diff/100001/chrome/browser/services/gcm/push_messaging_permission_context_unittest.cc#newcode21 chrome/browser/services/gcm/push_messaging_permission_context_unittest.cc:21: static const GURL kEmbedderUrl; Remove this now that you ...
6 years, 1 month ago (2014-11-17 13:46:01 UTC) #19
Miguel Garcia
https://chromiumcodereview.appspot.com/718203004/diff/100001/chrome/browser/services/gcm/push_messaging_permission_context_unittest.cc File chrome/browser/services/gcm/push_messaging_permission_context_unittest.cc (right): https://chromiumcodereview.appspot.com/718203004/diff/100001/chrome/browser/services/gcm/push_messaging_permission_context_unittest.cc#newcode21 chrome/browser/services/gcm/push_messaging_permission_context_unittest.cc:21: static const GURL kEmbedderUrl; On 2014/11/17 13:46:01, Bernhard Bauer ...
6 years, 1 month ago (2014-11-17 14:26:44 UTC) #20
Bernhard Bauer
LGTM!
6 years, 1 month ago (2014-11-17 14:30:19 UTC) #21
Michael van Ouwerkerk
lgtm with nit https://chromiumcodereview.appspot.com/718203004/diff/120001/chrome/browser/services/gcm/push_messaging_permission_context.h File chrome/browser/services/gcm/push_messaging_permission_context.h (right): https://chromiumcodereview.appspot.com/718203004/diff/120001/chrome/browser/services/gcm/push_messaging_permission_context.h#newcode37 chrome/browser/services/gcm/push_messaging_permission_context.h:37: Profile* push_profile_; Can you not call ...
6 years, 1 month ago (2014-11-17 14:50:09 UTC) #22
fgorski
LGTM, provided the answer to persist thingy does not mean "ask me again later..." https://codereview.chromium.org/718203004/diff/120001/chrome/browser/services/gcm/push_messaging_permission_context.cc ...
6 years, 1 month ago (2014-11-17 18:24:07 UTC) #23
Miguel Garcia
Thanks for the review! https://codereview.chromium.org/718203004/diff/120001/chrome/browser/services/gcm/push_messaging_permission_context.cc File chrome/browser/services/gcm/push_messaging_permission_context.cc (right): https://codereview.chromium.org/718203004/diff/120001/chrome/browser/services/gcm/push_messaging_permission_context.cc#newcode12 chrome/browser/services/gcm/push_messaging_permission_context.cc:12: const ContentSettingsType kPushSettingType = On ...
6 years, 1 month ago (2014-11-18 10:47:30 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/718203004/140001
6 years, 1 month ago (2014-11-18 10:48:21 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:140001)
6 years, 1 month ago (2014-11-18 12:50:17 UTC) #27
commit-bot: I haz the power
6 years, 1 month ago (2014-11-18 12:51:02 UTC) #28
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/114bfd9f1543c40e8fc1f94f90eb83d2e061c40f
Cr-Commit-Position: refs/heads/master@{#304590}

Powered by Google App Engine
This is Rietveld 408576698