| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/installedapp/InstalledAppController.h" | 5 #include "modules/installedapp/InstalledAppController.h" |
| 6 | 6 |
| 7 #include "core/frame/LocalFrame.h" | 7 #include "core/frame/LocalFrame.h" |
| 8 #include "platform/RuntimeEnabledFeatures.h" | 8 #include "platform/RuntimeEnabledFeatures.h" |
| 9 #include "public/platform/WebSecurityOrigin.h" | 9 #include "public/platform/WebSecurityOrigin.h" |
| 10 | 10 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 // When detached, the client is no longer valid. | 44 // When detached, the client is no longer valid. |
| 45 if (!m_client) { | 45 if (!m_client) { |
| 46 callback.release()->onError(); | 46 callback.release()->onError(); |
| 47 return; | 47 return; |
| 48 } | 48 } |
| 49 | 49 |
| 50 // Client is expected to take ownership of the callback | 50 // Client is expected to take ownership of the callback |
| 51 m_client->getInstalledRelatedApps(url, std::move(callback)); | 51 m_client->getInstalledRelatedApps(url, std::move(callback)); |
| 52 } | 52 } |
| 53 | 53 |
| 54 void InstalledAppController::frameDestroyed() { | 54 void InstalledAppController::contextDestroyed() { |
| 55 m_client = nullptr; | 55 m_client = nullptr; |
| 56 DOMWindowProperty::frameDestroyed(); | 56 DOMWindowProperty::contextDestroyed(); |
| 57 } | 57 } |
| 58 | 58 |
| 59 DEFINE_TRACE(InstalledAppController) { | 59 DEFINE_TRACE(InstalledAppController) { |
| 60 Supplement<LocalFrame>::trace(visitor); | 60 Supplement<LocalFrame>::trace(visitor); |
| 61 DOMWindowProperty::trace(visitor); | 61 DOMWindowProperty::trace(visitor); |
| 62 } | 62 } |
| 63 | 63 |
| 64 } // namespace blink | 64 } // namespace blink |
| OLD | NEW |