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

Unified Diff: third_party/WebKit/Source/modules/fetch/GlobalFetch.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/fetch/GlobalFetch.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp b/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp
index 2b988fd6dd3663baaf04d71b2b6966d35d01b6cf..323b05d6e0f6c7b70d27bd26aa0406c746817b61 100644
--- a/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp
+++ b/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp
@@ -82,12 +82,12 @@ GlobalFetch::ScopedFetcher::~ScopedFetcher()
WeakPtrWillBeRawPtr<GlobalFetch::ScopedFetcher> GlobalFetch::ScopedFetcher::from(DOMWindow& window)
{
- return GlobalFetchImpl<LocalDOMWindow>::from(toLocalDOMWindow(window), window.executionContext());
+ return GlobalFetchImpl<LocalDOMWindow>::from(toLocalDOMWindow(window), window.getExecutionContext());
}
WeakPtrWillBeRawPtr<GlobalFetch::ScopedFetcher> GlobalFetch::ScopedFetcher::from(WorkerGlobalScope& worker)
{
- return GlobalFetchImpl<WorkerGlobalScope>::from(worker, worker.executionContext());
+ return GlobalFetchImpl<WorkerGlobalScope>::from(worker, worker.getExecutionContext());
}
DEFINE_TRACE(GlobalFetch::ScopedFetcher)
@@ -96,14 +96,14 @@ DEFINE_TRACE(GlobalFetch::ScopedFetcher)
ScriptPromise GlobalFetch::fetch(ScriptState* scriptState, DOMWindow& window, const RequestInfo& input, const Dictionary& init, ExceptionState& exceptionState)
{
- UseCounter::count(window.executionContext(), UseCounter::Fetch);
+ UseCounter::count(window.getExecutionContext(), UseCounter::Fetch);
return ScopedFetcher::from(window)->fetch(scriptState, input, init, exceptionState);
}
ScriptPromise GlobalFetch::fetch(ScriptState* scriptState, WorkerGlobalScope& worker, const RequestInfo& input, const Dictionary& init, ExceptionState& exceptionState)
{
// Note that UseCounter doesn't work with SharedWorker or ServiceWorker.
- UseCounter::count(worker.executionContext(), UseCounter::Fetch);
+ UseCounter::count(worker.getExecutionContext(), UseCounter::Fetch);
return ScopedFetcher::from(worker)->fetch(scriptState, input, init, exceptionState);
}

Powered by Google App Engine
This is Rietveld 408576698