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

Issue 974403002: Add --force-in-process flag to shell. (Closed)

Created:
5 years, 9 months ago by viettrungluu
Modified:
5 years, 9 months ago
Reviewers:
jamesr, qsr
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

Add --force-in-process flag to shell. (Don't force anything by default yet, since things currently work without doing so.) The URLs given to the flag are mapped and resolved. An application is loaded in-process if its actual (mapped, resolved, possibly redirected) URL matches a mapped and resolved URL. (This matching scheme may fail if requesting the mapped and resolved URL results in a redirect.) Still to do (separately): lots of cleanup (renaming, reducing indirection, simplifying). R=jamesr@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/fbf0a4ee9c117d4ea25ea2654ff5aaac3936ab40

Patch Set 1 #

Total comments: 1

Patch Set 2 : use resolved url #

Total comments: 1

Patch Set 3 : amend comment #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -92 lines) Patch
M shell/application_manager/application_manager.h View 1 2 7 chunks +31 lines, -4 lines 0 comments Download
M shell/application_manager/application_manager.cc View 1 4 chunks +25 lines, -2 lines 2 comments Download
M shell/context.cc View 7 chunks +77 lines, -55 lines 0 comments Download
M shell/dynamic_service_runner.h View 3 chunks +1 line, -21 lines 0 comments Download
M shell/in_process_dynamic_service_runner.h View 5 chunks +20 lines, -5 lines 0 comments Download
M shell/in_process_dynamic_service_runner.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M shell/native_runner_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M shell/out_of_process_dynamic_service_runner.h View 3 chunks +18 lines, -4 lines 0 comments Download
M shell/out_of_process_dynamic_service_runner.cc View 2 chunks +9 lines, -0 lines 0 comments Download
M shell/switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M shell/switches.cc View 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
viettrungluu
5 years, 9 months ago (2015-03-04 20:22:45 UTC) #1
jamesr
https://codereview.chromium.org/974403002/diff/1/shell/application_manager/application_manager.cc File shell/application_manager/application_manager.cc (right): https://codereview.chromium.org/974403002/diff/1/shell/application_manager/application_manager.cc#newcode303 shell/application_manager/application_manager.cc:303: if (url_to_native_options_.find(requested_url) != hmm, I would think that options ...
5 years, 9 months ago (2015-03-04 20:55:25 UTC) #2
viettrungluu
On 2015/03/04 20:55:25, jamesr wrote: > https://codereview.chromium.org/974403002/diff/1/shell/application_manager/application_manager.cc > File shell/application_manager/application_manager.cc (right): > > https://codereview.chromium.org/974403002/diff/1/shell/application_manager/application_manager.cc#newcode303 > ...
5 years, 9 months ago (2015-03-04 21:12:53 UTC) #3
viettrungluu
PTAL. (I still don't know what I'm doing.)
5 years, 9 months ago (2015-03-04 22:13:08 UTC) #4
jamesr
lgtm but please explain the scheme here in the patch description or we're not gonna ...
5 years, 9 months ago (2015-03-04 22:16:15 UTC) #5
viettrungluu
Thanks. On 2015/03/04 22:16:15, jamesr wrote: > lgtm but please explain the scheme here in ...
5 years, 9 months ago (2015-03-04 22:36:31 UTC) #6
viettrungluu
Committed patchset #3 (id:40001) manually as fbf0a4ee9c117d4ea25ea2654ff5aaac3936ab40 (presubmit successful).
5 years, 9 months ago (2015-03-04 22:37:31 UTC) #7
qsr
https://codereview.chromium.org/974403002/diff/40001/shell/application_manager/application_manager.cc File shell/application_manager/application_manager.cc (right): https://codereview.chromium.org/974403002/diff/40001/shell/application_manager/application_manager.cc#newcode303 shell/application_manager/application_manager.cc:303: if (url_to_native_options_.find(fetcher->GetURL()) != As you put it in the ...
5 years, 9 months ago (2015-03-05 14:47:53 UTC) #9
viettrungluu
5 years, 9 months ago (2015-03-05 18:30:10 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/974403002/diff/40001/shell/application_manage...
File shell/application_manager/application_manager.cc (right):

https://codereview.chromium.org/974403002/diff/40001/shell/application_manage...
shell/application_manager/application_manager.cc:303: if
(url_to_native_options_.find(fetcher->GetURL()) !=
On 2015/03/05 14:47:52, qsr wrote:
> As you put it in the comment in SetNativeOptionsForURL, you need to remove the
> query string here (at the other place, I would just DCHECK that there is no
> query string).

That's easier now that you've landed your change. ;)

I'll send you a change for this....

Powered by Google App Engine
This is Rietveld 408576698