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

Issue 1799923002: Make kExposeInternalsForTesting usable (again) for interactive content_shell. (Closed)

Created:
4 years, 9 months ago by Łukasz Anforowicz
Modified:
4 years, 9 months ago
CC:
chromium-reviews, darin-cc_chromium.org, iclelland, jam, jochen+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, Peter Beverloo
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make kExposeInternalsForTesting usable again for interactive content_shell. In https://crrev.com/1763113002 I've tried to separate layout-test-specific cmdline switches into a separate header file and handle some of them under LayoutTestContentBrowserClient::AppendExtraCommandLineSwitches rather than ShellContentBrowserClient::AppendExtraCommandLineSwitches. This was wrong - this meant that devs cannot pass these switches when debugging via content_shell running in interactive / non-layout-test mode. So - the current CL undoes part of https://crrev.com/1763113002 and restores processing of some of the switches back to ShellContentBrowserClient: - kExposeInternalsForTesting - this is useful for debugging layout tests (see https://crbug.com/594566). For now it is okay to leave propagation of the following switches in LayoutTestContentBrowserClient (because moving them in https://crrev.com/1763113002 was not a regression as explained below): - kStableReleaseMode - it only has effect if used together with --run-layout-test switch (i.e. see how ShellMainDelegate::BasicStartupComplete first checks switches::kRunLayoutTest before checking switches::kStableReleaseMode in a nested if). - kEnableLeakDetection only affects BlinkTestController and LayoutTestContentBrowserClient so it won't have any effect without --run-layout-test switch. - kEnableFontAntialiasing and kAlwaysUseComplexText only affects LayoutTestContentBrowserClient and LayoutTestRenderProcessObserver so it won't have any effect without --run-layout-test switch. BUG=594566 Committed: https://crrev.com/756abda6b173d7b698bf43a0726e43eaab8c03dd Cr-Commit-Position: refs/heads/master@{#381330}

Patch Set 1 #

Patch Set 2 : Fix include path. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -10 lines) Patch
M content/shell/browser/layout_test/layout_test_content_browser_client.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M content/shell/browser/shell_content_browser_client.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/shell/common/layout_test/layout_test_switches.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/shell/common/layout_test/layout_test_switches.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M content/shell/common/shell_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/common/shell_switches.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/shell/renderer/shell_render_view_observer.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (10 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/1799923002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1799923002/1
4 years, 9 months ago (2016-03-14 21:56:50 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/35666) cast_shell_linux on ...
4 years, 9 months ago (2016-03-14 22:04:49 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1799923002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1799923002/20001
4 years, 9 months ago (2016-03-14 22:08:15 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-14 23:16:46 UTC) #10
Łukasz Anforowicz
jochen@, could you please take a look? I think the first thing to do would ...
4 years, 9 months ago (2016-03-14 23:25:17 UTC) #12
jochen (gone - plz use gerrit)
lgtm
4 years, 9 months ago (2016-03-15 21:00:52 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1799923002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1799923002/20001
4 years, 9 months ago (2016-03-15 21:53:51 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-15 21:59:02 UTC) #17
commit-bot: I haz the power
4 years, 9 months ago (2016-03-15 22:00:46 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/756abda6b173d7b698bf43a0726e43eaab8c03dd
Cr-Commit-Position: refs/heads/master@{#381330}

Powered by Google App Engine
This is Rietveld 408576698