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

Issue 1920033005: services/shell: Fix running the connection-lost callback. (Closed)

Created:
4 years, 7 months ago by sadrul
Modified:
4 years, 7 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, jam, qsr+mojo_chromium.org, 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

services/shell: Fix running the connection-lost callback. The connection may have already been lost by the time the callback is set. Run the callback synchronously in such cases. BUG=594600 Committed: https://crrev.com/d9862587e3ab64d4065b61d0d2a0ca8ad21b8f05 Cr-Commit-Position: refs/heads/master@{#390249}

Patch Set 1 #

Total comments: 3

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 4

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -13 lines) Patch
M content/common/mojo/embedded_application_runner.cc View 1 2 1 chunk +6 lines, -6 lines 0 comments Download
M content/common/mojo/mojo_shell_connection_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/public/common/mojo_shell_connection.h View 1 chunk +3 lines, -1 line 0 comments Download
M services/shell/public/cpp/lib/application_runner.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M services/shell/public/cpp/lib/shell_connection.cc View 1 2 3 2 chunks +10 lines, -1 line 0 comments Download
M services/shell/public/cpp/shell_connection.h View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
sadrul
https://codereview.chromium.org/1920033005/diff/1/content/common/mojo/mojo_shell_connection_impl.cc File content/common/mojo/mojo_shell_connection_impl.cc (right): https://codereview.chromium.org/1920033005/diff/1/content/common/mojo/mojo_shell_connection_impl.cc#newcode134 content/common/mojo/mojo_shell_connection_impl.cc:134: shell_connection_->set_connection_lost_closure(closure); Alternatively, ShellConnection::set_connection_lost_closure could become SetConnectionLostClosure() and do this ...
4 years, 7 months ago (2016-04-27 20:00:38 UTC) #2
sky
+ben https://codereview.chromium.org/1920033005/diff/1/content/common/mojo/mojo_shell_connection_impl.cc File content/common/mojo/mojo_shell_connection_impl.cc (right): https://codereview.chromium.org/1920033005/diff/1/content/common/mojo/mojo_shell_connection_impl.cc#newcode134 content/common/mojo/mojo_shell_connection_impl.cc:134: shell_connection_->set_connection_lost_closure(closure); On 2016/04/27 20:00:38, sadrul wrote: > Alternatively, ...
4 years, 7 months ago (2016-04-27 21:18:56 UTC) #4
Ben Goodger (Google)
On 2016/04/27 21:18:56, sky wrote: > +ben > > https://codereview.chromium.org/1920033005/diff/1/content/common/mojo/mojo_shell_connection_impl.cc > File content/common/mojo/mojo_shell_connection_impl.cc (right): > ...
4 years, 7 months ago (2016-04-27 21:21:55 UTC) #5
sadrul
https://codereview.chromium.org/1920033005/diff/1/content/common/mojo/mojo_shell_connection_impl.cc File content/common/mojo/mojo_shell_connection_impl.cc (right): https://codereview.chromium.org/1920033005/diff/1/content/common/mojo/mojo_shell_connection_impl.cc#newcode134 content/common/mojo/mojo_shell_connection_impl.cc:134: shell_connection_->set_connection_lost_closure(closure); On 2016/04/27 21:18:56, sky wrote: > On 2016/04/27 ...
4 years, 7 months ago (2016-04-27 22:11:19 UTC) #7
Ben Goodger (Google)
services/shell lgtm with nits https://codereview.chromium.org/1920033005/diff/40001/services/shell/public/cpp/lib/shell_connection.cc File services/shell/public/cpp/lib/shell_connection.cc (right): https://codereview.chromium.org/1920033005/diff/40001/services/shell/public/cpp/lib/shell_connection.cc#newcode27 services/shell/public/cpp/lib/shell_connection.cc:27: should_run_connection_lost_closure_(false) { init in the ...
4 years, 7 months ago (2016-04-27 22:29:20 UTC) #8
sadrul
https://codereview.chromium.org/1920033005/diff/40001/services/shell/public/cpp/lib/shell_connection.cc File services/shell/public/cpp/lib/shell_connection.cc (right): https://codereview.chromium.org/1920033005/diff/40001/services/shell/public/cpp/lib/shell_connection.cc#newcode27 services/shell/public/cpp/lib/shell_connection.cc:27: should_run_connection_lost_closure_(false) { On 2016/04/27 22:29:20, Ben Goodger (Google) wrote: ...
4 years, 7 months ago (2016-04-27 22:45:11 UTC) #9
sadrul
A review on the change in content/common/mojo/embedded_application_runner.cc before I put this in CQ?
4 years, 7 months ago (2016-04-27 23:54:49 UTC) #10
Ken Rockot(use gerrit already)
lgtm as non-owner - ben can stamp
4 years, 7 months ago (2016-04-27 23:57:00 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1920033005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1920033005/60001
4 years, 7 months ago (2016-04-28 00:01:02 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-04-28 00:07:19 UTC) #16
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:14:51 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d9862587e3ab64d4065b61d0d2a0ca8ad21b8f05
Cr-Commit-Position: refs/heads/master@{#390249}

Powered by Google App Engine
This is Rietveld 408576698