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

Unified Diff: third_party/WebKit/Source/modules/fetch/FetchManager.cpp

Issue 2610653002: Tidy up XMLHttpRequest::endLoading(). (Closed)
Patch Set: alpha conversion + use it at two more call sites Created 3 years, 11 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: third_party/WebKit/Source/modules/fetch/FetchManager.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/FetchManager.cpp b/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
index 39e8daaac8f00a839a7de5edd9c2f199df3a7b22..3937edec1d32ea38f8cee1cc5bc21149a9c8e082 100644
--- a/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
+++ b/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
@@ -556,7 +556,7 @@ void FetchManager::Loader::loadSucceeded() {
m_finished = true;
if (document() && document()->frame() && document()->frame()->page() &&
- m_responseHttpStatusCode >= 200 && m_responseHttpStatusCode < 300) {
+ FetchUtils::isOkStatus(m_responseHttpStatusCode)) {
document()->frame()->page()->chromeClient().ajaxSucceeded(
document()->frame());
}
« no previous file with comments | « third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp ('k') | third_party/WebKit/Source/modules/fetch/Response.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698