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

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

Issue 2557023002: Remove FetchManager::m_isStopped (Closed)
Patch Set: temp Created 4 years 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 198aacf5f99f4e40b6c31960578d37c22fad1206..1d1ad5a3effd72a4f330bf4985da07dc788c450e 100644
--- a/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
+++ b/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
@@ -895,7 +895,7 @@ FetchManager* FetchManager::create(ExecutionContext* executionContext) {
}
FetchManager::FetchManager(ExecutionContext* executionContext)
- : ContextLifecycleObserver(executionContext), m_isStopped(false) {}
+ : ContextLifecycleObserver(executionContext) {}
ScriptPromise FetchManager::fetch(ScriptState* scriptState,
FetchRequestData* request) {
@@ -913,8 +913,6 @@ ScriptPromise FetchManager::fetch(ScriptState* scriptState,
}
void FetchManager::contextDestroyed() {
- ASSERT(!m_isStopped);
- m_isStopped = true;
for (auto& loader : m_loaders)
loader->dispose();
}

Powered by Google App Engine
This is Rietveld 408576698