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

Unified Diff: third_party/WebKit/Source/modules/storage/DOMWindowStorage.cpp

Issue 2709263003: Removed FrameHost::settings() (Closed)
Patch Set: Created 3 years, 10 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: third_party/WebKit/Source/modules/storage/DOMWindowStorage.cpp
diff --git a/third_party/WebKit/Source/modules/storage/DOMWindowStorage.cpp b/third_party/WebKit/Source/modules/storage/DOMWindowStorage.cpp
index 190f62b3e34faca3ad1e56931ac84d46c534e880..79de80a44d09f504646c4236d327b9ec277a7043 100644
--- a/third_party/WebKit/Source/modules/storage/DOMWindowStorage.cpp
+++ b/third_party/WebKit/Source/modules/storage/DOMWindowStorage.cpp
@@ -125,7 +125,7 @@ Storage* DOMWindowStorage::localStorage(ExceptionState& exceptionState) const {
}
// FIXME: Seems this check should be much higher?
FrameHost* host = document->frameHost();
- if (!host || !host->settings().getLocalStorageEnabled())
+ if (!host || !host->page().settings().getLocalStorageEnabled())
return nullptr;
StorageArea* storageArea =
StorageNamespace::localStorageArea(document->getSecurityOrigin());

Powered by Google App Engine
This is Rietveld 408576698