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

Issue 649223004: Content Shell: Introduce LayoutTestBrowserMain. (Closed)

Created:
6 years, 2 months ago by Mike West
Modified:
6 years, 2 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, jochen+watch_chromium.org, mkwst+moarreviews-shell_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@LayoutTestURLRequestContextGetter
Project:
chromium
Visibility:
Public.

Description

Content Shell: Introduce LayoutTestBrowserMain. Most of ShellBrowserMain's implementation was layout test-specific. This patch moves all of that to LayoutTestBrowserMain, and adjusts the delegate to call that function when DRT is enabled. BUG=420994 NOTRY=true Committed: https://crrev.com/88e23180127784b736fa6b1d105d324add1d8151 Cr-Commit-Position: refs/heads/master@{#299879}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebase. #

Patch Set 3 : Fix. #

Patch Set 4 : ugh. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -255 lines) Patch
M content/content_shell.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/app/shell_main_delegate.cc View 1 2 2 chunks +6 lines, -1 line 0 comments Download
A + content/shell/browser/layout_test/layout_test_browser_main.h View 2 chunks +5 lines, -5 lines 0 comments Download
A + content/shell/browser/layout_test/layout_test_browser_main.cc View 1 2 3 6 chunks +43 lines, -52 lines 0 comments Download
M content/shell/browser/shell_browser_main.cc View 2 chunks +1 line, -197 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
Mike West
Another another one. Depends on https://codereview.chromium.org/651883002/.
6 years, 2 months ago (2014-10-14 10:36:33 UTC) #2
jochen (gone - plz use gerrit)
https://codereview.chromium.org/649223004/diff/1/content/shell/app/shell_main_delegate.cc File content/shell/app/shell_main_delegate.cc (right): https://codereview.chromium.org/649223004/diff/1/content/shell/app/shell_main_delegate.cc#newcode258 content/shell/app/shell_main_delegate.cc:258: : ShellBrowserMain(main_function_params, browser_runner_); can the else part be inlined? ...
6 years, 2 months ago (2014-10-14 14:52:24 UTC) #3
Mike West
On 2014/10/14 14:52:24, jochen wrote: > https://codereview.chromium.org/649223004/diff/1/content/shell/app/shell_main_delegate.cc > File content/shell/app/shell_main_delegate.cc (right): > > https://codereview.chromium.org/649223004/diff/1/content/shell/app/shell_main_delegate.cc#newcode258 > ...
6 years, 2 months ago (2014-10-15 07:31:22 UTC) #4
Mike West
On 2014/10/15 07:31:22, Mike West wrote: > On 2014/10/14 14:52:24, jochen wrote: > > > ...
6 years, 2 months ago (2014-10-15 07:33:30 UTC) #5
jochen (gone - plz use gerrit)
lgtm
6 years, 2 months ago (2014-10-15 15:27:11 UTC) #6
Mike West
On 2014/10/15 15:27:11, jochen wrote: > lgtm Pasting in your response from the other CL, ...
6 years, 2 months ago (2014-10-15 15:38:18 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/649223004/60001
6 years, 2 months ago (2014-10-16 11:48:53 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/18025)
6 years, 2 months ago (2014-10-16 11:55:17 UTC) #11
Mike West
On 2014/10/16 11:55:17, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 2 months ago (2014-10-16 12:00:06 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/649223004/60001
6 years, 2 months ago (2014-10-16 12:08:39 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years, 2 months ago (2014-10-16 12:09:07 UTC) #15
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/88e23180127784b736fa6b1d105d324add1d8151 Cr-Commit-Position: refs/heads/master@{#299879}
6 years, 2 months ago (2014-10-16 12:09:56 UTC) #16
marja
On 2014/10/16 12:00:06, Mike West wrote: > That said, the header bit does look weird: ...
6 years, 2 months ago (2014-10-20 09:52:33 UTC) #17
Mike West
6 years, 2 months ago (2014-10-20 09:56:53 UTC) #18
Message was sent while issue was closed.
On 2014/10/20 09:52:33, marja wrote:
> On 2014/10/16 12:00:06, Mike West wrote:
> > That said, the header bit does look weird: +marja. :)
> > 
> > ---
> > 
> > ** Presubmit Messages **
> > Your #include order seems to be broken. Send mail to
> > mailto:marja@chromium.org if this is not the case.
> >       content/shell/browser/layout_test/layout_test_browser_main.cc:7 \
> >       content/shell/browser/layout_test/layout_test_browser_main.cc:9
> 
> I think this is because #include "content/shell/browser/shell_browser_main.h"
is
> not recognized as a special first include, if the test file is
> layout_test_browser_main.cc. That looks reasonable. Why not call this file
> layout_test_shell_browser_main.cc, if it's testing shell_browser_main.h ? Or
if
> not, the include should be moved to where it belongs.

*facepalm* I completely missed that. How did this even compile?

https://codereview.chromium.org/660473003

Powered by Google App Engine
This is Rietveld 408576698