| Index: chrome/common/extensions/docs/examples/extensions/gmail/background.html
|
| diff --git a/chrome/common/extensions/docs/examples/extensions/gmail/background.html b/chrome/common/extensions/docs/examples/extensions/gmail/background.html
|
| index a897333689bc152ea394294eb514b90bad757635..0a0563fdbb3c76fac3463a329944bd613bb2034a 100644
|
| --- a/chrome/common/extensions/docs/examples/extensions/gmail/background.html
|
| +++ b/chrome/common/extensions/docs/examples/extensions/gmail/background.html
|
| @@ -84,7 +84,6 @@ LoadingAnimation.prototype.stop = function() {
|
|
|
| chrome.tabs.onUpdated.addListener(function(tabId, changeInfo) {
|
| if (changeInfo.url && isGmailUrl(changeInfo.url)) {
|
| - console.log("saw gmail! updating...");
|
| getInboxCount(function(count) {
|
| updateUnreadCount(count);
|
| });
|
| @@ -111,11 +110,6 @@ function scheduleRequest() {
|
| pollIntervalMax);
|
| delay = Math.round(delay);
|
|
|
| - console.log("Scheduling request...");
|
| - console.log(" exponent: ", exponent);
|
| - console.log(" randomness: ", randomness);
|
| - console.log(" delay: ", delay);
|
| -
|
| window.setTimeout(startRequest, delay);
|
| }
|
|
|
| @@ -156,14 +150,10 @@ function getInboxCount(onSuccess, onError) {
|
| }
|
|
|
| try {
|
| - console.log("request..");
|
| xhr.onreadystatechange = function(){
|
| - console.log("readystate: " + xhr.readyState);
|
| if (xhr.readyState != 4)
|
| return;
|
|
|
| - console.log("responseText: " + xhr.responseText.substring(0, 200) +
|
| - "...");
|
| if (xhr.responseXML) {
|
| var xmlDoc = xhr.responseXML;
|
| var fullCountSet = xmlDoc.evaluate("/gmail:feed/gmail:fullcount",
|
| @@ -173,27 +163,21 @@ function getInboxCount(onSuccess, onError) {
|
| handleSuccess(fullCountNode.textContent);
|
| return;
|
| } else {
|
| - console.log("fullcount not found!");
|
| console.error("Error: feed retrieved, but no <fullcount> node " +
|
| "found");
|
| }
|
| - } else {
|
| - console.log("No responseXML!");
|
| }
|
|
|
| handleError();
|
| }
|
|
|
| xhr.onerror = function(error) {
|
| - console.log("error");
|
| - console.log(error);
|
| handleError();
|
| }
|
|
|
| xhr.open("GET", getFeedUrl(), true);
|
| xhr.send(null);
|
| } catch(e) {
|
| - console.log("ex: " + e);
|
| console.error("exception: " + e);
|
| handleError();
|
| }
|
|
|