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

Unified Diff: third_party/WebKit/Source/modules/geolocation/Geolocation.cpp

Issue 2138663003: Rename PageLifecycleObserver to PageVisibilityObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/geolocation/Geolocation.cpp
diff --git a/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp b/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp
index 51be8a0b79fc8e4a10691f7d32da3481c0930dec..bccab75711e7d38917d779f3e005a81f1487e61a 100644
--- a/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp
+++ b/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp
@@ -92,7 +92,7 @@ Geolocation* Geolocation::create(ExecutionContext* context)
Geolocation::Geolocation(ExecutionContext* context)
: ContextLifecycleObserver(context)
- , PageLifecycleObserver(document()->page())
+ , PageVisibilityObserver(document()->page())
, m_geolocationPermission(PermissionUnknown)
{
}
@@ -109,7 +109,7 @@ DEFINE_TRACE(Geolocation)
visitor->trace(m_pendingForPermissionNotifiers);
visitor->trace(m_lastPosition);
ContextLifecycleObserver::trace(visitor);
- PageLifecycleObserver::trace(visitor);
+ PageVisibilityObserver::trace(visitor);
}
Document* Geolocation::document() const
@@ -131,7 +131,7 @@ void Geolocation::contextDestroyed()
m_pendingForPermissionNotifiers.clear();
m_lastPosition = nullptr;
ContextLifecycleObserver::clearContext();
- PageLifecycleObserver::clearContext();
+ PageVisibilityObserver::clearContext();
}
void Geolocation::recordOriginTypeAccess() const
« no previous file with comments | « third_party/WebKit/Source/modules/geolocation/Geolocation.h ('k') | third_party/WebKit/Source/modules/nfc/NFC.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698