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

Unified Diff: chrome/common/extensions/docs/examples/extensions/gmail/background.html

Issue 502081: Temporary fix for Google Mail Checker memory leak. (Closed)
Patch Set: v3 Created 11 years 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 | « no previous file | chrome/common/extensions/docs/examples/extensions/gmail/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « no previous file | chrome/common/extensions/docs/examples/extensions/gmail/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698