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

Side by Side Diff: third_party/WebKit/Source/modules/installedapp/InstalledAppController.cpp

Issue 2142753002: Remove LocalFrameLifecycleObserver::willDetachFrameHost() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 5 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 unified diff | Download patch
OLDNEW
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // When detached, the client is no longer valid. 47 // When detached, the client is no longer valid.
48 if (!m_client) { 48 if (!m_client) {
49 callback.release()->onError(); 49 callback.release()->onError();
50 return; 50 return;
51 } 51 }
52 52
53 // Client is expected to take ownership of the callback 53 // Client is expected to take ownership of the callback
54 m_client->getInstalledRelatedApps(url, std::move(callback)); 54 m_client->getInstalledRelatedApps(url, std::move(callback));
55 } 55 }
56 56
57 void InstalledAppController::willDetachFrameHost() 57 void InstalledAppController::contextDestroyed()
58 { 58 {
59 m_client = nullptr; 59 m_client = nullptr;
60 } 60 }
61 61
62 DEFINE_TRACE(InstalledAppController) 62 DEFINE_TRACE(InstalledAppController)
63 { 63 {
64 Supplement<LocalFrame>::trace(visitor); 64 Supplement<LocalFrame>::trace(visitor);
65 LocalFrameLifecycleObserver::trace(visitor); 65 LocalFrameLifecycleObserver::trace(visitor);
66 } 66 }
67 67
68 } // namespace blink 68 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698