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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.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/ServiceWorkerGlobalScope.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
index 595f827c25d78fa3af6ec77d78e6dea546017f1b..a0cecf28ec92f59c72f43a5f7f8e167fd24f8a42 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
@@ -130,7 +130,7 @@ void ServiceWorkerGlobalScope::close(ExceptionState& exceptionState)
ScriptPromise ServiceWorkerGlobalScope::skipWaiting(ScriptState* scriptState)
{
- ExecutionContext* executionContext = scriptState->executionContext();
+ ExecutionContext* executionContext = scriptState->getExecutionContext();
// FIXME: short-term fix, see details at: https://codereview.chromium.org/535193002/.
if (!executionContext)
return ScriptPromise();
@@ -144,9 +144,9 @@ ScriptPromise ServiceWorkerGlobalScope::skipWaiting(ScriptState* scriptState)
void ServiceWorkerGlobalScope::setRegistration(WebPassOwnPtr<WebServiceWorkerRegistration::Handle> handle)
{
- if (!executionContext())
+ if (!getExecutionContext())
return;
- m_registration = ServiceWorkerRegistration::getOrCreate(executionContext(), handle.release());
+ m_registration = ServiceWorkerRegistration::getOrCreate(getExecutionContext(), handle.release());
}
bool ServiceWorkerGlobalScope::addEventListenerInternal(const AtomicString& eventType, PassRefPtrWillBeRawPtr<EventListener> listener, const EventListenerOptions& options)
@@ -203,7 +203,7 @@ void ServiceWorkerGlobalScope::importScripts(const Vector<String>& urls, Excepti
// and get added to and retrieved from the ServiceWorker's script cache.
// FIXME: Revisit in light of the solution to crbug/388375.
for (Vector<String>::const_iterator it = urls.begin(); it != urls.end(); ++it)
- executionContext()->removeURLFromMemoryCache(completeURL(*it));
+ getExecutionContext()->removeURLFromMemoryCache(completeURL(*it));
WorkerGlobalScope::importScripts(urls, exceptionState);
}

Powered by Google App Engine
This is Rietveld 408576698