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

Unified Diff: shell/application_manager/network_fetcher.cc

Issue 1157783002: Update to newer network service implementation and mojoms from monet (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: shell/application_manager/network_fetcher.cc
diff --git a/shell/application_manager/network_fetcher.cc b/shell/application_manager/network_fetcher.cc
index cf726c611ba8b6420f3097e491ddf06a38ab179a..acfce9eb4856348fae8a622cb19e835b2347a967 100644
--- a/shell/application_manager/network_fetcher.cc
+++ b/shell/application_manager/network_fetcher.cc
@@ -224,8 +224,11 @@ void NetworkFetcher::StartNetworkRequest(
request->url = mojo::String::From(url);
request->auto_follow_redirects = false;
request->bypass_cache = disable_cache_;
- mojo::Array<mojo::String> headers(1);
- headers[0] = base::StringPrintf("X-Architecture: %s", kArchitecture);
+ auto header = mojo::HttpHeader::New();
+ header->name = "X-Architecture";
+ header->value = kArchitecture;
+ mojo::Array<mojo::HttpHeaderPtr> headers;
+ headers.push_back(header.Pass());
request->headers = headers.Pass();
url_loader_factory->CreateAuthenticatingURLLoader(GetProxy(&url_loader_));
« no previous file with comments | « shell/application_manager/local_fetcher.cc ('k') | sky/services/oknet/src/org/domokit/oknet/NetworkServiceImpl.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698