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

Unified Diff: chrome/browser/resources/chromeos/drive_internals.js

Issue 11343004: drive: Add "Delta Update Status" section to chrome:drive-internals (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/drive_internals.js
diff --git a/chrome/browser/resources/chromeos/drive_internals.js b/chrome/browser/resources/chromeos/drive_internals.js
index 7d2d71e7dfe26a2fe684f67aab01aa053c6a12fc..5c90d99ad08610062be261bc9256747000216489 100644
--- a/chrome/browser/resources/chromeos/drive_internals.js
+++ b/chrome/browser/resources/chromeos/drive_internals.js
@@ -165,6 +165,21 @@ function updateAccountMetadata(accountMetadata) {
}
/**
+ * Updates the summary about delta update status.
+ * @param {Object} deltaUpdateStatus Dictionary describing delta update status.
+ */
+function updateDeltaUpdateStatus(deltaUpdateStatus) {
+ $('push-notification-enabled').textContent =
+ deltaUpdateStatus['push-notification-enabled'];
+ $('polling-interval-sec').textContent =
+ deltaUpdateStatus['polling-interval-sec'];
+ $('last-update-check-time').textContent =
+ deltaUpdateStatus['last-update-check-time'];
+ $('last-update-check-error').textContent =
+ deltaUpdateStatus['last-update-check-error'];
+}
+
+/**
* Creates an element named |elementName| containing the content |text|.
* @param {string} elementName Name of the new element to be created.
* @param {string} text Text to be contained in the new element.
« no previous file with comments | « chrome/browser/resources/chromeos/drive_internals.html ('k') | chrome/browser/ui/webui/chromeos/drive_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698