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

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

Issue 98583002: Add Drive connection status info to chrome:drive-internals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
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 8ac6e86883b892f11b9feee724b0546ff87f49fc..d83fb352d4ce1a9047bbdcd5e065e35a70a8c459 100644
--- a/chrome/browser/resources/chromeos/drive_internals.js
+++ b/chrome/browser/resources/chromeos/drive_internals.js
@@ -35,12 +35,13 @@ function updateDriveRelatedPreferences(preferences) {
}
/**
- * Updates the Authentication Status section.
- * @param {Object} authStatus Dictionary containing auth status.
+ * Updates the Connection Status section.
+ * @param {Object} connStatus Dictionary containing connection status.
*/
-function updateAuthStatus(authStatus) {
- $('has-refresh-token').textContent = authStatus['has-refresh-token'];
- $('has-access-token').textContent = authStatus['has-access-token'];
+function updateConnectionStatus(connStatus) {
+ $('connection-status').textContent = connStatus['status'];
+ $('has-refresh-token').textContent = connStatus['has-refresh-token'];
+ $('has-access-token').textContent = connStatus['has-access-token'];
}
/**
« 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