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

Unified Diff: Source/modules/vibration/NavigatorVibration.cpp

Issue 255983003: Oilpan: Move all supplements of Page, Document, and WorkerClients to the managed heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: using namespace WebCore Created 6 years, 8 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/vibration/NavigatorVibration.h ('k') | Source/modules/webdatabase/DatabaseClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/vibration/NavigatorVibration.cpp
diff --git a/Source/modules/vibration/NavigatorVibration.cpp b/Source/modules/vibration/NavigatorVibration.cpp
index 2fbef00fe6792345c1f41536071e7da73d83d091..c4a16ffbd122ea0065c500d8efac0e779dbe0cd3 100644
--- a/Source/modules/vibration/NavigatorVibration.cpp
+++ b/Source/modules/vibration/NavigatorVibration.cpp
@@ -157,10 +157,10 @@ bool NavigatorVibration::vibrate(Navigator& navigator, const VibrationPattern& p
NavigatorVibration& NavigatorVibration::from(Page& page)
{
- NavigatorVibration* navigatorVibration = static_cast<NavigatorVibration*>(Supplement<Page>::from(page, supplementName()));
+ NavigatorVibration* navigatorVibration = static_cast<NavigatorVibration*>(WillBeHeapSupplement<Page>::from(page, supplementName()));
if (!navigatorVibration) {
navigatorVibration = new NavigatorVibration(page);
- Supplement<Page>::provideTo(page, supplementName(), adoptPtr(navigatorVibration));
+ WillBeHeapSupplement<Page>::provideTo(page, supplementName(), adoptPtrWillBeNoop(navigatorVibration));
}
return *navigatorVibration;
}
« no previous file with comments | « Source/modules/vibration/NavigatorVibration.h ('k') | Source/modules/webdatabase/DatabaseClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698