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

Issue 61323002: Fix broken threading model in CheckDesktopNotificationPermission (Closed)

Created:
7 years, 1 month ago by dewittj
Modified:
7 years, 1 month ago
Reviewers:
awong, Matt Perry
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, dcheng
Visibility:
Public.

Description

Fix broken threading model in CheckDesktopNotificationPermission Over time, this function (which is called on the IO thread) was updated to use DesktopNotificationService. While the methods in that service were enforced to run on the correct thread, it's not possible to get the notification service from the ProfileIOData safely. This removes the dependency on DesktopNotificationService from the IO-thread notification functions. BUG=256638 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=234886

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address nits and fix unit tests. #

Patch Set 3 : Rebase WebKit:: -> blink:: #

Patch Set 4 : Fix android build with an #ifdef ENABLE_NOTIFICATIONS #

Patch Set 5 : Rebase. #

Patch Set 6 : Even more merge conflicts.. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -148 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 1 chunk +29 lines, -23 lines 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_action_unittest.cc View 1 2 3 4 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry_unittest.cc View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_permissions_unittest.cc View 1 2 3 4 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_protocols_unittest.cc View 1 2 3 4 4 chunks +13 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_system.cc View 1 2 3 4 5 2 chunks +24 lines, -7 lines 0 comments Download
M chrome/browser/notifications/desktop_notification_service.h View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/notifications/desktop_notification_service.cc View 1 2 3 4 3 chunks +10 lines, -22 lines 0 comments Download
M chrome/browser/notifications/desktop_notification_service_unittest.cc View 1 2 1 chunk +0 lines, -37 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 4 5 4 chunks +0 lines, -13 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 chunks +0 lines, -22 lines 0 comments Download
M extensions/browser/info_map.h View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download
M extensions/browser/info_map.cc View 1 2 3 4 3 chunks +22 lines, -1 line 0 comments Download
M extensions/browser/info_map_unittest.cc View 1 2 3 4 5 4 chunks +19 lines, -7 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
dewittj
If you know anyone else that should review this, please suggest. I'm not terribly familiar ...
7 years, 1 month ago (2013-11-05 23:52:30 UTC) #1
Matt Perry
I think this makes sense. LGTM https://codereview.chromium.org/61323002/diff/1/chrome/browser/extensions/extension_info_map.h File chrome/browser/extensions/extension_info_map.h (right): https://codereview.chromium.org/61323002/diff/1/chrome/browser/extensions/extension_info_map.h#newcode92 chrome/browser/extensions/extension_info_map.h:92: bool GetNotificationsDisabledForExtension(const std::string& ...
7 years, 1 month ago (2013-11-06 00:57:18 UTC) #2
dewittj
Also added a test and updated existing unit tests with the new AddExtension signature. https://codereview.chromium.org/61323002/diff/1/chrome/browser/extensions/extension_info_map.h ...
7 years, 1 month ago (2013-11-06 19:20:36 UTC) #3
Matt Perry
lgtm
7 years, 1 month ago (2013-11-06 19:34:42 UTC) #4
awong
ProfileIOData lgtm
7 years, 1 month ago (2013-11-06 20:16:29 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/61323002/60001
7 years, 1 month ago (2013-11-08 00:40:39 UTC) #6
commit-bot: I haz the power
Failed to apply patch for chrome/browser/chrome_content_browser_client.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 1 month ago (2013-11-08 00:40:50 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/61323002/210001
7 years, 1 month ago (2013-11-08 18:50:43 UTC) #8
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 1 month ago (2013-11-08 19:27:44 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/61323002/590001
7 years, 1 month ago (2013-11-08 22:41:39 UTC) #10
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=99904
7 years, 1 month ago (2013-11-09 01:53:05 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/61323002/590001
7 years, 1 month ago (2013-11-11 17:08:44 UTC) #12
commit-bot: I haz the power
Failed to apply patch for chrome/browser/chrome_content_browser_client.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 1 month ago (2013-11-11 17:08:54 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/61323002/1100001
7 years, 1 month ago (2013-11-11 18:59:32 UTC) #14
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 1 month ago (2013-11-11 19:29:13 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/61323002/1370001
7 years, 1 month ago (2013-11-13 17:49:45 UTC) #16
commit-bot: I haz the power
7 years, 1 month ago (2013-11-13 20:23:34 UTC) #17
Message was sent while issue was closed.
Change committed as 234886

Powered by Google App Engine
This is Rietveld 408576698