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

Issue 37083004: Start/Stop Cards Polling Depending on Notification Center State (Closed)

Created:
7 years, 1 month ago by robliao
Modified:
7 years, 1 month ago
CC:
chromium-reviews, arv+watch_chromium.org, govind1
Visibility:
Public.

Description

Start/Stop Cards Polling Depending on Notification Center State Added logic to monitor the state of our notification center checkbox and to start or stop polling if the checkbox is checked or unchecked respectively. BUG=164227 TEST=Get the Notification Center to show up. Click on the Settings Icon (Cog). Uncheck or check the Google Now checkbox. When unchecked, server pings should stop and Chrome should stop running under background mode via the removal of the background permission. When checked, Chrome Now spins back up as long as the user is signed in. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=230715

Patch Set 1 #

Total comments: 2

Patch Set 2 : CR Feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -13 lines) Patch
M chrome/browser/resources/google_now/background.js View 1 8 chunks +23 lines, -7 lines 0 comments Download
M chrome/browser/resources/google_now/background_test_util.js View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/google_now/background_unittest.gtestjs View 11 chunks +28 lines, -6 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
robliao
7 years, 1 month ago (2013-10-23 22:01:05 UTC) #1
vadimt
Could you include "TEST=" in the CL description? https://codereview.chromium.org/37083004/diff/1/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/37083004/diff/1/chrome/browser/resources/google_now/background.js#newcode279 chrome/browser/resources/google_now/background.js:279: // ...
7 years, 1 month ago (2013-10-23 22:29:13 UTC) #2
robliao
Done https://codereview.chromium.org/37083004/diff/1/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/37083004/diff/1/chrome/browser/resources/google_now/background.js#newcode279 chrome/browser/resources/google_now/background.js:279: // TODO(vadimt): Figure out what to do when ...
7 years, 1 month ago (2013-10-23 22:54:44 UTC) #3
vadimt
LGTM Please add to "TEST=" that server pings should stop, and background permission should go ...
7 years, 1 month ago (2013-10-24 00:12:14 UTC) #4
robliao
Done
7 years, 1 month ago (2013-10-24 00:13:39 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robliao@chromium.org/37083004/40001
7 years, 1 month ago (2013-10-24 00:14:51 UTC) #6
govind
Thanks, Robert & Vadim! We will add a test case for this. On Wed, Oct ...
7 years, 1 month ago (2013-10-24 00:16:14 UTC) #7
commit-bot: I haz the power
List of reviewers changed. govind@google.com did a drive-by without LGTM'ing!
7 years, 1 month ago (2013-10-24 03:45:57 UTC) #8
vadimt
On 2013/10/24 03:45:57, I haz the power (commit-bot) wrote: > List of reviewers changed. https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=govind@google.com ...
7 years, 1 month ago (2013-10-24 14:22:53 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robliao@chromium.org/37083004/40001
7 years, 1 month ago (2013-10-24 14:24:00 UTC) #10
commit-bot: I haz the power
7 years, 1 month ago (2013-10-24 14:28:04 UTC) #11
Message was sent while issue was closed.
Change committed as 230715

Powered by Google App Engine
This is Rietveld 408576698