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

Issue 1307273004: Group ConnectToApplication-related info into a params struct. (Closed)

Created:
5 years, 3 months ago by yzshen1
Modified:
5 years, 3 months ago
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

Group ConnectToApplication-related info into a params struct. It makes the code easier to read and less error-prone. Besides, this CL also: - stops using raw ApplicationInstance pointer to refer to originator, because it becomes invalid after the originator is gone. - removes requestor_url because orignator_identity.url serves the same purpose. BUG=None Committed: https://crrev.com/be2a3831785d9ad205e542ca6e9ccb52f734307f Cr-Commit-Position: refs/heads/master@{#347213}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : sync & rebase #

Total comments: 2

Patch Set 4 : #

Total comments: 9

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+478 lines, -360 lines) Patch
M content/browser/mojo/mojo_shell_context.cc View 1 2 3 4 5 6 7 2 chunks +13 lines, -6 lines 0 comments Download
M mojo/mojo_shell.gyp View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/runner/context.cc View 1 2 3 4 2 chunks +9 lines, -7 lines 0 comments Download
M mojo/shell/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/shell/application_instance.h View 1 2 4 chunks +6 lines, -29 lines 0 comments Download
M mojo/shell/application_instance.cc View 1 2 3 4 7 chunks +44 lines, -69 lines 0 comments Download
M mojo/shell/application_manager.h View 1 2 3 4 7 chunks +23 lines, -46 lines 0 comments Download
M mojo/shell/application_manager.cc View 1 2 3 4 13 chunks +103 lines, -129 lines 0 comments Download
M mojo/shell/application_manager_unittest.cc View 1 2 3 4 7 chunks +63 lines, -55 lines 0 comments Download
M mojo/shell/capability_filter.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M mojo/shell/capability_filter.cc View 1 2 chunks +18 lines, -0 lines 0 comments Download
A mojo/shell/connect_to_application_params.h View 1 2 3 1 chunk +114 lines, -0 lines 0 comments Download
A mojo/shell/connect_to_application_params.cc View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download
M mojo/shell/content_handler_connection.h View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M mojo/shell/content_handler_connection.cc View 1 2 2 chunks +16 lines, -7 lines 0 comments Download
M mojo/shell/identity.h View 1 2 3 4 1 chunk +12 lines, -8 lines 0 comments Download
M mojo/shell/identity.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
yzshen1
Hi, Ben and Scott. Would you please take a look? Thanks!
5 years, 3 months ago (2015-09-02 18:28:05 UTC) #2
yzshen1
On 2015/09/02 18:28:05, yzshen1 wrote: > Hi, Ben and Scott. > > Would you please ...
5 years, 3 months ago (2015-09-02 21:27:04 UTC) #3
yzshen1
https://codereview.chromium.org/1307273004/diff/40001/mojo/shell/application_instance.cc File mojo/shell/application_instance.cc (right): https://codereview.chromium.org/1307273004/diff/40001/mojo/shell/application_instance.cc#newcode114 mojo/shell/application_instance.cc:114: params->connect_callback().Run(requesting_content_handler_id_); Scott: I have moved this line from ConnectToClient() ...
5 years, 3 months ago (2015-09-02 21:30:55 UTC) #4
Ben Goodger (Google)
lgtm https://codereview.chromium.org/1307273004/diff/60001/mojo/shell/application_instance.cc File mojo/shell/application_instance.cc (right): https://codereview.chromium.org/1307273004/diff/60001/mojo/shell/application_instance.cc#newcode153 mojo/shell/application_instance.cc:153: // second one directly. sgtm https://codereview.chromium.org/1307273004/diff/60001/mojo/shell/identity.h File mojo/shell/identity.h ...
5 years, 3 months ago (2015-09-02 22:20:33 UTC) #5
sky
https://codereview.chromium.org/1307273004/diff/60001/mojo/shell/application_instance.cc File mojo/shell/application_instance.cc (right): https://codereview.chromium.org/1307273004/diff/60001/mojo/shell/application_instance.cc#newcode58 mojo/shell/application_instance.cc:58: STLDeleteElements(&queued_client_requests_); Do you need to also run the callbacks ...
5 years, 3 months ago (2015-09-02 22:38:26 UTC) #6
sky
https://codereview.chromium.org/1307273004/diff/40001/mojo/shell/application_instance.cc File mojo/shell/application_instance.cc (right): https://codereview.chromium.org/1307273004/diff/40001/mojo/shell/application_instance.cc#newcode114 mojo/shell/application_instance.cc:114: params->connect_callback().Run(requesting_content_handler_id_); On 2015/09/02 21:30:55, yzshen1 wrote: > Scott: I ...
5 years, 3 months ago (2015-09-02 22:48:34 UTC) #7
yzshen1
Thanks, Ben and Scott! Please take another look. https://codereview.chromium.org/1307273004/diff/60001/mojo/shell/application_instance.cc File mojo/shell/application_instance.cc (right): https://codereview.chromium.org/1307273004/diff/60001/mojo/shell/application_instance.cc#newcode58 mojo/shell/application_instance.cc:58: STLDeleteElements(&queued_client_requests_); ...
5 years, 3 months ago (2015-09-03 00:06:39 UTC) #8
sky
LGTM
5 years, 3 months ago (2015-09-03 13:21:23 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1307273004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1307273004/140001
5 years, 3 months ago (2015-09-03 19:19:42 UTC) #12
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 3 months ago (2015-09-03 19:25:54 UTC) #13
commit-bot: I haz the power
5 years, 3 months ago (2015-09-03 19:26:52 UTC) #14
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/be2a3831785d9ad205e542ca6e9ccb52f734307f
Cr-Commit-Position: refs/heads/master@{#347213}

Powered by Google App Engine
This is Rietveld 408576698