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

Issue 983113002: ApplicationManager: Use callback to get notified on application shutdown. (Closed)

Created:
5 years, 9 months ago by qsr
Modified:
5 years, 9 months ago
Reviewers:
DaveMoore
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, yzshen+watch_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

ApplicationManager: Use callback to get notified on application shutdown. Until now, the Delegate had a OnApplicationError that was called whenever an application ended. Because it was used to keep track of when a given started application ended, it needed to send back the URL that was used to start an application. This was cumbersome as mapping and rediect change the url during the loading process. Instead this change allows a caller fo ApplicationManager to register a closure that will be called when the application ends, if the call started a new application. R=davemoore@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/993869e76244efcbeeb4c6fa37cb52835115ef36

Patch Set 1 #

Total comments: 1

Patch Set 2 : Follow review #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase after parameters fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -76 lines) Patch
M shell/application_manager/application_manager.h View 1 2 5 chunks +7 lines, -11 lines 0 comments Download
M shell/application_manager/application_manager.cc View 1 2 14 chunks +35 lines, -34 lines 0 comments Download
M shell/application_manager/application_manager_unittest.cc View 1 2 4 chunks +25 lines, -2 lines 0 comments Download
M shell/application_manager/shell_impl.h View 1 2 4 chunks +5 lines, -5 lines 0 comments Download
M shell/application_manager/shell_impl.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M shell/context.h View 1 chunk +2 lines, -1 line 0 comments Download
M shell/context.cc View 1 2 3 chunks +15 lines, -15 lines 0 comments Download
M shell/native_runner_unittest.cc View 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
DaveMoore
I like the approach but please add a test.
5 years, 9 months ago (2015-03-06 17:34:43 UTC) #1
qsr
Added test. https://codereview.chromium.org/983113002/diff/1/shell/application_manager/application_manager.cc File shell/application_manager/application_manager.cc (right): https://codereview.chromium.org/983113002/diff/1/shell/application_manager/application_manager.cc#newcode207 shell/application_manager/application_manager.cc:207: shell->InitializeApplication(GetArgsForURL(app_url)); I cannot push this until this ...
5 years, 9 months ago (2015-03-09 16:50:21 UTC) #2
qsr
gentle ping?
5 years, 9 months ago (2015-03-10 14:46:11 UTC) #3
DaveMoore
lgtm
5 years, 9 months ago (2015-03-10 17:26:50 UTC) #4
qsr
5 years, 9 months ago (2015-03-24 12:35:32 UTC) #5
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
993869e76244efcbeeb4c6fa37cb52835115ef36 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698