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

Unified Diff: Source/modules/battery/BatteryManager.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/battery/BatteryManager.h ('k') | Source/modules/battery/NavigatorBattery.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/battery/BatteryManager.cpp
diff --git a/Source/modules/battery/BatteryManager.cpp b/Source/modules/battery/BatteryManager.cpp
index 9417f49449c311612f5bda844b31439465c288d1..aae81bcf1448b25da6e871ea668cfcd90650432e 100644
--- a/Source/modules/battery/BatteryManager.cpp
+++ b/Source/modules/battery/BatteryManager.cpp
@@ -12,9 +12,9 @@
namespace WebCore {
-PassRefPtr<BatteryManager> BatteryManager::create(ExecutionContext* context)
+PassRefPtrWillBeRawPtr<BatteryManager> BatteryManager::create(ExecutionContext* context)
{
- return adoptRef(new BatteryManager(context));
+ return adoptRefWillBeRefCountedGarbageCollected(new BatteryManager(context));
}
BatteryManager::~BatteryManager()
« no previous file with comments | « Source/modules/battery/BatteryManager.h ('k') | Source/modules/battery/NavigatorBattery.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698