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

Issue 2747773002: Offline easter egg - Fix incorrect score when restarting from a paused game (Closed)

Created:
3 years, 9 months ago by edwardjung
Modified:
3 years, 9 months ago
Reviewers:
Julia Tuttle, mmenke
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Offline easter egg - Fix incorrect score when restarting from a paused game When paused (window resize, orientation change), the canvas frame was being updated with an invalid time causing the score to be incremented by the duration that the game was paused for. Added a check to ensure the game was not paused before handling the key press / touches. BUG=687887 TBR=mmenke@chromium.org Review-Url: https://codereview.chromium.org/2747773002 Cr-Commit-Position: refs/heads/master@{#459138} Committed: https://chromium.googlesource.com/chromium/src/+/cc185fb06a698256572d717750923a2588928519

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix scoping of the pause check #

Patch Set 3 : Refactor onKeyDown to make it clearer #

Patch Set 4 : Remove details button check #

Total comments: 6

Patch Set 5 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -21 lines) Patch
M components/neterror/resources/offline.js View 1 2 3 4 4 chunks +19 lines, -21 lines 0 comments Download

Messages

Total messages: 29 (18 generated)
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2747773002/1
3 years, 9 months ago (2017-03-13 16:03:53 UTC) #9
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
3 years, 9 months ago (2017-03-13 16:03:54 UTC) #11
edwardjung
Hi, Julia PTAL. I'm in the owners file but need a LGTM from a committer. ...
3 years, 9 months ago (2017-03-13 16:09:04 UTC) #13
edwardjung
+mmenke whoever has bandwidth to look at this small fix.
3 years, 9 months ago (2017-03-20 10:48:13 UTC) #15
mmenke
https://codereview.chromium.org/2747773002/diff/1/components/neterror/resources/offline.js File components/neterror/resources/offline.js (right): https://codereview.chromium.org/2747773002/diff/1/components/neterror/resources/offline.js#newcode661 components/neterror/resources/offline.js:661: e.preventDefault(); Is this the right thing to do if ...
3 years, 9 months ago (2017-03-20 15:11:28 UTC) #16
edwardjung
Did some refactoring which hopefully makes it clearer. I still need to test this on ...
3 years, 9 months ago (2017-03-21 18:51:22 UTC) #17
mmenke
https://codereview.chromium.org/2747773002/diff/60001/components/neterror/resources/offline.js File components/neterror/resources/offline.js (right): https://codereview.chromium.org/2747773002/diff/60001/components/neterror/resources/offline.js#newcode663 components/neterror/resources/offline.js:663: if (!this.crashed && !this.paused) { Removing the e.target != ...
3 years, 9 months ago (2017-03-21 18:59:59 UTC) #18
edwardjung
https://codereview.chromium.org/2747773002/diff/60001/components/neterror/resources/offline.js File components/neterror/resources/offline.js (right): https://codereview.chromium.org/2747773002/diff/60001/components/neterror/resources/offline.js#newcode663 components/neterror/resources/offline.js:663: if (!this.crashed && !this.paused) { On 2017/03/21 18:59:58, mmenke ...
3 years, 9 months ago (2017-03-23 10:31:47 UTC) #19
mmenke
LGTM!
3 years, 9 months ago (2017-03-23 15:20:28 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2747773002/80001
3 years, 9 months ago (2017-03-23 17:43:51 UTC) #26
commit-bot: I haz the power
3 years, 9 months ago (2017-03-23 17:59:29 UTC) #29
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/cc185fb06a698256572d71775092...

Powered by Google App Engine
This is Rietveld 408576698