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

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

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

Description

(reland) Move permission.mojom from WebKit/public/platform/ to components/ This reverts commit e1a1e4e8a79b1fcb518808a3dc9ea46cc5ef3954 with fix. Mojo permission interface is needed by other parts of Chromium, e.g. media. Hence move it to a more common place. BUG=604503 TBR=mlamouri@chromium.org,dcheng@chromium.org TEST=No functionality change. CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/f3b224aa8873e952b12a9d058155e2070a4c4305 Cr-Commit-Position: refs/heads/master@{#391441}

Patch Set 1 : Original PS #

Patch Set 2 : various deps fix #

Patch Set 3 : #

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

Messages

Total messages: 23 (12 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1942353002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1942353002/20001
4 years, 7 months ago (2016-05-03 19:33:27 UTC) #4
jam
lgtm
4 years, 7 months ago (2016-05-03 19:38:54 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/88786)
4 years, 7 months ago (2016-05-03 19:51:33 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1942353002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1942353002/40001
4 years, 7 months ago (2016-05-04 00:06:50 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/177192)
4 years, 7 months ago (2016-05-04 00:18:09 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1942353002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1942353002/40001
4 years, 7 months ago (2016-05-04 04:02:34 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-04 04:07:55 UTC) #18
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/f3b224aa8873e952b12a9d058155e2070a4c4305 Cr-Commit-Position: refs/heads/master@{#391441}
4 years, 7 months ago (2016-05-04 04:09:02 UTC) #20
Mathieu
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/1943963004/ by mathp@chromium.org. ...
4 years, 7 months ago (2016-05-04 15:20:17 UTC) #21
xhwang
jam/dcheng/mlamouri: I am not really familiar with gyp+mojo. Wondering if you see anything obvious? Thanks! ...
4 years, 7 months ago (2016-05-04 18:06:54 UTC) #22
jam
4 years, 7 months ago (2016-05-06 15:55:49 UTC) #23
Message was sent while issue was closed.
sorry just saw this comment. i had already replied on the reland cl to this. if
you have any more questions, please feel free to IM me.

On 2016/05/04 18:06:54, xhwang wrote:
> jam/dcheng/mlamouri: I am not really familiar with gyp+mojo. Wondering if you
> see anything obvious? Thanks!
> 
> The error is that when we build visitedlink_common we can't find
> components/permissions/permission_status.mojom.h. But visitedlink_common is
> depending on '../content/content.gyp:content_common', which depends on
> '../components/components.gyp:permissions_mojo_bindings'. So I don't really
> understand how this could happen.
> 
> Also, the bot start to fail on 17561:
>
https://build.chromium.org/p/chromium.chrome/builders/Google%20Chrome%20Chrom...
> 
> My CL is in the build from as early as 17538:
>
https://build.chromium.org/p/chromium.chrome/builders/Google%20Chrome%20Chrom...
> 
> But this may just be because some other targets were built before
> visitedlink_common which generated the mojom.h files already.
> 
> FAILED:
>
obj/components/visitedlink/common/visitedlink_common.visitedlink_message_generator.o
> 
> /b/build/slave/cache/cipd/goma/gomacc
> ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF
>
obj/components/visitedlink/common/visitedlink_common.visitedlink_message_generator.o.d
> -DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DGOOGLE_CHROME_BUILD
> -DCR_CLANG_REVISION=268373-1 -DENABLE_RLZ -DUI_COMPOSITOR_IMAGE_TRANSPORT
> -DUSE_AURA=1 -DUSE_ASH=1 -DUSE_PANGO=1 -DUSE_CAIRO=1
> -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DUSE_X11=1
> -DIMAGE_LOADER_EXTENSION=1 -DENABLE_WEBRTC=1 -DENABLE_MEDIA_ROUTER=1
> -DUSE_PROPRIETARY_CODECS -DENABLE_PEPPER_CDMS -DENABLE_NOTIFICATIONS
> -DENABLE_TOPCHROME_MD=1 -DENABLE_WAYLAND_SERVER=1 -DUSE_UDEV
> -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PDF=1
-DENABLE_PLUGINS=1
> -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1
> -DENABLE_PROD_WALLET_SERVICE=1 -DENABLE_PRINTING=1 -DENABLE_PRINT_PREVIEW=1
> -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1
> -DENABLE_SUPERVISED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1
> -DENABLE_HANGOUT_SERVICES_EXTENSION=1 -DV8_USE_EXTERNAL_STARTUP_DATA
> -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL
> -DMOJO_USE_SYSTEM_IMPL -DUSE_LIBPCI=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1
> -DOS_CHROMEOS=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG
> -DNO_UNWIND_TABLES -DOFFICIAL_BUILD -DNVALGRIND
-DDYNAMIC_ANNOTATIONS_ENABLED=0
> -D_FORTIFY_SOURCE=2 -Igen -I../../third_party/khronos -I../../gpu -I../..
> -I../../skia/config -Igen/angle -I../../third_party/WebKit/Source
> -I../../third_party/WebKit -Igen/third_party/WebKit -Werror -pthread
> -fno-strict-aliasing -Wall -Wextra -Wno-unused-parameter
> -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC
> -Wno-reserved-user-defined-literal -Xclang -load -Xclang
>
/b/build/slave/google-chrome-rel-chromeos/build/src/third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so
> -Xclang -add-plugin -Xclang find-bad-constructs -Xclang
> -plugin-arg-find-bad-constructs -Xclang check-templates -Xclang
> -plugin-arg-find-bad-constructs -Xclang follow-macro-expansion -Xclang
> -plugin-arg-find-bad-constructs -Xclang check-implicit-copy-ctors -Xclang
> -plugin-arg-find-bad-constructs -Xclang check-ipc -fcolor-diagnostics -g
>
-B/b/build/slave/google-chrome-rel-chromeos/build/src/third_party/binutils/Linux_x64/Release/bin
> -Wheader-hygiene -Wno-char-subscripts -Wno-unneeded-internal-declaration
> -Wno-covered-switch-default -Wstring-conversion -Wno-c++11-narrowing
> -Wno-deprecated-register -Wno-inconsistent-missing-override
> -Wno-shift-negative-value -Wno-undefined-var-template -pthread
> -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -m64
> -march=x86-64 -O2 -fno-ident -fdata-sections -ffunction-sections
> -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-exceptions -fno-rtti
> -fno-threadsafe-statics -fvisibility-inlines-hidden -std=gnu++11  -c
> ../../components/visitedlink/common/visitedlink_message_generator.cc -o
>
obj/components/visitedlink/common/visitedlink_common.visitedlink_message_generator.o
> In file included from
> ../../components/visitedlink/common/visitedlink_message_generator.cc:7:
> In file included from
> ../../components/visitedlink/common/visitedlink_message_generator.h:7:
> In file included from
> ../../components/visitedlink/common/visitedlink_messages.h:12:
> ../../content/public/common/common_param_traits_macros.h:12:10: fatal error:
> 'components/permissions/permission_status.mojom.h' file not found
> #include "components/permissions/permission_status.mojom.h"
>          ^
> 1 error generated.

Powered by Google App Engine
This is Rietveld 408576698