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

Issue 1254383016: ApplicationConnection lifetime management changes. (Closed)

Created:
5 years, 4 months ago by Ben Goodger (Google)
Modified:
5 years, 4 months ago
Reviewers:
sky
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, 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

Changes lifetime of ApplicationConnection instances. Before this change, ApplicationConnections were owned by the ApplicationImpl, one created for every call to ConnectToApplication/AcceptConnection. While this makes sense for incoming connections (it doesn't make sense to transfer ownership of the connection to the delegate), it doesn't for outgoing connections. So we change ConnectToApplication to return a scoped_ptr<ApplicationConnection> which the caller must manage. R=sky@chromium.org http://crbug.com/519583 Committed: https://crrev.com/efecf8ac86019d7f191159279f46c1a90d071be9 Cr-Commit-Position: refs/heads/master@{#342947}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : . #

Total comments: 6

Patch Set 10 : . #

Patch Set 11 : . #

Total comments: 1

Patch Set 12 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -214 lines) Patch
M components/html_viewer/ax_provider_apptest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M components/html_viewer/blink_platform_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/html_viewer/html_document_application_delegate.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/view_manager/public/cpp/lib/view_manager_init.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M components/view_manager/public/cpp/view_manager_init.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M components/view_manager/view_manager_client_apptest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M components/view_manager/view_manager_service_apptest.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M mandoline/tab/frame_connection.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M mandoline/ui/browser/browser.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M mandoline/ui/browser/browser_apptest.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +5 lines, -13 lines 0 comments Download
M mandoline/ui/browser/desktop/desktop_ui.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M mandoline/ui/browser/desktop/desktop_ui.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download
M media/mojo/services/media_apptest.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -4 lines 0 comments Download
M mojo/application/public/cpp/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M mojo/application/public/cpp/application_connection.h View 1 2 3 4 5 6 7 8 9 3 chunks +15 lines, -14 lines 0 comments Download
M mojo/application/public/cpp/application_delegate.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M mojo/application/public/cpp/application_impl.h View 1 2 3 4 5 6 7 8 9 4 chunks +9 lines, -17 lines 0 comments Download
D mojo/application/public/cpp/lib/application_connection.cc View 1 1 chunk +0 lines, -28 lines 0 comments Download
M mojo/application/public/cpp/lib/application_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +12 lines, -51 lines 0 comments Download
M mojo/application/public/cpp/lib/service_registry.h View 1 2 3 4 5 6 7 8 9 4 chunks +4 lines, -12 lines 0 comments Download
M mojo/application/public/cpp/lib/service_registry.cc View 1 2 3 4 5 6 7 8 9 3 chunks +14 lines, -16 lines 0 comments Download
M mojo/application/public/cpp/tests/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M mojo/application/public/cpp/tests/service_registry_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +16 lines, -18 lines 0 comments Download
M mojo/common/tracing_impl.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M mojo/common/tracing_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/mojo_base.gyp View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M mojo/services/network/http_server_apptest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/network/udp_socket_apptest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/shell/application_manager_unittest.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M mojo/shell/capability_filter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +12 lines, -9 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
Ben Goodger (Google)
5 years, 4 months ago (2015-08-11 17:40:11 UTC) #2
sky
https://codereview.chromium.org/1254383016/diff/160001/mandoline/ui/browser/browser_apptest.cc File mandoline/ui/browser/browser_apptest.cc (right): https://codereview.chromium.org/1254383016/diff/160001/mandoline/ui/browser/browser_apptest.cc#newcode121 mandoline/ui/browser/browser_apptest.cc:121: EXPECT_TRUE(ptr); Won't this always be true? Also, this test ...
5 years, 4 months ago (2015-08-11 18:28:04 UTC) #3
Ben Goodger (Google)
Updated. PTAL.
5 years, 4 months ago (2015-08-11 21:24:25 UTC) #4
sky
LGTM https://codereview.chromium.org/1254383016/diff/190001/mandoline/ui/browser/browser_apptest.cc File mandoline/ui/browser/browser_apptest.cc (right): https://codereview.chromium.org/1254383016/diff/190001/mandoline/ui/browser/browser_apptest.cc#newcode120 mandoline/ui/browser/browser_apptest.cc:120: ASSERT_NE(nullptr, view_manager_connection); nit: move this right beneath where ...
5 years, 4 months ago (2015-08-11 21:40:39 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1254383016/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1254383016/210001
5 years, 4 months ago (2015-08-11 22:11:46 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/91930)
5 years, 4 months ago (2015-08-11 23:06:49 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1254383016/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1254383016/210001
5 years, 4 months ago (2015-08-11 23:33:44 UTC) #12
commit-bot: I haz the power
Committed patchset #12 (id:210001)
5 years, 4 months ago (2015-08-12 00:39:54 UTC) #13
commit-bot: I haz the power
5 years, 4 months ago (2015-08-12 00:40:39 UTC) #14
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/efecf8ac86019d7f191159279f46c1a90d071be9
Cr-Commit-Position: refs/heads/master@{#342947}

Powered by Google App Engine
This is Rietveld 408576698