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

Issue 951643002: Register application connections under their post-redirect URL. (Closed)

Created:
5 years, 10 months ago by Aaron Boodman
Modified:
5 years, 10 months ago
Reviewers:
DaveMoore, 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

Register application connections under their post-redirect URL. R=davemoore@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/df23d13b8217d04fcf8dfc9e3f1cf452b7a71c2a

Patch Set 1 : #

Total comments: 4

Patch Set 2 : add redirect support #

Patch Set 3 : rebase #

Patch Set 4 : cleanup #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -12 lines) Patch
M shell/application_manager/application_manager.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M shell/application_manager/application_manager.cc View 1 2 3 3 chunks +33 lines, -10 lines 2 comments Download
M shell/application_manager/fetcher.h View 1 chunk +7 lines, -0 lines 0 comments Download
M shell/application_manager/local_fetcher.h View 1 chunk +3 lines, -0 lines 0 comments Download
M shell/application_manager/local_fetcher.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M shell/application_manager/network_fetcher.h View 1 chunk +3 lines, -0 lines 0 comments Download
M shell/application_manager/network_fetcher.cc View 1 2 chunks +15 lines, -1 line 0 comments Download

Messages

Total messages: 17 (8 generated)
Aaron Boodman
Not sure how to test this. Suggestions welcome.
5 years, 10 months ago (2015-02-24 19:27:02 UTC) #5
DaveMoore
https://codereview.chromium.org/951643002/diff/60001/shell/application_manager/fetcher.h File shell/application_manager/fetcher.h (right): https://codereview.chromium.org/951643002/diff/60001/shell/application_manager/fetcher.h#newcode43 shell/application_manager/fetcher.h:43: // Returns the original URL that was fetched. Wouldn't ...
5 years, 10 months ago (2015-02-24 20:42:59 UTC) #6
Aaron Boodman
https://codereview.chromium.org/951643002/diff/60001/shell/application_manager/fetcher.h File shell/application_manager/fetcher.h (right): https://codereview.chromium.org/951643002/diff/60001/shell/application_manager/fetcher.h#newcode43 shell/application_manager/fetcher.h:43: // Returns the original URL that was fetched. On ...
5 years, 10 months ago (2015-02-24 21:48:25 UTC) #7
DaveMoore
lgtm
5 years, 10 months ago (2015-02-24 22:36:43 UTC) #8
qsr
https://codereview.chromium.org/951643002/diff/60001/shell/application_manager/network_fetcher.cc File shell/application_manager/network_fetcher.cc (right): https://codereview.chromium.org/951643002/diff/60001/shell/application_manager/network_fetcher.cc#newcode53 shell/application_manager/network_fetcher.cc:53: return GURL(response_->redirect_url); Did you test this? The doc for ...
5 years, 10 months ago (2015-02-25 14:50:27 UTC) #10
Aaron Boodman
I ended up just adding proper support for redirects in this CL as that was ...
5 years, 10 months ago (2015-02-25 18:43:08 UTC) #11
commit-bot: I haz the power
Commit queue rejected this change because it did not recognize the base URL. Please commit ...
5 years, 10 months ago (2015-02-25 20:45:16 UTC) #15
Aaron Boodman
Committed patchset #4 (id:120001) manually as df23d13b8217d04fcf8dfc9e3f1cf452b7a71c2a (presubmit successful).
5 years, 10 months ago (2015-02-25 21:43:27 UTC) #16
qsr
5 years, 10 months ago (2015-02-26 10:41:57 UTC) #17
Message was sent while issue was closed.
https://codereview.chromium.org/951643002/diff/120001/shell/application_manag...
File shell/application_manager/application_manager.cc (right):

https://codereview.chromium.org/951643002/diff/120001/shell/application_manag...
shell/application_manager/application_manager.cc:241: // And around we go
again... Whee!
Is there any advantage to try to use the url_loader FollowRedirect method? Given
that it will greatly increase the complexity, I'm not sure it is worth it, but
just asking.

https://codereview.chromium.org/951643002/diff/120001/shell/application_manag...
shell/application_manager/application_manager.cc:289: cleanup_behavior,
base::Passed(fetcher.Pass())));
I think this is an undefined behavior. You have no guarantee on the order of ->
and .Pass() on fetcher.

Powered by Google App Engine
This is Rietveld 408576698