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

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

Issue 2630703002: Rename Supplement::host() to Supplement::supplementable() (Closed)
Patch Set: temp Created 3 years, 11 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 2394a3b15384caf4aa761c2632e4a86ebcca6ab1..190f62b3e34faca3ad1e56931ac84d46c534e880 100644
--- a/third_party/WebKit/Source/modules/storage/DOMWindowStorage.cpp
+++ b/third_party/WebKit/Source/modules/storage/DOMWindowStorage.cpp
@@ -56,10 +56,10 @@ Storage* DOMWindowStorage::localStorage(DOMWindow& window,
Storage* DOMWindowStorage::sessionStorage(
ExceptionState& exceptionState) const {
- if (!host()->frame())
+ if (!supplementable()->frame())
return nullptr;
- Document* document = host()->frame()->document();
+ Document* document = supplementable()->frame()->document();
DCHECK(document);
String accessDeniedMessage = "Access is denied for this document.";
if (!document->getSecurityOrigin()->canAccessLocalStorage()) {
@@ -99,10 +99,10 @@ Storage* DOMWindowStorage::sessionStorage(
}
Storage* DOMWindowStorage::localStorage(ExceptionState& exceptionState) const {
- if (!host()->frame())
+ if (!supplementable()->frame())
return nullptr;
- Document* document = host()->frame()->document();
+ Document* document = supplementable()->frame()->document();
DCHECK(document);
String accessDeniedMessage = "Access is denied for this document.";
if (!document->getSecurityOrigin()->canAccessLocalStorage()) {

Powered by Google App Engine
This is Rietveld 408576698