|
|
Chromium Code Reviews|
Created:
4 years ago by Jia Modified:
3 years, 10 months ago CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), darin-cc_chromium.org, einbinder+watch-test-runner_chromium.org, jochen+watch_chromium.org, mlamouri+watch-test-runner_chromium.org, mlamouri+watch-content_chromium.org, Peter Beverloo, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionReplace IPC messages in layout_test_render_frame_observer.
Also remove some forward declarations that are becoming useless.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation
BUG=577685
Review-Url: https://codereview.chromium.org/2594913002
Cr-Original-Commit-Position: refs/heads/master@{#446952}
Committed: https://chromium.googlesource.com/chromium/src/+/165c6d9ac3870f1c12553eff57ea52b1c67a1fa1
Review-Url: https://codereview.chromium.org/2594913002
Cr-Commit-Position: refs/heads/master@{#448846}
Committed: https://chromium.googlesource.com/chromium/src/+/d518643748bffd4d67c504a5181489ab75b89a1d
Patch Set 1 #Patch Set 2 : Set up a new traits file to reduce file header dependencies. #Patch Set 3 : Remove mojo::GetProxy as it doesn't exist any more. #Patch Set 4 : Add new interface to json. Also fix a dep issue. #Patch Set 5 : Change to Associated Interface #Patch Set 6 : Add deps #Patch Set 7 : Fix some dep issue #Patch Set 8 : Merge branch 'master' of https://chromium.googlesource.com/chromium/src into mojo_starter #Patch Set 9 : Remove binding.close #Patch Set 10 : Clean up map #
Total comments: 21
Patch Set 11 : Change following review #Patch Set 12 : Change following review #Patch Set 13 : Change following review #
Total comments: 2
Patch Set 14 : Formatted files #
Total comments: 3
Patch Set 15 : Change following review #Patch Set 16 : Replace ShellTestConfiguration with mojo construct #
Total comments: 2
Patch Set 17 : Replace const ref by value #
Total comments: 2
Patch Set 18 : Add mojo connection error handler #
Total comments: 4
Patch Set 19 : Removed log info #Patch Set 20 : Removed a redundant line #Messages
Total messages: 155 (118 generated)
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm6...) android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_comp...) cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_a...) linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...) cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linu...) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
The CQ bit was unchecked by jiameng@chromium.org
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_comp...)
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...)
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linu...) linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm6...) android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clan...) android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_comp...) android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_...) cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linu...) linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm6...) android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clan...) android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_comp...) android_cronet on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_cron...) android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_...) cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_a...) linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm6...) android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clan...) android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_comp...) android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_...) cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_a...) linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm6...) android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clan...) android_cronet on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_cron...) android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_...) cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_a...)
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== Replace IPC messages in layout_test_render_frame_observer. Also remove some forward declarations that are becoming useless. BUG=577685 ========== to ========== Replace IPC messages in layout_test_render_frame_observer. Also remove some forward declarations that are becoming useless. BUG=577685 ==========
jiameng@chromium.org changed reviewers: + sammc@chromium.org, tibell@chromium.org
Hi Sam, Johan, Here is my cl, please review when you have time. Thanks! Jia
Thanks for migrating this! Just some small comments. https://codereview.chromium.org/2594913002/diff/180001/content/shell/browser/... File content/shell/browser/layout_test/blink_test_controller.h (right): https://codereview.chromium.org/2594913002/diff/180001/content/shell/browser/... content/shell/browser/layout_test/blink_test_controller.h:219: const mojom::ShellViewAssociatedPtr& GetShellViewPtr(RenderFrameHost* frame); This could probably return a mojom::ShellView* instead (just call get() on the AssociatedPtr). Won't change anything on the caller side, but hides some implementation details. https://codereview.chromium.org/2594913002/diff/180001/content/shell/common/s... File content/shell/common/shell.mojom (right): https://codereview.chromium.org/2594913002/diff/180001/content/shell/common/s... content/shell/common/shell.mojom:11: LayoutDumpRequest(); Could you copy over the comments from the messages.h file here as documentation? https://codereview.chromium.org/2594913002/diff/180001/content/shell/common/s... File content/shell/common/shell_param_traits.h (right): https://codereview.chromium.org/2594913002/diff/180001/content/shell/common/s... content/shell/common/shell_param_traits.h:12: IPC_STRUCT_TRAITS_MEMBER(current_working_directory) The IPC_STRUCT_TRAITS_MEMBER calls are usually indented 2 spaces. https://codereview.chromium.org/2594913002/diff/180001/content/shell/common/t... File content/shell/common/typemaps.gni (right): https://codereview.chromium.org/2594913002/diff/180001/content/shell/common/t... content/shell/common/typemaps.gni:1: # Copyright 2016 The Chromium Authors. All rights reserved. It's 2017, happy new year! :) https://codereview.chromium.org/2594913002/diff/180001/content/shell/renderer... File content/shell/renderer/layout_test/layout_test_render_frame_observer.cc (right): https://codereview.chromium.org/2594913002/diff/180001/content/shell/renderer... content/shell/renderer/layout_test/layout_test_render_frame_observer.cc:34: LayoutTestRenderFrameObserver::~LayoutTestRenderFrameObserver() {} Nit: I believe LayoutTestRenderFrameObserver::~LayoutTestRenderFrameObserver() = default; works.
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_comp...) linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2594913002/diff/180001/content/shell/browser/... File content/shell/browser/content_shell_renderer_manifest_overlay.json (right): https://codereview.chromium.org/2594913002/diff/180001/content/shell/browser/... content/shell/browser/content_shell_renderer_manifest_overlay.json:17: "requires": { I don't think this requires section is necessary. https://codereview.chromium.org/2594913002/diff/180001/content/shell/common/s... File content/shell/common/shell.mojom (right): https://codereview.chromium.org/2594913002/diff/180001/content/shell/common/s... content/shell/common/shell.mojom:10: interface ShellView { I think this should be named something like "LayoutTestControl". https://codereview.chromium.org/2594913002/diff/180001/content/shell/common/s... File content/shell/common/shell.typemap (right): https://codereview.chromium.org/2594913002/diff/180001/content/shell/common/s... content/shell/common/shell.typemap:9: "//content/public/common", This should be in public_deps instead. https://codereview.chromium.org/2594913002/diff/180001/content/shell/common/s... content/shell/common/shell.typemap:10: "//ipc:ipc", "//ipc" https://codereview.chromium.org/2594913002/diff/180001/content/shell/common/s... content/shell/common/shell.typemap:11: "//ui/gfx/ipc:ipc", "//ui/gfx/ipc"
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Thanks Johan, Sam! I've made the changes, PTAL. Thanks, Jia https://codereview.chromium.org/2594913002/diff/180001/content/shell/browser/... File content/shell/browser/content_shell_renderer_manifest_overlay.json (right): https://codereview.chromium.org/2594913002/diff/180001/content/shell/browser/... content/shell/browser/content_shell_renderer_manifest_overlay.json:17: "requires": { On 2017/01/19 05:41:35, Sam McNally wrote: > I don't think this requires section is necessary. Done.When would we need "requires" section? https://codereview.chromium.org/2594913002/diff/180001/content/shell/browser/... File content/shell/browser/layout_test/blink_test_controller.h (right): https://codereview.chromium.org/2594913002/diff/180001/content/shell/browser/... content/shell/browser/layout_test/blink_test_controller.h:219: const mojom::ShellViewAssociatedPtr& GetShellViewPtr(RenderFrameHost* frame); On 2017/01/19 00:29:54, tibell wrote: > This could probably return a mojom::ShellView* instead (just call get() on the > AssociatedPtr). Won't change anything on the caller side, but hides some > implementation details. Done. https://codereview.chromium.org/2594913002/diff/180001/content/shell/common/s... File content/shell/common/shell.mojom (right): https://codereview.chromium.org/2594913002/diff/180001/content/shell/common/s... content/shell/common/shell.mojom:10: interface ShellView { On 2017/01/19 05:41:35, Sam McNally wrote: > I think this should be named something like "LayoutTestControl". Done. https://codereview.chromium.org/2594913002/diff/180001/content/shell/common/s... content/shell/common/shell.mojom:11: LayoutDumpRequest(); On 2017/01/19 00:29:54, tibell wrote: > Could you copy over the comments from the messages.h file here as documentation? Done. https://codereview.chromium.org/2594913002/diff/180001/content/shell/common/s... File content/shell/common/shell.typemap (right): https://codereview.chromium.org/2594913002/diff/180001/content/shell/common/s... content/shell/common/shell.typemap:9: "//content/public/common", On 2017/01/19 05:41:35, Sam McNally wrote: > This should be in public_deps instead. Done. https://codereview.chromium.org/2594913002/diff/180001/content/shell/common/s... content/shell/common/shell.typemap:10: "//ipc:ipc", On 2017/01/19 05:41:35, Sam McNally wrote: > "//ipc" Done. https://codereview.chromium.org/2594913002/diff/180001/content/shell/common/s... content/shell/common/shell.typemap:11: "//ui/gfx/ipc:ipc", On 2017/01/19 05:41:35, Sam McNally wrote: > "//ui/gfx/ipc" Done. https://codereview.chromium.org/2594913002/diff/180001/content/shell/common/s... File content/shell/common/shell_param_traits.h (right): https://codereview.chromium.org/2594913002/diff/180001/content/shell/common/s... content/shell/common/shell_param_traits.h:12: IPC_STRUCT_TRAITS_MEMBER(current_working_directory) On 2017/01/19 00:29:54, tibell wrote: > The IPC_STRUCT_TRAITS_MEMBER calls are usually indented 2 spaces. Done. https://codereview.chromium.org/2594913002/diff/180001/content/shell/common/t... File content/shell/common/typemaps.gni (right): https://codereview.chromium.org/2594913002/diff/180001/content/shell/common/t... content/shell/common/typemaps.gni:1: # Copyright 2016 The Chromium Authors. All rights reserved. On 2017/01/19 00:29:54, tibell wrote: > It's 2017, happy new year! :) Done. I started this cl in 2016, wow, it's been over a year :) I've changed all other new files too. https://codereview.chromium.org/2594913002/diff/180001/content/shell/renderer... File content/shell/renderer/layout_test/layout_test_render_frame_observer.cc (right): https://codereview.chromium.org/2594913002/diff/180001/content/shell/renderer... content/shell/renderer/layout_test/layout_test_render_frame_observer.cc:34: LayoutTestRenderFrameObserver::~LayoutTestRenderFrameObserver() {} On 2017/01/19 00:29:54, tibell wrote: > Nit: I believe > > LayoutTestRenderFrameObserver::~LayoutTestRenderFrameObserver() = default; > > works. Done.
lgtm https://codereview.chromium.org/2594913002/diff/230001/content/shell/common/l... File content/shell/common/layout_test.mojom (right): https://codereview.chromium.org/2594913002/diff/230001/content/shell/common/l... content/shell/common/layout_test.mojom:11: // Asks a frame to dump its contents into a string and send them back over IPC. <80 chars You can try to run "git cl format" and see if it detects any other style issues (although I don't think it yet works on mojom files).
lgtm https://codereview.chromium.org/2594913002/diff/180001/content/shell/browser/... File content/shell/browser/content_shell_renderer_manifest_overlay.json (right): https://codereview.chromium.org/2594913002/diff/180001/content/shell/browser/... content/shell/browser/content_shell_renderer_manifest_overlay.json:17: "requires": { On 2017/01/20 01:52:14, Jia wrote: > On 2017/01/19 05:41:35, Sam McNally wrote: > > I don't think this requires section is necessary. > > Done.When would we need "requires" section? In this overlay, it would be necessary if the renderer needed to talk to another service, but only in layout tests. The base manifest.json file that this overlay over includes this part so it isn't necessary here.
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
jiameng@chromium.org changed reviewers: + mkwst@chromium.org
mkwst@chromium.org: Please review changes in https://codereview.chromium.org/2594913002/diff/230001/content/shell/common/l... File content/shell/common/layout_test.mojom (right): https://codereview.chromium.org/2594913002/diff/230001/content/shell/common/l... content/shell/common/layout_test.mojom:11: // Asks a frame to dump its contents into a string and send them back over IPC. On 2017/01/20 01:55:18, tibell wrote: > <80 chars > > You can try to run "git cl format" and see if it detects any other style issues > (although I don't think it yet works on mojom files). Done. It indeed doesn't work on mojoms yet, but I've run git-cl format to format other files, thanks!
jiameng@chromium.org changed reviewers: + jam@chromium.org
jam@chromium.org: Please review changes in
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
LGTM. https://codereview.chromium.org/2594913002/diff/250001/content/shell/browser/... File content/shell/browser/layout_test/blink_test_controller.cc (right): https://codereview.chromium.org/2594913002/diff/250001/content/shell/browser/... content/shell/browser/layout_test/blink_test_controller.cc:970: return layout_test_control_map_[frame].get(); Nit: Maybe DCHECK that we end up with a pointer? https://codereview.chromium.org/2594913002/diff/250001/content/shell/common/O... File content/shell/common/OWNERS (right): https://codereview.chromium.org/2594913002/diff/250001/content/shell/common/O... content/shell/common/OWNERS:8: per-file *_param_traits*.*=file://ipc/SECURITY_OWNERS Thanks for remembering to add these! I would have forgotten. :)
On 2017/01/20 02:57:15, Jia wrote: > mailto:jam@chromium.org: Please review changes in ?
On 2017/01/20 02:57:15, Jia wrote: > mailto:jam@chromium.org: Please review changes in ?
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Thanks for all the reviews! Jia https://codereview.chromium.org/2594913002/diff/250001/content/shell/browser/... File content/shell/browser/layout_test/blink_test_controller.cc (right): https://codereview.chromium.org/2594913002/diff/250001/content/shell/browser/... content/shell/browser/layout_test/blink_test_controller.cc:970: return layout_test_control_map_[frame].get(); On 2017/01/20 12:04:24, Mike West (sloooooow) wrote: > Nit: Maybe DCHECK that we end up with a pointer? Done.
On 2017/01/20 16:00:14, jam wrote: > On 2017/01/20 02:57:15, Jia wrote: > > mailto:jam@chromium.org: Please review changes in > > ? Would you please review "mojo/public/tools/bindings/chromium_bindings_configuration.gni"? Thanks! Jia
On 2017/01/23 02:54:50, Jia wrote: > On 2017/01/20 16:00:14, jam wrote: > > On 2017/01/20 02:57:15, Jia wrote: > > > mailto:jam@chromium.org: Please review changes in > > > > ? > > Would you please review > "mojo/public/tools/bindings/chromium_bindings_configuration.gni"? > Thanks! > Jia Why do we need a typemap for ShellTestConfig, instead of just converting it to a mojo structure and using that everywhere?
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
Patchset #17 (id:310001) has been deleted
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
On 2017/01/23 16:59:23, jam wrote: > On 2017/01/23 02:54:50, Jia wrote: > > On 2017/01/20 16:00:14, jam wrote: > > > On 2017/01/20 02:57:15, Jia wrote: > > > > mailto:jam@chromium.org: Please review changes in > > > > > > ? > > > > Would you please review > > "mojo/public/tools/bindings/chromium_bindings_configuration.gni"? > > Thanks! > > Jia > > Why do we need a typemap for ShellTestConfig, instead of just converting it to a > mojo structure and using that everywhere? Thanks, I've replaced the old struct by the new mojo struct. PTAL. Jia
Hi jam, Would you please review my cl? Thanks! Jia
On 2017/01/25 07:28:05, Jia wrote: > Hi jam, > > Would you please review my cl? > > Thanks! > Jia lgtm, sorry I missed the reply (feel free to IM me in the future)
https://codereview.chromium.org/2594913002/diff/290001/content/shell/renderer... File content/shell/renderer/layout_test/blink_test_runner.h (right): https://codereview.chromium.org/2594913002/diff/290001/content/shell/renderer... content/shell/renderer/layout_test/blink_test_runner.h:176: void OnSetTestConfiguration(const mojom::ShellTestConfigurationPtr& params); Pass these by value.
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Thanks jam, Sam. PTAL. Best regards, Jia https://codereview.chromium.org/2594913002/diff/290001/content/shell/renderer... File content/shell/renderer/layout_test/blink_test_runner.h (right): https://codereview.chromium.org/2594913002/diff/290001/content/shell/renderer... content/shell/renderer/layout_test/blink_test_runner.h:176: void OnSetTestConfiguration(const mojom::ShellTestConfigurationPtr& params); On 2017/01/26 23:24:08, Sam McNally wrote: > Pass these by value. Done. I used const ref to avoid Clone in some operations, but if it's better to avoid using pass-by-ref and if clone isn't too expensive (I guess it's inexpensive here), then I'll use pass-by-value.
lgtm https://codereview.chromium.org/2594913002/diff/330001/content/shell/renderer... File content/shell/renderer/layout_test/blink_test_runner.cc (right): https://codereview.chromium.org/2594913002/diff/330001/content/shell/renderer... content/shell/renderer/layout_test/blink_test_runner.cc:975: mojom::ShellTestConfigurationPtr local_params = params.Clone(); You only need to keep a local copy of params->initial_size, not all the params.
Thanks Sam! PTAL. Best regards, Jia https://codereview.chromium.org/2594913002/diff/330001/content/shell/renderer... File content/shell/renderer/layout_test/blink_test_runner.cc (right): https://codereview.chromium.org/2594913002/diff/330001/content/shell/renderer... content/shell/renderer/layout_test/blink_test_runner.cc:975: mojom::ShellTestConfigurationPtr local_params = params.Clone(); On 2017/01/29 23:22:14, Sam McNally wrote: > You only need to keep a local copy of params->initial_size, not all the params. Thanks Sam. As the clone op isn't expensive, I'd like to keep the local clone in case other params are used later.
lgtm
Thanks everyone. Please let me know if anyone has any other comment. If not, I'll submit the cl shortly. Best regards, Jia
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by jiameng@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from tibell@chromium.org, mkwst@chromium.org, jam@chromium.org Link to the patchset: https://codereview.chromium.org/2594913002/#ps330001 (title: "Replace const ref by value")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 330001, "attempt_start_ts": 1485740514060660,
"parent_rev": "a7f5cbbe7f704ea74d57b7413a7b10b7a1b68750", "commit_rev":
"165c6d9ac3870f1c12553eff57ea52b1c67a1fa1"}
Message was sent while issue was closed.
Description was changed from ========== Replace IPC messages in layout_test_render_frame_observer. Also remove some forward declarations that are becoming useless. BUG=577685 ========== to ========== Replace IPC messages in layout_test_render_frame_observer. Also remove some forward declarations that are becoming useless. BUG=577685 Review-Url: https://codereview.chromium.org/2594913002 Cr-Commit-Position: refs/heads/master@{#446952} Committed: https://chromium.googlesource.com/chromium/src/+/165c6d9ac3870f1c12553eff57ea... ==========
Message was sent while issue was closed.
Committed patchset #17 (id:330001) as https://chromium.googlesource.com/chromium/src/+/165c6d9ac3870f1c12553eff57ea...
Message was sent while issue was closed.
A revert of this CL (patchset #17 id:330001) has been created in https://codereview.chromium.org/2670573002/ by lukasza@chromium.org. The reason for reverting is: This CL breaks linux_site_isolation trybot required by the CQ for some CLs - let's try to revert. See https://crbug.com/687353 for more information..
Message was sent while issue was closed.
Description was changed from ========== Replace IPC messages in layout_test_render_frame_observer. Also remove some forward declarations that are becoming useless. BUG=577685 Review-Url: https://codereview.chromium.org/2594913002 Cr-Commit-Position: refs/heads/master@{#446952} Committed: https://chromium.googlesource.com/chromium/src/+/165c6d9ac3870f1c12553eff57ea... ========== to ========== Replace IPC messages in layout_test_render_frame_observer. Also remove some forward declarations that are becoming useless. BUG=577685 Review-Url: https://codereview.chromium.org/2594913002 Cr-Commit-Position: refs/heads/master@{#446952} Committed: https://chromium.googlesource.com/chromium/src/+/165c6d9ac3870f1c12553eff57ea... ==========
Description was changed from ========== Replace IPC messages in layout_test_render_frame_observer. Also remove some forward declarations that are becoming useless. BUG=577685 Review-Url: https://codereview.chromium.org/2594913002 Cr-Commit-Position: refs/heads/master@{#446952} Committed: https://chromium.googlesource.com/chromium/src/+/165c6d9ac3870f1c12553eff57ea... ========== to ========== Replace IPC messages in layout_test_render_frame_observer. Also remove some forward declarations that are becoming useless. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation BUG=577685 Review-Url: https://codereview.chromium.org/2594913002 Cr-Commit-Position: refs/heads/master@{#446952} Committed: https://chromium.googlesource.com/chromium/src/+/165c6d9ac3870f1c12553eff57ea... ==========
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
It appears test controller did not properly clean up constructs storing mojo pointers, and so closed pipes were reused in subsequent tests, which caused site_isolation test to fail randomly. I've put in a patch to handle closed pipe connections. Please review again. Thanks, Jia
lgtm https://codereview.chromium.org/2594913002/diff/350001/content/shell/browser/... File content/shell/browser/layout_test/blink_test_controller.cc (right): https://codereview.chromium.org/2594913002/diff/350001/content/shell/browser/... content/shell/browser/layout_test/blink_test_controller.cc:981: LOG(INFO) << "BlinkTestController::HandleLayoutTestControlError"; Remove
Done, thanks! Jia https://codereview.chromium.org/2594913002/diff/350001/content/shell/browser/... File content/shell/browser/layout_test/blink_test_controller.cc (right): https://codereview.chromium.org/2594913002/diff/350001/content/shell/browser/... content/shell/browser/layout_test/blink_test_controller.cc:981: LOG(INFO) << "BlinkTestController::HandleLayoutTestControlError"; On 2017/02/07 00:50:50, tibell wrote: > Remove Done.
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
lgtm
jiameng@chromium.org changed reviewers: + lukasza@chromium.org
Hi Lukasz, I've put in a patch to resolve the site isolation issue. Please review. Thanks! Jia
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
LGTM (with a small nit below). Thank you for fixing the OOPIF support. Also - thanks for starting to migrate layout tests to mojo. https://codereview.chromium.org/2594913002/diff/350001/content/shell/browser/... File content/shell/browser/layout_test/blink_test_controller.cc (right): https://codereview.chromium.org/2594913002/diff/350001/content/shell/browser/... content/shell/browser/layout_test/blink_test_controller.cc:612: params->enable_pixel_dumping = true; nit: The line above can be removed - we always set the same field a few lines below, right?
The CQ bit was checked by jiameng@chromium.org to run a CQ dry run
On 2017/02/07 17:36:31, Łukasz Anforowicz wrote: > LGTM (with a small nit below). Thank you for fixing the OOPIF support. Also - > thanks for starting to migrate layout tests to mojo. > > https://codereview.chromium.org/2594913002/diff/350001/content/shell/browser/... > File content/shell/browser/layout_test/blink_test_controller.cc (right): > > https://codereview.chromium.org/2594913002/diff/350001/content/shell/browser/... > content/shell/browser/layout_test/blink_test_controller.cc:612: > params->enable_pixel_dumping = true; > nit: The line above can be removed - we always set the same field a few lines > below, right? Thanks Lukasz! I've made the change, PTAL. Thanks! Jia
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2594913002/diff/350001/content/shell/browser/... File content/shell/browser/layout_test/blink_test_controller.cc (right): https://codereview.chromium.org/2594913002/diff/350001/content/shell/browser/... content/shell/browser/layout_test/blink_test_controller.cc:612: params->enable_pixel_dumping = true; On 2017/02/07 17:36:31, Łukasz Anforowicz wrote: > nit: The line above can be removed - we always set the same field a few lines > below, right? Done. Yes that's right. I put in here to "simulate" the constructor of the old ShellConfiguration struct.
On 2017/02/07 22:10:17, Jia wrote: > https://codereview.chromium.org/2594913002/diff/350001/content/shell/browser/... > File content/shell/browser/layout_test/blink_test_controller.cc (right): > > https://codereview.chromium.org/2594913002/diff/350001/content/shell/browser/... > content/shell/browser/layout_test/blink_test_controller.cc:612: > params->enable_pixel_dumping = true; > On 2017/02/07 17:36:31, Łukasz Anforowicz wrote: > > nit: The line above can be removed - we always set the same field a few lines > > below, right? > > Done. Yes that's right. I put in here to "simulate" the constructor of the old > ShellConfiguration struct. Thanks - LGTM.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by jiameng@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from mkwst@chromium.org, jam@chromium.org, tibell@chromium.org, sammc@chromium.org Link to the patchset: https://codereview.chromium.org/2594913002/#ps390001 (title: "Removed a redundant line")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 390001, "attempt_start_ts": 1486518087348790,
"parent_rev": "7ab4a9fbba49a459dbff5c4e888a4f4ab8923abb", "commit_rev":
"d518643748bffd4d67c504a5181489ab75b89a1d"}
Message was sent while issue was closed.
Description was changed from ========== Replace IPC messages in layout_test_render_frame_observer. Also remove some forward declarations that are becoming useless. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation BUG=577685 Review-Url: https://codereview.chromium.org/2594913002 Cr-Commit-Position: refs/heads/master@{#446952} Committed: https://chromium.googlesource.com/chromium/src/+/165c6d9ac3870f1c12553eff57ea... ========== to ========== Replace IPC messages in layout_test_render_frame_observer. Also remove some forward declarations that are becoming useless. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation BUG=577685 Review-Url: https://codereview.chromium.org/2594913002 Cr-Original-Commit-Position: refs/heads/master@{#446952} Committed: https://chromium.googlesource.com/chromium/src/+/165c6d9ac3870f1c12553eff57ea... Review-Url: https://codereview.chromium.org/2594913002 Cr-Commit-Position: refs/heads/master@{#448846} Committed: https://chromium.googlesource.com/chromium/src/+/d518643748bffd4d67c504a51814... ==========
Message was sent while issue was closed.
Committed patchset #20 (id:390001) as https://chromium.googlesource.com/chromium/src/+/d518643748bffd4d67c504a51814... |
