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

Side by Side Diff: third_party/WebKit/Source/modules/quota/StorageManager.cpp

Issue 2552993002: Rename activeDOMObjectsAreStopped to isContextDestroyed (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/quota/StorageManager.h" 5 #include "modules/quota/StorageManager.h"
6 6
7 #include "bindings/core/v8/ScriptPromiseResolver.h" 7 #include "bindings/core/v8/ScriptPromiseResolver.h"
8 #include "bindings/modules/v8/V8StorageEstimate.h" 8 #include "bindings/modules/v8/V8StorageEstimate.h"
9 #include "core/dom/DOMException.h" 9 #include "core/dom/DOMException.h"
10 #include "core/dom/Document.h" 10 #include "core/dom/Document.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // TODO(rockot): Clean this up once renderer shutdown sequence is fixed. 154 // TODO(rockot): Clean this up once renderer shutdown sequence is fixed.
155 return; 155 return;
156 } 156 }
157 157
158 m_permissionService.reset(); 158 m_permissionService.reset();
159 } 159 }
160 160
161 void StorageManager::permissionRequestComplete(ScriptPromiseResolver* resolver, 161 void StorageManager::permissionRequestComplete(ScriptPromiseResolver* resolver,
162 PermissionStatus status) { 162 PermissionStatus status) {
163 if (!resolver->getExecutionContext() || 163 if (!resolver->getExecutionContext() ||
164 resolver->getExecutionContext()->activeDOMObjectsAreStopped()) 164 resolver->getExecutionContext()->isContextDestroyed())
165 return; 165 return;
166 resolver->resolve(status == PermissionStatus::GRANTED); 166 resolver->resolve(status == PermissionStatus::GRANTED);
167 } 167 }
168 168
169 } // namespace blink 169 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698