Commit ca447a19 authored by Austin Tankiang's avatar Austin Tankiang Committed by Commit Bot

Remove legacy drive related code in drive-internals

Bug: 1003238
Change-Id: I4e981339394c3ff7140b54db0e7dad8a4245cb10
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1806158
Commit-Queue: Austin Tankiang <austinct@chromium.org>
Reviewed-by: default avatarSam McNally <sammc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#697094}
parent 79376c45
......@@ -6,10 +6,6 @@
font-size: small;
}
#file-system-contents {
font-size: small;
}
#cache-contents {
font-size: small;
}
......
......@@ -21,14 +21,6 @@
<li>Push notifications enabled:
<span id="push-notification-enabled"></span>
</li>
<li>
Has refresh token: <span id="has-refresh-token"></span>
<button id="button-clear-refresh-token">clear</button>
</li>
<li>
Has access token: <span id="has-access-token"></span>
<button id="button-clear-access-token">clear</button>
</li>
</ul>
</section>
......@@ -89,12 +81,6 @@
</table>
</section>
<section id="file-system-contents-section" hidden>
<h2>File System Contents</h2>
<button id="button-show-file-entries">Show</button>
<div id="file-system-contents"></div>
</section>
<section id="path-configurations-section" hidden>
<h2>Path Configurations</h2>
<ul id="path-configurations">
......
......@@ -34,8 +34,6 @@ function updateConnectionStatus(connStatus) {
$('connection-status').textContent = connStatus['status'];
$('push-notification-enabled').textContent =
connStatus['push-notification-enabled'];
$('has-refresh-token').textContent = connStatus['has-refresh-token'];
$('has-access-token').textContent = connStatus['has-access-token'];
}
/**
......@@ -77,17 +75,6 @@ function updateGCacheContents(gcacheContents, gcacheSummary) {
toMegaByteString(gcacheSummary['total_size']);
}
/**
* Updates the File System Contents section. The function is called from the
* C++ side repeatedly with contents of a directory.
* @param {string} directoryContentsAsText Pre-formatted string representation
* of contents a directory in the file system.
*/
function updateFileSystemContents(directoryContentsAsText) {
var div = $('file-system-contents');
div.appendChild(createElementFromText('pre', directoryContentsAsText));
}
/**
* Updates the Cache Contents section.
* @param {Object} cacheEntry Dictionary describing a cache entry.
......@@ -302,25 +289,11 @@ document.addEventListener('DOMContentLoaded', function() {
updateToc();
$('button-clear-access-token').addEventListener('click', function() {
chrome.send('clearAccessToken');
});
$('button-clear-refresh-token').addEventListener('click', function() {
chrome.send('clearRefreshToken');
});
$('button-reset-drive-filesystem').addEventListener('click', function() {
$('reset-status-text').textContent = 'resetting...';
chrome.send('resetDriveFileSystem');
});
$('button-show-file-entries').addEventListener('click', function() {
var button = $('button-show-file-entries');
button.parentNode.removeChild(button);
chrome.send('listFileEntries');
});
$('button-export-logs').addEventListener('click', function() {
$('button-export-logs').setAttribute('disabled', 'true');
chrome.send('zipLogs');
......
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