diff options
author | jam <jam@chromium.org> | 2015-05-20 17:48:13 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-21 00:48:16 +0000 |
commit | 3cf73ae56fd339f5ce180ab39a0f6dd3e5aa4b1d (patch) | |
tree | d5c1695f73b869e9009263251cd6c12e0f7ce9d4 /components/resource_provider | |
parent | 772156412f85c3aeed361dd84edb7556e56aa3c3 (diff) | |
download | chromium_src-3cf73ae56fd339f5ce180ab39a0f6dd3e5aa4b1d.zip chromium_src-3cf73ae56fd339f5ce180ab39a0f6dd3e5aa4b1d.tar.gz chromium_src-3cf73ae56fd339f5ce180ab39a0f6dd3e5aa4b1d.tar.bz2 |
Move navigations with POST or referrer to the shell.
Previously we were doing them inside html_viewer because NavigatorHost was throwing out that extra data before it got to the network service. The fix is to pass through this url request information.
Also:
-add support for netlog to make debugging network issues easier. Use --log-net-log=file_path
-ensure that mojo shell uses the same user agent as html_viewer. since this UA is sent to websites, they need to match or else there are bugs with Gmail (since it sees different UAs when logging in)
BUG=481153
Review URL: https://codereview.chromium.org/1121783003
Cr-Commit-Position: refs/heads/master@{#330864}
Diffstat (limited to 'components/resource_provider')
-rw-r--r-- | components/resource_provider/public/cpp/resource_loader.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/resource_provider/public/cpp/resource_loader.cc b/components/resource_provider/public/cpp/resource_loader.cc index 7f4c938..5ad23ae 100644 --- a/components/resource_provider/public/cpp/resource_loader.cc +++ b/components/resource_provider/public/cpp/resource_loader.cc @@ -16,7 +16,9 @@ namespace resource_provider { ResourceLoader::ResourceLoader(mojo::Shell* shell, const std::set<std::string>& paths) : loaded_(false), did_block_(false) { - shell->ConnectToApplication("mojo:resource_provider", + mojo::URLRequestPtr request(mojo::URLRequest::New()); + request->url = mojo::String::From("mojo:resource_provider"); + shell->ConnectToApplication(request.Pass(), GetProxy(&resource_provider_service_provider_), nullptr); mojo::ConnectToService(resource_provider_service_provider_.get(), |