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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.cpp

Issue 1773813007: blink: Rename modules/ method to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-modules: rebase-fixes Created 4 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: third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.cpp b/third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.cpp
index 7bb33ccd7e392979531df37f7c7b5706d7a38641..8602f439e901cc4e440fec7d7fdbd92ccf813edc 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.cpp
@@ -35,7 +35,7 @@ NavigatorServiceWorker& NavigatorServiceWorker::from(Navigator& navigator)
if (!supplement) {
supplement = new NavigatorServiceWorker(navigator);
provideTo(navigator, supplementName(), supplement);
- if (navigator.frame() && navigator.frame()->securityContext()->securityOrigin()->canAccessServiceWorkers()) {
+ if (navigator.frame() && navigator.frame()->securityContext()->getSecurityOrigin()->canAccessServiceWorkers()) {
// Initialize ServiceWorkerContainer too.
supplement->serviceWorker(ASSERT_NO_EXCEPTION);
}
@@ -55,13 +55,13 @@ const char* NavigatorServiceWorker::supplementName()
ServiceWorkerContainer* NavigatorServiceWorker::serviceWorker(ExecutionContext* executionContext, Navigator& navigator, ExceptionState& exceptionState)
{
- ASSERT(!navigator.frame() || executionContext->securityOrigin()->canAccessCheckSuborigins(navigator.frame()->securityContext()->securityOrigin()));
+ ASSERT(!navigator.frame() || executionContext->getSecurityOrigin()->canAccessCheckSuborigins(navigator.frame()->securityContext()->getSecurityOrigin()));
return NavigatorServiceWorker::from(navigator).serviceWorker(exceptionState);
}
ServiceWorkerContainer* NavigatorServiceWorker::serviceWorker(ExceptionState& exceptionState)
{
- if (frame() && !frame()->securityContext()->securityOrigin()->canAccessServiceWorkers()) {
+ if (frame() && !frame()->securityContext()->getSecurityOrigin()->canAccessServiceWorkers()) {
if (frame()->securityContext()->isSandboxed(SandboxOrigin))
exceptionState.throwSecurityError("Service worker is disabled because the context is sandboxed and lacks the 'allow-same-origin' flag.");
else
@@ -70,7 +70,7 @@ ServiceWorkerContainer* NavigatorServiceWorker::serviceWorker(ExceptionState& ex
}
if (!m_serviceWorker && frame()) {
ASSERT(frame()->domWindow());
- m_serviceWorker = ServiceWorkerContainer::create(frame()->domWindow()->executionContext());
+ m_serviceWorker = ServiceWorkerContainer::create(frame()->domWindow()->getExecutionContext());
}
return m_serviceWorker.get();
}

Powered by Google App Engine
This is Rietveld 408576698