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

Unified Diff: sky/framework/debug/shake-to-reload.sky

Issue 987103003: Fix shake-to-reload (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/debug/shake-to-reload.sky
diff --git a/sky/framework/debug/shake-to-reload.sky b/sky/framework/debug/shake-to-reload.sky
index ac0a894cc4f9ccefec0d3ddcffb70102ad9d01a6..2fc8bbac65482c07f778cbdddc8eda193ff1ce6f 100644
--- a/sky/framework/debug/shake-to-reload.sky
+++ b/sky/framework/debug/shake-to-reload.sky
@@ -9,10 +9,8 @@ class _ShakeDetector extends SensorListener {
SensorServiceProxy sensorService = new SensorServiceProxy.unbound();
shell.requestService(sensorService);
- _stub = new SensorListenerStub.unbound()
- ..delegate = this;
+ _stub = new SensorListenerStub.unbound()..impl = this;
sensorService.ptr.addListener(SensorType_ACCELEROMETER, _stub);
- _stub.listen();
}
void onAccuracyChanged(int accuracy) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698