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

Unified Diff: trunk/src/chrome/browser/resources/sync_file_system_internals/sync_service.js

Issue 14753008: Revert 198867 "Gets the initial sync service status. In the next..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 7 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: trunk/src/chrome/browser/resources/sync_file_system_internals/sync_service.js
===================================================================
--- trunk/src/chrome/browser/resources/sync_file_system_internals/sync_service.js (revision 198868)
+++ trunk/src/chrome/browser/resources/sync_file_system_internals/sync_service.js (working copy)
@@ -1,43 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-/**
- * WebUI to monitor the Sync File System Service.
- */
-var syncService = (function() {
-'use strict';
-
-/**
- * Request Sync Service Status.
- * Asynchronous, result via getServiceStatusResult.
- */
-function getServiceStatus() {
- chrome.send('getServiceStatus');
-}
-
-/**
- * Handles callback from getServiceStatus.
- * @param {string} Service status enum as a string.
- */
-function getServiceStatusResult(statusString) {
- console.log('getServiceStatusResult', statusString);
- $('service-status').textContent = statusString;
-}
-
-/**
- * Get initial sync service values and set listeners to get updated values.
- */
-function main() {
- cr.ui.decorate('tabbox', cr.ui.TabBox);
- getServiceStatus();
-}
-
-document.addEventListener('DOMContentLoaded', main);
-
-// Must export callbacks as they are called directly from C++ handler code.
-return {
- getServiceStatusResult: getServiceStatusResult
-};
-})();
-

Powered by Google App Engine
This is Rietveld 408576698