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

Issue 13533019: Disables HTML notifications when rich notifications are enabled. (Closed)

Created:
7 years, 8 months ago by dewittj
Modified:
7 years, 8 months ago
Reviewers:
miket_OOO, brettw, dewittj1
CC:
chromium-reviews, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, jam, chromium-apps-reviews_chromium.org, Dmitry Titov, Jói
Visibility:
Public.

Description

Disables HTML notifications when rich notifications are enabled. This works by adding a new flag to the content layer: kDisableHTMLNotifications, which causes Chrome not to expose the webkitNotifications.createHTMLNotification function to JS contexts. Chrome appends this switch to new renderer processes when appropriate in ChromeContentBrowserClient. BUG=225918 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193005

Patch Set 1 #

Patch Set 2 : Remove HTML notifications test from ChromeOS builds. #

Total comments: 1

Patch Set 3 : Indentation in test fixed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -16 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/extensions/notifications_apitest.cc View 1 2 2 chunks +45 lines, -7 lines 0 comments Download
M chrome/renderer/chrome_render_view_observer.cc View 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/notifications/no_html/background.js View 1 chunk +20 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/notifications/no_html/manifest.json View 1 chunk +9 lines, -9 lines 0 comments Download
M content/public/common/content_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
dewittj
PTAL, this removes the webkitNotifications.createHTMLNotification function when new "Rich" notifications are enabled.
7 years, 8 months ago (2013-04-05 20:31:17 UTC) #1
miket_OOO
lgtm https://codereview.chromium.org/13533019/diff/2003/chrome/browser/extensions/notifications_apitest.cc File chrome/browser/extensions/notifications_apitest.cc (right): https://codereview.chromium.org/13533019/diff/2003/chrome/browser/extensions/notifications_apitest.cc#newcode22 chrome/browser/extensions/notifications_apitest.cc:22: message_center::switches::kEnableRichNotifications); I think this should be a 4-space ...
7 years, 8 months ago (2013-04-08 21:48:54 UTC) #2
dewittj1
brettw, PTAL at: chrome/renderer/chrome_render_view_observer.cc content/public/common/content_switches.{h,cc} or let me know if you'd prefer joi@ to look ...
7 years, 8 months ago (2013-04-08 22:29:03 UTC) #3
brettw
lgtm
7 years, 8 months ago (2013-04-08 23:03:24 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/13533019/13002
7 years, 8 months ago (2013-04-08 23:32:40 UTC) #5
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=100697
7 years, 8 months ago (2013-04-09 00:36:27 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/13533019/13002
7 years, 8 months ago (2013-04-09 00:39:34 UTC) #7
commit-bot: I haz the power
Change committed as 193005
7 years, 8 months ago (2013-04-09 04:37:21 UTC) #8
PhistucK
Please, make sure you inform all extension developers about not supporting HTML notifications anymore, specifically ...
7 years, 8 months ago (2013-04-09 09:44:39 UTC) #9
dewittj
7 years, 8 months ago (2013-04-11 05:50:32 UTC) #10
Message was sent while issue was closed.
On 2013/04/09 09:44:39, PhistucK wrote:
> Please, make sure you inform all extension developers about not supporting
HTML
> notifications anymore, specifically extension authors that already use it
within
> the Chrome Web Store.

We are readying communications to that effect.  Thanks for the reminder.

Powered by Google App Engine
This is Rietveld 408576698