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

Unified Diff: components/gcm_driver/resources/gcm_internals.js

Issue 2450383003: [GCM] Reset store on checkin rejection and add checkin state to internals (Closed)
Patch Set: Fix mcs probe Created 4 years, 1 month 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 | « components/gcm_driver/resources/gcm_internals.html ('k') | google_apis/gcm/engine/checkin_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/gcm_driver/resources/gcm_internals.js
diff --git a/components/gcm_driver/resources/gcm_internals.js b/components/gcm_driver/resources/gcm_internals.js
index 5edc484c2b09c7dd566f5f0979fa9f39f2641c10..94244fc4481e97ab2480f2c5e0e7cd1ea1914bed 100644
--- a/components/gcm_driver/resources/gcm_internals.js
+++ b/components/gcm_driver/resources/gcm_internals.js
@@ -38,6 +38,8 @@ cr.define('gcmInternals', function() {
setIfExists(info, 'gcmClientState', 'gcm-client-state');
setIfExists(info, 'connectionClientCreated', 'connection-client-created');
setIfExists(info, 'connectionState', 'connection-state');
+ setIfExists(info, 'lastCheckin', 'last-checkin');
+ setIfExists(info, 'nextCheckin', 'next-checkin');
setIfExists(info, 'registeredAppIds', 'registered-app-ids');
setIfExists(info, 'sendQueueSize', 'send-queue-size');
setIfExists(info, 'resendQueueSize', 'resend-queue-size');
@@ -105,6 +107,9 @@ cr.define('gcmInternals', function() {
$('recording').onclick = setRecording;
$('clear-logs').onclick = clearLogs;
chrome.send('getGcmInternalsInfo', [false]);
+
+ // Recording defaults to on.
+ chrome.send('setGcmInternalsRecording', [true]);
}
/**
« no previous file with comments | « components/gcm_driver/resources/gcm_internals.html ('k') | google_apis/gcm/engine/checkin_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698