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

Issue 1383001: Hook up extension apps notification permission, take two (Closed)

Created:
10 years, 9 months ago by rafaelw
Modified:
9 years, 7 months ago
Reviewers:
dumi, Aaron Boodman
CC:
chromium-reviews, jam+cc_chromium.org, ben+cc_chromium.org, Erik does not do reviews, pam+watch_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org, Aaron Boodman
Visibility:
Public.

Description

Hook up extension apps notification permission, take two This is the chromium side of a change which will wait to land on the webkit side landing. (https://bugs.webkit.org/show_bug.cgi?id=36625) It changes the NotificationPresenter to pass the sourceURL, rather than the SecurityOrigin in checking permission. The full URL is required to match the app extent. BUG=32361, 31024 TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=43162

Patch Set 1 #

Total comments: 2

Patch Set 2 : cr changes #

Total comments: 6

Patch Set 3 : more cr changes #

Patch Set 4 : clean up comments #

Total comments: 2

Patch Set 5 : still more cr changes #

Patch Set 6 : one...last...change #

Patch Set 7 : fix tests #

Patch Set 8 : pre commit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -109 lines) Patch
M chrome/browser/extensions/extensions_service.cc View 1 2 3 4 5 6 7 3 chunks +20 lines, -30 lines 0 comments Download
M chrome/browser/net/chrome_url_request_context.h View 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/net/chrome_url_request_context.cc View 1 2 3 4 5 2 chunks +18 lines, -22 lines 0 comments Download
M chrome/browser/notifications/desktop_notification_service.h View 3 chunks +1 line, -9 lines 0 comments Download
M chrome/browser/notifications/desktop_notification_service.cc View 2 chunks +0 lines, -31 lines 0 comments Download
M chrome/browser/profile.h View 2 3 4 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/profile.cc View 2 3 4 2 chunks +60 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/resource_message_filter.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/resource_message_filter.cc View 1 2 3 4 5 6 1 chunk +13 lines, -5 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M chrome/renderer/notification_provider.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/notification_provider.cc View 1 chunk +1 line, -2 lines 0 comments Download
M webkit/database/database_tracker.h View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/database/database_tracker.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
rafaelw
10 years, 9 months ago (2010-03-25 23:23:36 UTC) #1
Aaron Boodman
http://codereview.chromium.org/1383001/diff/1/3 File chrome/browser/net/chrome_url_request_context.cc (right): http://codereview.chromium.org/1383001/diff/1/3#newcode749 chrome/browser/net/chrome_url_request_context.cc:749: bool ChromeURLRequestContext::CheckURLAccessToExtensionPermission( The way permission checking for chrome-extension:// URLs ...
10 years, 9 months ago (2010-03-26 00:29:30 UTC) #2
rafaelw
(no new snapshot yet). http://codereview.chromium.org/1383001/diff/1/3 File chrome/browser/net/chrome_url_request_context.cc (right): http://codereview.chromium.org/1383001/diff/1/3#newcode749 chrome/browser/net/chrome_url_request_context.cc:749: bool ChromeURLRequestContext::CheckURLAccessToExtensionPermission( Ok, so I ...
10 years, 9 months ago (2010-03-29 04:44:45 UTC) #3
Aaron Boodman
On Sun, Mar 28, 2010 at 9:44 PM, <rafaelw@chromium.org> wrote: > (no new snapshot yet). ...
10 years, 9 months ago (2010-03-29 05:04:04 UTC) #4
rafaelw
Ok. Done. New snapshot for review.
10 years, 8 months ago (2010-03-29 22:31:37 UTC) #5
Aaron Boodman
Nice. http://codereview.chromium.org/1383001/diff/7001/8001 File chrome/browser/extensions/extensions_service.cc (right): http://codereview.chromium.org/1383001/diff/7001/8001#newcode583 chrome/browser/extensions/extensions_service.cc:583: if (profile_ && !profile_->IsOffTheRecord()) I don't think the ...
10 years, 8 months ago (2010-03-29 22:50:48 UTC) #6
dumi
the changes to database_tracker LGTM. thanks for taking the time to understand this code and ...
10 years, 8 months ago (2010-03-30 00:29:48 UTC) #7
Aaron Boodman
http://codereview.chromium.org/1383001/diff/24001/25001 File chrome/browser/extensions/extensions_service.cc (right): http://codereview.chromium.org/1383001/diff/24001/25001#newcode586 chrome/browser/extensions/extensions_service.cc:586: profile_->UpdateExtensionLoadedInRequestContexts(extension); Sorry for naming nitpickery, but how about: profile_->UpdateRequestContexts(). ...
10 years, 8 months ago (2010-03-30 00:51:54 UTC) #8
rafaelw
10 years, 8 months ago (2010-03-30 01:36:18 UTC) #9
Aaron Boodman
10 years, 8 months ago (2010-03-30 03:30:48 UTC) #10
perfect!

lgtm

Powered by Google App Engine
This is Rietveld 408576698