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

Unified Diff: third_party/WebKit/Source/modules/presentation/PresentationAvailabilityTest.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/presentation/PresentationAvailabilityTest.cpp
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationAvailabilityTest.cpp b/third_party/WebKit/Source/modules/presentation/PresentationAvailabilityTest.cpp
index 545a1404435501fb167e6ae4f2920220d654a7ba..664b62344108b14a94205faecfd08eb13a6b0012 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationAvailabilityTest.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationAvailabilityTest.cpp
@@ -27,12 +27,12 @@ public:
void SetUp() override
{
- m_scope.scriptState()->setExecutionContext(&m_page->document());
+ m_scope.getScriptState()->setExecutionContext(&m_page->document());
}
Page& page() { return m_page->page(); }
LocalFrame& frame() { return m_page->frame(); }
- ScriptState* scriptState() { return m_scope.scriptState(); }
+ ScriptState* getScriptState() { return m_scope.getScriptState(); }
private:
V8TestingScope m_scope;
@@ -42,7 +42,7 @@ private:
TEST_F(PresentationAvailabilityTest, NoPageVisibilityChangeAfterDetach)
{
const KURL url = URLTestHelpers::toKURL("https://example.com");
- Persistent<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState());
+ Persistent<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(getScriptState());
Persistent<PresentationAvailability> availability = PresentationAvailability::take(resolver, url, false);
// These two calls should not crash.

Powered by Google App Engine
This is Rietveld 408576698