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

Issue 1814223002: Quit the message loop by default in ShellConnectionLost when ApplicationRunner is used (Closed)

Created:
4 years, 9 months ago by Ben Goodger (Google)
Modified:
4 years, 8 months ago
Reviewers:
sky
CC:
chromium-reviews, rjkroege, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, kalyank, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Quit the message loop by default in ShellConnectionLost when ApplicationRunner is used BUG=

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 1

Patch Set 4 : . #

Patch Set 5 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -91 lines) Patch
M ash/mus/sysui_application.h View 1 chunk +0 lines, -1 line 0 comments Download
M ash/mus/sysui_application.cc View 2 chunks +0 lines, -5 lines 0 comments Download
M components/filesystem/file_system_app.h View 1 chunk +0 lines, -2 lines 0 comments Download
M components/filesystem/file_system_app.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M components/font_service/font_service_app.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/font_service/font_service_app.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M components/leveldb/leveldb_app.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/leveldb/leveldb_app.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M components/mus/mus_app.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/mus/mus_app.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M components/resource_provider/resource_provider_app.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/resource_provider/resource_provider_app.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M content/common/mojo/mojo_shell_connection_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/common/mojo/mojo_shell_connection_impl.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M mash/browser_driver/browser_driver_application_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M mash/browser_driver/browser_driver_application_delegate.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M mash/example/window_type_launcher/window_type_launcher.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M mash/example/window_type_launcher/window_type_launcher.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M mash/quick_launch/quick_launch_application.h View 1 chunk +0 lines, -1 line 0 comments Download
M mash/quick_launch/quick_launch_application.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M mash/wm/window_manager_application.h View 1 chunk +0 lines, -1 line 0 comments Download
M mash/wm/window_manager_application.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M mojo/services/network/network_service_delegate.h View 1 chunk +0 lines, -1 line 0 comments Download
M mojo/services/network/network_service_delegate.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M mojo/services/tracing/tracing_app.h View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/tracing/tracing_app.cc View 1 1 chunk +5 lines, -1 line 0 comments Download
M mojo/shell/background/tests/test_service.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/shell/public/cpp/lib/application_runner.cc View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M mojo/shell/public/cpp/lib/shell_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M mojo/shell/public/cpp/lib/shell_connection.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M mojo/shell/public/cpp/shell_client.h View 1 chunk +7 lines, -2 lines 0 comments Download
M mojo/shell/public/cpp/shell_connection.h View 2 chunks +8 lines, -1 line 0 comments Download
M mojo/shell/tests/connect/connect_test_app.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M mojo/shell/tests/connect/connect_test_driver.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M mojo/shell/tests/connect/connect_test_package.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M mojo/shell/tests/lifecycle/app_client.h View 1 chunk +0 lines, -1 line 0 comments Download
M mojo/shell/tests/lifecycle/app_client.cc View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
Ben Goodger (Google)
This makes shutdown work "automatically" for the vast majority of mojo apps.
4 years, 9 months ago (2016-03-18 14:53:41 UTC) #2
sky
https://codereview.chromium.org/1814223002/diff/40001/mojo/shell/public/cpp/lib/application_runner.cc File mojo/shell/public/cpp/lib/application_runner.cc (right): https://codereview.chromium.org/1814223002/diff/40001/mojo/shell/public/cpp/lib/application_runner.cc#newcode22 mojo/shell/public/cpp/lib/application_runner.cc:22: base::MessageLoop::current()->QuitWhenIdle(); If the messageloop is nested this quits the ...
4 years, 9 months ago (2016-03-18 16:20:37 UTC) #3
Ben Goodger (Google)
Maybe I'm misunderstanding what you're saying but what you propose here doesn't work - apps ...
4 years, 9 months ago (2016-03-18 17:38:37 UTC) #4
sky
I'll take a look after you land. LGTM
4 years, 9 months ago (2016-03-18 17:39:35 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814223002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814223002/60001
4 years, 9 months ago (2016-03-18 17:45:05 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/198831)
4 years, 9 months ago (2016-03-18 19:32:45 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814223002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814223002/80001
4 years, 9 months ago (2016-03-19 04:25:23 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/199251)
4 years, 9 months ago (2016-03-19 05:53:10 UTC) #15
sky
I need this for browser_tests, so I'm going to copy it off to another patch ...
4 years, 9 months ago (2016-03-21 19:23:24 UTC) #16
sky
4 years, 9 months ago (2016-03-21 19:55:41 UTC) #17
On 2016/03/21 19:23:24, sky wrote:
> I need this for browser_tests, so I'm going to copy it off to another patch
and
> land it.

The patch I copied is here: https://codereview.chromium.org/1819063002/ .

Powered by Google App Engine
This is Rietveld 408576698