Commit ed255b0f authored by vadimt@chromium.org's avatar vadimt@chromium.org

Small improvement of diagnostics.

BUG=164227
TEST=No

Review URL: https://chromiumcodereview.appspot.com/14057020

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195356 0039d316-1c4b-4281-b951-d872f2087c98
parent ba297c59
...@@ -284,7 +284,8 @@ function parseAndShowNotificationCards(response, callback) { ...@@ -284,7 +284,8 @@ function parseAndShowNotificationCards(response, callback) {
* @param {function()} callback Completion callback. * @param {function()} callback Completion callback.
*/ */
function requestNotificationCards(requestParameters, callback) { function requestNotificationCards(requestParameters, callback) {
console.log('requestNotificationCards ' + requestParameters); console.log('requestNotificationCards ' + requestParameters + ' from ' +
NOTIFICATION_CARDS_URL);
recordEvent(DiagnosticEvent.REQUEST_FOR_CARDS_TOTAL); recordEvent(DiagnosticEvent.REQUEST_FOR_CARDS_TOTAL);
// TODO(vadimt): Figure out how to send user's identity to the server. // TODO(vadimt): Figure out how to send user's identity to the server.
var request = new XMLHttpRequest(); var request = new XMLHttpRequest();
...@@ -375,7 +376,8 @@ function updateNotificationsCards() { ...@@ -375,7 +376,8 @@ function updateNotificationsCards() {
* parameter. * parameter.
*/ */
function requestCardDismissal(notificationId, callbackBoolean) { function requestCardDismissal(notificationId, callbackBoolean) {
console.log('requestDismissingCard ' + notificationId); console.log('requestDismissingCard ' + notificationId + ' from ' +
NOTIFICATION_CARDS_URL);
recordEvent(DiagnosticEvent.DISMISS_REQUEST_TOTAL); recordEvent(DiagnosticEvent.DISMISS_REQUEST_TOTAL);
// Send a dismiss request to the server. // Send a dismiss request to the server.
var requestParameters = 'id=' + notificationId; var requestParameters = 'id=' + notificationId;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment