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

Unified Diff: Source/modules/storage/StorageArea.cpp

Issue 1017313002: Simplify handling of LocalFrame lifecycle notifications. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: clear context on FDO::contextDestroyed() Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/storage/StorageArea.cpp
diff --git a/Source/modules/storage/StorageArea.cpp b/Source/modules/storage/StorageArea.cpp
index 42514933bcd2ed2d3407886c5f376f873dc99f3b..fca4930738a398961877c2b45dda8dd443cce7c6 100644
--- a/Source/modules/storage/StorageArea.cpp
+++ b/Source/modules/storage/StorageArea.cpp
@@ -150,7 +150,7 @@ bool StorageArea::canAccessStorage(LocalFrame* frame)
return false;
bool result = controller->storageClient()->canAccessStorage(frame, m_storageType);
// Move attention to the new LocalFrame.
- observeFrame(frame);
+ FrameDestructionObserver::setContext(frame);
m_canAccessStorageCachedResult = result;
return result;
}

Powered by Google App Engine
This is Rietveld 408576698