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

Unified Diff: Source/platform/network/ResourceError.cpp

Issue 1178273007: Add a flag for when a navigation is ignored (e.g. by shouldOverrideUrl). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 | « Source/platform/network/ResourceError.h ('k') | public/platform/WebURLError.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/network/ResourceError.cpp
diff --git a/Source/platform/network/ResourceError.cpp b/Source/platform/network/ResourceError.cpp
index a9d9e2f6178291dff27789cd9d954e159ac27ecd..4e8efdbe582d7cebf8db8e6eca6e9df3e58985bd 100644
--- a/Source/platform/network/ResourceError.cpp
+++ b/Source/platform/network/ResourceError.cpp
@@ -60,6 +60,7 @@ ResourceError ResourceError::copy() const
errorCopy.m_isAccessCheck = m_isAccessCheck;
errorCopy.m_isTimeout = m_isTimeout;
errorCopy.m_staleCopyInCache = m_staleCopyInCache;
+ errorCopy.m_wasIgnoredByHandler = m_wasIgnoredByHandler;
return errorCopy;
}
@@ -95,6 +96,9 @@ bool ResourceError::compare(const ResourceError& a, const ResourceError& b)
if (a.staleCopyInCache() != b.staleCopyInCache())
return false;
+ if (a.wasIgnoredByHandler() != b.wasIgnoredByHandler())
+ return false;
+
return true;
}
« no previous file with comments | « Source/platform/network/ResourceError.h ('k') | public/platform/WebURLError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698