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

Issue 1667273002: Creates BackgroundShell and uses it in test (Closed)

Created:
4 years, 10 months ago by sky
Modified:
4 years, 10 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, tfarina, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Creates BackgroundShell and uses it in test BackgroundShell creates the necessary mojo state in a background thread and then vends an ApplicationImpl to the main thread so that the main thread can use mojo. I also converted views_apptests to a unittest that makes use of BackgroundShell. BUG=577242, 577274 TEST=none R=ben@chromium.org Committed: https://crrev.com/468d726832348bc0c6415fb8604ccc4e43c84664 Cr-Commit-Position: refs/heads/master@{#374156}

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : merge 2 trunk #

Patch Set 4 : return InterfaceRequest #

Patch Set 5 : fix build #

Patch Set 6 : fix android #

Unified diffs Side-by-side diffs Delta from patch set Stats (+415 lines, -32 lines) Patch
M components/web_view/test_runner/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M components/web_view/test_runner/launcher.cc View 2 chunks +2 lines, -0 lines 0 comments Download
A mojo/shell/background/BUILD.gn View 1 chunk +33 lines, -0 lines 0 comments Download
A mojo/shell/background/background_shell.h View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download
A mojo/shell/background/background_shell.cc View 1 2 3 4 1 chunk +179 lines, -0 lines 0 comments Download
A mojo/shell/background/background_shell_main.h View 1 chunk +12 lines, -0 lines 0 comments Download
A mojo/shell/background/background_shell_main.cc View 1 chunk +43 lines, -0 lines 0 comments Download
M mojo/shell/standalone/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M mojo/shell/standalone/android/main.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M mojo/shell/standalone/context.cc View 1 2 2 chunks +0 lines, -5 lines 0 comments Download
M mojo/shell/standalone/desktop/launcher_process.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M ui/views/mus/BUILD.gn View 1 2 chunks +9 lines, -4 lines 0 comments Download
M ui/views/mus/DEPS View 1 chunk +6 lines, -0 lines 0 comments Download
M ui/views/mus/platform_test_helper_mus.cc View 1 2 3 1 chunk +31 lines, -22 lines 0 comments Download
A ui/views/mus/run_all_unittests_mus.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download
M ui/views/mus/window_manager_connection.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/mus/window_manager_connection.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
A ui/views/run_all_unittests.h View 1 chunk +14 lines, -0 lines 0 comments Download
M ui/views/run_all_unittests.cc View 2 chunks +5 lines, -1 line 0 comments Download
A ui/views/run_all_unittests_main.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download
M ui/views/views.gyp View 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
sky
Notice that I had to move out icu initialization from context. This is because I ...
4 years, 10 months ago (2016-02-04 22:35:18 UTC) #1
Ben Goodger (Google)
4 years, 10 months ago (2016-02-05 00:59:26 UTC) #3
Ken Rockot(use gerrit already)
lgtm
4 years, 10 months ago (2016-02-05 01:02:01 UTC) #5
Ken Rockot(use gerrit already)
Oops - wrong button. I think we can use this in Chrome, minus the blocking ...
4 years, 10 months ago (2016-02-05 01:02:48 UTC) #7
sky
I can certainly make it return an InterfaceRequest, but I'm curious why you don't think ...
4 years, 10 months ago (2016-02-05 01:06:23 UTC) #8
Ken Rockot(use gerrit already)
It just seems like it would be an unnecessary source of startup latency. Maybe I'm ...
4 years, 10 months ago (2016-02-05 04:34:03 UTC) #9
sky
I changed the function to return an InterfaceRequest and moved out construction of the ApplicationImpl ...
4 years, 10 months ago (2016-02-08 16:32:21 UTC) #10
Ken Rockot(use gerrit already)
On 2016/02/08 at 16:32:21, sky wrote: > I changed the function to return an InterfaceRequest ...
4 years, 10 months ago (2016-02-08 16:44:31 UTC) #11
Ben Goodger (Google)
lgtm
4 years, 10 months ago (2016-02-08 19:27:48 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1667273002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1667273002/100001
4 years, 10 months ago (2016-02-08 19:35:38 UTC) #15
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 10 months ago (2016-02-08 19:48:13 UTC) #16
commit-bot: I haz the power
4 years, 10 months ago (2016-02-08 19:50:53 UTC) #18
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/468d726832348bc0c6415fb8604ccc4e43c84664
Cr-Commit-Position: refs/heads/master@{#374156}

Powered by Google App Engine
This is Rietveld 408576698