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

Unified Diff: third_party/WebKit/Source/core/workers/SharedWorker.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/core/workers/SharedWorker.cpp
diff --git a/third_party/WebKit/Source/core/workers/SharedWorker.cpp b/third_party/WebKit/Source/core/workers/SharedWorker.cpp
index 3f089e8cbc22cd445a50267f680f91e65bcf9fa7..12da7b9b7c5113fe8f9a4e0fa3923d00254e985b 100644
--- a/third_party/WebKit/Source/core/workers/SharedWorker.cpp
+++ b/third_party/WebKit/Source/core/workers/SharedWorker.cpp
@@ -71,8 +71,8 @@ SharedWorker* SharedWorker::create(ExecutionContext* context, const String& url,
// We don't currently support nested workers, so workers can only be created from documents.
Document* document = toDocument(context);
- if (!document->securityOrigin()->canAccessSharedWorkers()) {
- exceptionState.throwSecurityError("Access to shared workers is denied to origin '" + document->securityOrigin()->toString() + "'.");
+ if (!document->getSecurityOrigin()->canAccessSharedWorkers()) {
+ exceptionState.throwSecurityError("Access to shared workers is denied to origin '" + document->getSecurityOrigin()->toString() + "'.");
return nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698