Index: sky/engine/platform/fetcher/MojoFetcher.cpp |
diff --git a/sky/engine/platform/fetcher/MojoFetcher.cpp b/sky/engine/platform/fetcher/MojoFetcher.cpp |
index 9fd05b74ddcd195f6f7fc63a7caa53949187bc45..34f9aa6b0adac4c2e22c88a3b918f5fbd28e395d 100644 |
--- a/sky/engine/platform/fetcher/MojoFetcher.cpp |
+++ b/sky/engine/platform/fetcher/MojoFetcher.cpp |
@@ -6,7 +6,7 @@ |
#include "sky/engine/platform/fetcher/MojoFetcher.h" |
#include "base/bind.h" |
-#include "mojo/services/network/public/interfaces/network_service.mojom.h" |
+#include "mojo/services/authenticating_url_loader/public/interfaces/authenticating_url_loader_factory.mojom.h" |
#include "sky/engine/platform/weborigin/KURL.h" |
#include "sky/engine/public/platform/Platform.h" |
@@ -17,8 +17,9 @@ MojoFetcher::MojoFetcher(Client* client, const KURL& url) |
weak_factory_(this) { |
DCHECK(client_); |
- mojo::NetworkService* net = Platform::current()->networkService(); |
- net->CreateURLLoader(GetProxy(&url_loader_)); |
+ mojo::AuthenticatingURLLoaderFactory* url_loader_factory = |
+ Platform::current()->authenticatingURLLoaderFactory(); |
+ url_loader_factory->CreateAuthenticatingURLLoader(GetProxy(&url_loader_)); |
mojo::URLRequestPtr url_request = mojo::URLRequest::New(); |
url_request->url = url.string().toUTF8(); |