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

Unified Diff: sky/viewer/platform/platform_impl.cc

Issue 935633003: Don't depend on /net for error codes in sky viewer. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Address Adam comment. Created 5 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
« no previous file with comments | « sky/viewer/platform/net_constants.h ('k') | sky/viewer/platform/weburlloader_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/viewer/platform/platform_impl.cc
diff --git a/sky/viewer/platform/platform_impl.cc b/sky/viewer/platform/platform_impl.cc
index c186858f7c157c1ce53e006e24eb161131555bbd..2962d7293c2c7f26238e4f45210b6f5dfa8ccb95 100644
--- a/sky/viewer/platform/platform_impl.cc
+++ b/sky/viewer/platform/platform_impl.cc
@@ -5,7 +5,7 @@
#include "sky/viewer/platform/platform_impl.h"
#include "mojo/public/cpp/application/application_impl.h"
-#include "net/base/net_errors.h"
+#include "sky/viewer/platform/net_constants.h"
#include "sky/viewer/platform/weburlloader_impl.h"
namespace sky {
@@ -37,8 +37,8 @@ blink::WebURLLoader* PlatformImpl::createURLLoader() {
blink::WebURLError PlatformImpl::cancelledError(const blink::WebURL& url)
const {
blink::WebURLError error;
- error.domain = blink::WebString::fromUTF8(net::kErrorDomain);
- error.reason = net::ERR_ABORTED;
+ error.domain = blink::WebString::fromUTF8(kNetErrorDomain);
+ error.reason = kNetErrorAborted;
error.unreachableURL = url;
error.staleCopyInCache = false;
error.isCancellation = true;
« no previous file with comments | « sky/viewer/platform/net_constants.h ('k') | sky/viewer/platform/weburlloader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698