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

Unified Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp

Issue 1417023006: bindings: Refactors BindingSecurity::shouldAllowAccessToXXX. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Synced. Created 5 years, 1 month 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/core/frame/LocalDOMWindow.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
index f5b33441cc0e0473e4ac3047ac25ea842519754f..f0f202f9dfe6d2e34238e6173984919eea3e587e 100644
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
@@ -474,6 +474,11 @@ ExecutionContext* LocalDOMWindow::executionContext() const
return m_document.get();
}
+const LocalDOMWindow* LocalDOMWindow::toDOMWindow() const
+{
+ return this;
+}
+
LocalDOMWindow* LocalDOMWindow::toDOMWindow()
{
return this;
@@ -1434,7 +1439,7 @@ void LocalDOMWindow::finishedLoading()
}
}
-void LocalDOMWindow::printErrorMessage(const String& message)
+void LocalDOMWindow::printErrorMessage(const String& message) const
{
if (!isCurrentlyDisplayedInFrame())
return;

Powered by Google App Engine
This is Rietveld 408576698