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

Unified Diff: Source/modules/geolocation/NavigatorGeolocation.cpp

Issue 204063002: Oilpan: add transition types to Navigator and its supplements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adjust use of 'virtual' Created 6 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
« no previous file with comments | « Source/modules/geolocation/NavigatorGeolocation.h ('k') | Source/modules/quota/NavigatorStorageQuota.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/geolocation/NavigatorGeolocation.cpp
diff --git a/Source/modules/geolocation/NavigatorGeolocation.cpp b/Source/modules/geolocation/NavigatorGeolocation.cpp
index 29683b880b90468cf06d35ee1cc19f03924d0983..764ef3c70ab932e7caffcebf830bdeb66e1910cc 100644
--- a/Source/modules/geolocation/NavigatorGeolocation.cpp
+++ b/Source/modules/geolocation/NavigatorGeolocation.cpp
@@ -46,10 +46,10 @@ const char* NavigatorGeolocation::supplementName()
NavigatorGeolocation& NavigatorGeolocation::from(Navigator& navigator)
{
- NavigatorGeolocation* supplement = static_cast<NavigatorGeolocation*>(Supplement<Navigator>::from(navigator, supplementName()));
+ NavigatorGeolocation* supplement = static_cast<NavigatorGeolocation*>(WillBeHeapSupplement<Navigator>::from(navigator, supplementName()));
if (!supplement) {
supplement = new NavigatorGeolocation(navigator.frame());
- provideTo(navigator, supplementName(), adoptPtr(supplement));
+ provideTo(navigator, supplementName(), adoptPtrWillBeNoop(supplement));
}
return *supplement;
}
@@ -66,4 +66,9 @@ Geolocation* NavigatorGeolocation::geolocation() const
return m_geolocation.get();
}
+void NavigatorGeolocation::trace(Visitor* visitor)
+{
+ visitor->trace(m_geolocation);
+}
+
} // namespace WebCore
« no previous file with comments | « Source/modules/geolocation/NavigatorGeolocation.h ('k') | Source/modules/quota/NavigatorStorageQuota.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698