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

Unified Diff: device/wake_lock/public/interfaces/wake_lock_service.mojom

Issue 2843353003: Move ownership of PowerSaveBlocker from WakeLockServiceContext to WakeLockServiceImpl (Closed)
Patch Set: seperate this CL into 2CLs Created 3 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
Index: device/wake_lock/public/interfaces/wake_lock_service.mojom
diff --git a/device/wake_lock/public/interfaces/wake_lock_service.mojom b/device/wake_lock/public/interfaces/wake_lock_service.mojom
index 8c6e7a494c0f32fd97537713ab2222585860d65f..c526f5ec2dbd5bee8b7a92ecc5dc0a367afffb63 100644
--- a/device/wake_lock/public/interfaces/wake_lock_service.mojom
+++ b/device/wake_lock/public/interfaces/wake_lock_service.mojom
@@ -8,4 +8,8 @@ module device.mojom;
interface WakeLockService {
RequestWakeLock();
CancelWakeLock();
+ AddClient(WakeLockService& wake_lock);
blundell 2017/05/04 15:40:50 Let's document all 3 of these methods.
ke.he 2017/05/05 08:58:00 Done.
+
+ // Test-only method that returns whethere a wake lock is currently active.
blundell 2017/05/04 15:40:50 nit: s/whethere/whether
ke.he 2017/05/05 08:58:00 Done.
+ HasWakeLockForTests() => (bool result);
};

Powered by Google App Engine
This is Rietveld 408576698