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

Side by Side Diff: chrome/browser/resources/gcm_internals.js

Issue 344033002: Remove GCMDriver::IsGCMClientReady (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('gcmInternals', function() { 5 cr.define('gcmInternals', function() {
6 'use strict'; 6 'use strict';
7 7
8 var isRecording = false; 8 var isRecording = false;
9 9
10 /** 10 /**
(...skipping 15 matching lines...) Expand all
26 * Display device informations. 26 * Display device informations.
27 * @param {!Object} info A dictionary of device infos to be displayed. 27 * @param {!Object} info A dictionary of device infos to be displayed.
28 */ 28 */
29 function displayDeviceInfo(info) { 29 function displayDeviceInfo(info) {
30 setIfExists(info, 'androidId', 'android-id'); 30 setIfExists(info, 'androidId', 'android-id');
31 setIfExists(info, 'profileServiceCreated', 'profile-service-created'); 31 setIfExists(info, 'profileServiceCreated', 'profile-service-created');
32 setIfExists(info, 'gcmEnabled', 'gcm-enabled'); 32 setIfExists(info, 'gcmEnabled', 'gcm-enabled');
33 setIfExists(info, 'signedInUserName', 'signed-in-username'); 33 setIfExists(info, 'signedInUserName', 'signed-in-username');
34 setIfExists(info, 'gcmClientCreated', 'gcm-client-created'); 34 setIfExists(info, 'gcmClientCreated', 'gcm-client-created');
35 setIfExists(info, 'gcmClientState', 'gcm-client-state'); 35 setIfExists(info, 'gcmClientState', 'gcm-client-state');
36 setIfExists(info, 'gcmClientReady', 'gcm-client-ready');
37 setIfExists(info, 'connectionClientCreated', 'connection-client-created'); 36 setIfExists(info, 'connectionClientCreated', 'connection-client-created');
38 setIfExists(info, 'connectionState', 'connection-state'); 37 setIfExists(info, 'connectionState', 'connection-state');
39 setIfExists(info, 'registeredAppIds', 'registered-app-ids'); 38 setIfExists(info, 'registeredAppIds', 'registered-app-ids');
40 setIfExists(info, 'sendQueueSize', 'send-queue-size'); 39 setIfExists(info, 'sendQueueSize', 'send-queue-size');
41 setIfExists(info, 'resendQueueSize', 'resend-queue-size'); 40 setIfExists(info, 'resendQueueSize', 'resend-queue-size');
42 } 41 }
43 42
44 /** 43 /**
45 * Remove all the child nodes of the element. 44 * Remove all the child nodes of the element.
46 * @param {HTMLElement} element A HTML element. 45 * @param {HTMLElement} element A HTML element.
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 } 140 }
142 141
143 // Return an object with all of the exports. 142 // Return an object with all of the exports.
144 return { 143 return {
145 initialize: initialize, 144 initialize: initialize,
146 setGcmInternalsInfo: setGcmInternalsInfo, 145 setGcmInternalsInfo: setGcmInternalsInfo,
147 }; 146 };
148 }); 147 });
149 148
150 document.addEventListener('DOMContentLoaded', gcmInternals.initialize); 149 document.addEventListener('DOMContentLoaded', gcmInternals.initialize);
OLDNEW
« no previous file with comments | « chrome/browser/resources/gcm_internals.html ('k') | chrome/browser/ui/webui/gcm_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698