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

Issue 1921553003: Move permission.mojom from WebKit/public/platform/ to components/ (Closed)

Created:
4 years, 8 months ago by xhwang
Modified:
4 years, 7 months ago
CC:
Aaron Boodman, abarth-chromium, anandc+watch-blimp_chromium.org, android-webview-reviews_chromium.org, ben+mojo_chromium.org, blink-reviews, blink-reviews-api_chromium.org, chasej+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, dglazkov+blink, dtrainor+watch-blimp_chromium.org, eme-reviews_chromium.org, esprehn, feature-media-reviews_chromium.org, halliwell+watch_chromium.org, haraken, harkness+watch_chromium.org, iclelland+watch_chromium.org, jessicag+watch-blimp_chromium.org, jkarlin+watch_chromium.org, jochen+watch_chromium.org, johnme+watch_chromium.org, kmarshall+watch-blimp_chromium.org, lcwu+watch_chromium.org, maniscalco+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, mcasas+watch+vc_chromium.org, mkwst+moarreviews-renderer_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri (slow - plz ping), mlamouri+watch-test-runner_chromium.org, mlamouri+watch-notifications_chromium.org, mlamouri+watch-blink_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-geolocation_chromium.org, mlamouri+watch-permissions_chromium.org, mvanouwerkerk+watch_chromium.org, Michael van Ouwerkerk, nasko+codewatch_chromium.org, nyquist+watch-blimp_chromium.org, Peter Beverloo, posciak+watch_chromium.org, qsr+mojo_chromium.org, Ken Rockot(use gerrit already), Sam McNally, sriramsr+watch-blimp_chromium.org, toyoshim+midi_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, yzshen1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move permission.mojom from WebKit/public/platform/ to components/ Mojo permission interface is needed by other parts of Chromium, e.g. media. Hence move it to a more common place. BUG=604503 TEST=No functionality change. CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/1b751521d3f027742f8f2b95fc814820977fc7a4 Cr-Commit-Position: refs/heads/master@{#391185}

Patch Set 1 #

Total comments: 1

Patch Set 2 : More fixes. Now GN builds. #

Patch Set 3 : More fixes #

Patch Set 4 : rebase only #

Patch Set 5 : gn check fix #

Total comments: 15

Patch Set 6 : comments addressed #

Patch Set 7 : rebase only #

Patch Set 8 : fix gn check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+448 lines, -410 lines) Patch
M android_webview/browser/aw_permission_manager.h View 1 3 chunks +9 lines, -8 lines 0 comments Download
M android_webview/browser/aw_permission_manager.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M blimp/engine/app/blimp_permission_manager.h View 1 2 chunks +7 lines, -7 lines 0 comments Download
M blimp/engine/app/blimp_permission_manager.cc View 1 4 chunks +14 lines, -12 lines 0 comments Download
M chrome/browser/DEPS View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/attestation/platform_verification_flow.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/guest_view/web_view/chrome_web_view_permission_helper_delegate.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/guest_view/web_view/chrome_web_view_permission_helper_delegate.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/notifications/notification_permission_context_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.cc View 1 2 3 6 chunks +12 lines, -12 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_interactive_uitest.cc View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_unittest.cc View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/permissions/permission_manager.h View 1 2 3 4 5 6 3 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/permissions/permission_manager.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/permissions/permission_manager_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/permissions/permission_uma_util.cc View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_permission_context.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_permission_context.cc View 1 3 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_permission_context_unittest.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_service_impl.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_service_impl.cc View 1 2 chunks +6 lines, -6 lines 0 comments Download
M chromecast/browser/cast_permission_manager.h View 1 2 chunks +7 lines, -7 lines 0 comments Download
M chromecast/browser/cast_permission_manager.cc View 1 4 chunks +11 lines, -9 lines 0 comments Download
M components/OWNERS View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M components/components.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A components/permissions.gypi View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
A components/permissions/BUILD.gn View 1 1 chunk +12 lines, -0 lines 0 comments Download
A components/permissions/OWNERS View 1 1 chunk +15 lines, -0 lines 0 comments Download
A + components/permissions/permission.mojom View 1 1 chunk +2 lines, -2 lines 0 comments Download
A + components/permissions/permission_status.mojom View 1 1 chunk +1 line, -1 line 0 comments Download
M content/DEPS View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/DEPS View 1 2 3 4 5 6 2 chunks +2 lines, -4 lines 0 comments Download
M content/browser/background_sync/background_sync_manager.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/background_sync/background_sync_manager.cc View 1 3 chunks +6 lines, -6 lines 0 comments Download
M content/browser/background_sync/background_sync_manager_unittest.cc View 1 5 chunks +4 lines, -4 lines 0 comments Download
M content/browser/background_sync/background_sync_service_impl_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/media/cdm/browser_cdm_manager.h View 1 2 chunks +1 line, -1 line 0 comments Download
M content/browser/media/cdm/browser_cdm_manager.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/notifications/notification_message_filter.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/notifications/notification_message_filter.cc View 1 7 chunks +8 lines, -8 lines 0 comments Download
M content/browser/permissions/permission_service_context.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/permissions/permission_service_context.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/permissions/permission_service_impl.h View 1 4 chunks +22 lines, -21 lines 0 comments Download
M content/browser/permissions/permission_service_impl.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/push_messaging/push_messaging_message_filter.cc View 1 2 chunks +5 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/child/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/child/notifications/notification_manager.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/child/notifications/notification_manager.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M content/child/permissions/permission_dispatcher.h View 1 4 chunks +12 lines, -11 lines 0 comments Download
M content/child/permissions/permission_dispatcher.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M content/common/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/common/DEPS View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M content/common/platform_notification_messages.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/permission_manager.h View 1 5 chunks +9 lines, -6 lines 0 comments Download
M content/public/browser/platform_notification_service.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M content/public/common/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/common_param_traits_macros.h View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/geolocation_dispatcher.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/geolocation_dispatcher.cc View 1 3 chunks +5 lines, -5 lines 0 comments Download
M content/renderer/media/media_permission_dispatcher.h View 1 3 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/media/media_permission_dispatcher.cc View 1 3 chunks +9 lines, -7 lines 0 comments Download
M content/renderer/media/midi_dispatcher.h View 1 3 chunks +4 lines, -3 lines 0 comments Download
M content/renderer/media/midi_dispatcher.cc View 1 2 chunks +8 lines, -6 lines 0 comments Download
M content/renderer/notification_permission_dispatcher.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/notification_permission_dispatcher.cc View 1 3 chunks +4 lines, -3 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/shell/browser/layout_test/layout_test_message_filter.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_message_filter.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/shell/browser/layout_test/layout_test_notification_manager.h View 1 3 chunks +4 lines, -4 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_notification_manager.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_permission_manager.h View 1 3 chunks +10 lines, -10 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_permission_manager.cc View 1 9 chunks +17 lines, -15 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_push_messaging_service.cc View 1 1 chunk +4 lines, -4 lines 0 comments Download
M content/shell/browser/shell_permission_manager.h View 1 2 chunks +7 lines, -7 lines 0 comments Download
M content/shell/browser/shell_permission_manager.cc View 1 4 chunks +18 lines, -16 lines 0 comments Download
M content/shell/common/layout_test/layout_test_messages.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/shell/renderer/layout_test/blink_test_runner.cc View 1 2 3 1 chunk +5 lines, -5 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M content/test/mock_permission_manager.h View 1 2 chunks +11 lines, -10 lines 0 comments Download
M content/test/mock_permission_manager.cc View 1 4 chunks +7 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/Notification.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/Notification.cpp View 1 3 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/NotificationPermissionClientImpl.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/public/blink.gyp View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/modules/notifications/WebNotificationManager.h View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
D third_party/WebKit/public/platform/modules/permissions/permission.mojom View 1 chunk +0 lines, -43 lines 0 comments Download
D third_party/WebKit/public/platform/modules/permissions/permission_status.mojom View 1 chunk +0 lines, -12 lines 0 comments Download
A third_party/WebKit/public/web/modules/notifications/DEPS View 1 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/modules/notifications/WebNotificationPermissionCallback.h View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 40 (12 generated)
xhwang
Please see CL description and bug for details. This CL is not complete. Currently content/{browser|renderer|common} ...
4 years, 8 months ago (2016-04-25 21:30:25 UTC) #3
haraken
+esprehn +rockot +yzshen (about where we should put the mojom files)
4 years, 8 months ago (2016-04-26 08:01:33 UTC) #5
Ken Rockot(use gerrit already)
On 2016/04/26 at 08:01:33, haraken wrote: > +esprehn +rockot +yzshen (about where we should put ...
4 years, 8 months ago (2016-04-26 16:06:35 UTC) #6
jam
On 2016/04/26 16:06:35, Ken Rockot wrote: > On 2016/04/26 at 08:01:33, haraken wrote: > > ...
4 years, 8 months ago (2016-04-26 16:31:43 UTC) #7
yzshen1
On 2016/04/26 16:31:43, jam wrote: > On 2016/04/26 16:06:35, Ken Rockot wrote: > > On ...
4 years, 8 months ago (2016-04-26 16:57:11 UTC) #8
xhwang
On 2016/04/26 16:57:11, yzshen1 wrote: > On 2016/04/26 16:31:43, jam wrote: > > On 2016/04/26 ...
4 years, 7 months ago (2016-04-26 23:33:04 UTC) #9
mlamouri (slow - plz ping)
Looks generally fine. I have one question though. Should we call the components "permissions" given ...
4 years, 7 months ago (2016-04-27 13:00:58 UTC) #10
xhwang
On 2016/04/26 23:33:04, xhwang wrote: > On 2016/04/26 16:57:11, yzshen1 wrote: > > On 2016/04/26 ...
4 years, 7 months ago (2016-04-27 21:04:29 UTC) #11
xhwang
On 2016/04/27 13:00:58, Mounir Lamouri wrote: > Looks generally fine. I have one question though. ...
4 years, 7 months ago (2016-04-27 21:06:43 UTC) #12
xhwang
rebase only
4 years, 7 months ago (2016-04-28 22:25:36 UTC) #13
xhwang
It seems now I have too many reviewers on this CL. I'll move everybody to ...
4 years, 7 months ago (2016-04-29 00:18:36 UTC) #14
xhwang
jam@chromium.org: Please do a general review. mlamouri@chromium.org: Please review changes as permission owners. dcheng@chromium.org: Please ...
4 years, 7 months ago (2016-04-29 00:22:05 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921553003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921553003/80001
4 years, 7 months ago (2016-04-29 04:29:24 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-29 06:03:35 UTC) #22
mlamouri (slow - plz ping)
Assuming there was no other change than s/permission/permissions/ since the previous version, lgtm.
4 years, 7 months ago (2016-04-29 12:43:26 UTC) #23
xhwang
jam / dcheng: kindly ping!
4 years, 7 months ago (2016-05-02 18:25:18 UTC) #24
dcheng
Mostly just skimmed. RS LGTM for *.mojom changes (since it looks like it's just a ...
4 years, 7 months ago (2016-05-02 18:28:53 UTC) #25
xhwang
https://codereview.chromium.org/1921553003/diff/80001/content/renderer/media/media_permission_dispatcher.cc File content/renderer/media/media_permission_dispatcher.cc (right): https://codereview.chromium.org/1921553003/diff/80001/content/renderer/media/media_permission_dispatcher.cc#newcode130 content/renderer/media/media_permission_dispatcher.cc:130: permissions::mojom::PermissionStatus::GRANTED); On 2016/05/02 18:28:53, dcheng wrote: > Huh, is ...
4 years, 7 months ago (2016-05-02 18:35:31 UTC) #26
dcheng
https://codereview.chromium.org/1921553003/diff/80001/content/renderer/media/media_permission_dispatcher.cc File content/renderer/media/media_permission_dispatcher.cc (right): https://codereview.chromium.org/1921553003/diff/80001/content/renderer/media/media_permission_dispatcher.cc#newcode130 content/renderer/media/media_permission_dispatcher.cc:130: permissions::mojom::PermissionStatus::GRANTED); On 2016/05/02 at 18:35:31, xhwang wrote: > On ...
4 years, 7 months ago (2016-05-02 21:30:46 UTC) #27
jam
On 2016/04/27 21:04:29, xhwang wrote: > On 2016/04/26 23:33:04, xhwang wrote: > > On 2016/04/26 ...
4 years, 7 months ago (2016-05-02 23:54:12 UTC) #28
jam
lgtm https://codereview.chromium.org/1921553003/diff/80001/chrome/browser/DEPS File chrome/browser/DEPS (right): https://codereview.chromium.org/1921553003/diff/80001/chrome/browser/DEPS#newcode103 chrome/browser/DEPS:103: "+components/permissions/permission_status.mojom.h", not needed since there's a +components at ...
4 years, 7 months ago (2016-05-03 03:32:46 UTC) #29
xhwang
comments addressed
4 years, 7 months ago (2016-05-03 04:49:24 UTC) #30
xhwang
rebase only
4 years, 7 months ago (2016-05-03 04:53:32 UTC) #31
xhwang
https://chromiumcodereview.appspot.com/1921553003/diff/80001/chrome/browser/DEPS File chrome/browser/DEPS (right): https://chromiumcodereview.appspot.com/1921553003/diff/80001/chrome/browser/DEPS#newcode103 chrome/browser/DEPS:103: "+components/permissions/permission_status.mojom.h", On 2016/05/03 03:32:46, jam wrote: > not needed ...
4 years, 7 months ago (2016-05-03 05:04:12 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921553003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921553003/140001
4 years, 7 months ago (2016-05-03 05:51:00 UTC) #35
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 7 months ago (2016-05-03 08:17:24 UTC) #37
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/1b751521d3f027742f8f2b95fc814820977fc7a4 Cr-Commit-Position: refs/heads/master@{#391185}
4 years, 7 months ago (2016-05-03 08:18:58 UTC) #39
henrika (OOO until Aug 14)
4 years, 7 months ago (2016-05-03 09:18:42 UTC) #40
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/1940223002/ by henrika@chromium.org.

The reason for reverting is: Breaks Chrome building:

https://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%....

Powered by Google App Engine
This is Rietveld 408576698