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

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

Issue 2709263003: Removed FrameHost::settings() (Closed)
Patch Set: Switched if statement to use page 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..a0e79608f0ce619e2ae0375630da5b4d7b96c545 100644
--- a/third_party/WebKit/Source/modules/storage/DOMWindowStorage.cpp
+++ b/third_party/WebKit/Source/modules/storage/DOMWindowStorage.cpp
@@ -5,7 +5,6 @@
#include "modules/storage/DOMWindowStorage.h"
#include "core/dom/Document.h"
-#include "core/frame/FrameHost.h"
#include "core/frame/LocalDOMWindow.h"
#include "core/frame/LocalFrame.h"
#include "core/frame/Settings.h"
@@ -124,8 +123,8 @@ Storage* DOMWindowStorage::localStorage(ExceptionState& exceptionState) const {
return m_localStorage;
}
// FIXME: Seems this check should be much higher?
- FrameHost* host = document->frameHost();
- if (!host || !host->settings().getLocalStorageEnabled())
+ Page* page = document->page();
+ if (!page || !page->settings().getLocalStorageEnabled())
return nullptr;
StorageArea* storageArea =
StorageNamespace::localStorageArea(document->getSecurityOrigin());
« no previous file with comments | « third_party/WebKit/Source/core/frame/VisualViewport.cpp ('k') | third_party/WebKit/Source/web/InspectorOverlay.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698