| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |