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

Unified Diff: mojo/services/network/network_service_delegate.cc

Issue 1743473002: Change Mojo URLs to structured names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@18collapse
Patch Set: . Created 4 years, 10 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: mojo/services/network/network_service_delegate.cc
diff --git a/mojo/services/network/network_service_delegate.cc b/mojo/services/network/network_service_delegate.cc
index 9f54082fb3899b0bc4b9a319ec248f9cf3bac719..36371679c964a442013b568a1e2e7d9cccc917e2 100644
--- a/mojo/services/network/network_service_delegate.cc
+++ b/mojo/services/network/network_service_delegate.cc
@@ -48,7 +48,7 @@ void NetworkServiceDelegate::RemoveObserver(
}
void NetworkServiceDelegate::Initialize(Connector* connector,
- const std::string& url,
+ const std::string& name,
uint32_t id, uint32_t user_id) {
// TODO(erg): Find everything else that writes to the filesystem and
// transition it to proxying mojo:filesystem. We shouldn't have any path
@@ -66,7 +66,7 @@ void NetworkServiceDelegate::Initialize(Connector* connector,
}
context_.reset(new NetworkContext(base_path, this));
- tracing_.Initialize(connector, url);
+ tracing_.Initialize(connector, name);
}
bool NetworkServiceDelegate::AcceptConnection(Connection* connection) {
@@ -89,8 +89,9 @@ void NetworkServiceDelegate::Create(Connection* connection,
void NetworkServiceDelegate::Create(Connection* connection,
InterfaceRequest<CookieStore> request) {
+ // TODO(beng): need to find a way to get content origin.
new CookieStoreImpl(
- context_.get(), GURL(connection->GetRemoteApplicationURL()).GetOrigin(),
+ context_.get(), GURL(),
ref_factory_.CreateRef(), std::move(request));
}

Powered by Google App Engine
This is Rietveld 408576698