 Chromium Code Reviews
 Chromium Code Reviews Issue 2830013006:
  Disable ButterBar in chromoting webapp  (Closed)
    
  
    Issue 2830013006:
  Disable ButterBar in chromoting webapp  (Closed) 
  | OLD | NEW | 
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 'use strict'; | 5 'use strict'; | 
| 6 | 6 | 
| 7 /** @suppress {duplicate} */ | 7 /** @suppress {duplicate} */ | 
| 8 var remoting = remoting || {}; | 8 var remoting = remoting || {}; | 
| 9 | 9 | 
| 10 /** | 10 /** | 
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 75 var working = base.getHtmlElement('paired-client-manager-dialog-working'); | 75 var working = base.getHtmlElement('paired-client-manager-dialog-working'); | 
| 76 var error = base.getHtmlElement('paired-client-manager-dialog-error'); | 76 var error = base.getHtmlElement('paired-client-manager-dialog-error'); | 
| 77 var noPairedClients = base.getHtmlElement('no-paired-clients'); | 77 var noPairedClients = base.getHtmlElement('no-paired-clients'); | 
| 78 remoting.pairedClientManager = | 78 remoting.pairedClientManager = | 
| 79 new remoting.PairedClientManager(remoting.hostController, dialog, message, | 79 new remoting.PairedClientManager(remoting.hostController, dialog, message, | 
| 80 deleteAll, close, noPairedClients, | 80 deleteAll, close, noPairedClients, | 
| 81 working, error); | 81 working, error); | 
| 82 // Display the cached host list, then asynchronously update and re-display it. | 82 // Display the cached host list, then asynchronously update and re-display it. | 
| 83 remoting.updateLocalHostState(); | 83 remoting.updateLocalHostState(); | 
| 84 remoting.hostList.refresh().then(remoting.updateLocalHostState); | 84 remoting.hostList.refresh().then(remoting.updateLocalHostState); | 
| 85 remoting.butterBar = new remoting.ButterBar(); | 85 | 
| 86 // Butter bar is temporarily disabled. | |
| 
joedow
2017/04/21 20:39:09
not: Add bug# here to track when this was disabled
 
Sergey Ulanov
2017/04/21 20:49:48
Done.
 | |
| 87 // remoting.butterBar = new remoting.ButterBar(); | |
| 86 }; | 88 }; | 
| 87 | 89 | 
| 88 /** | 90 /** | 
| 89 * Fetches local host state and updates the DOM accordingly. | 91 * Fetches local host state and updates the DOM accordingly. | 
| 90 */ | 92 */ | 
| 91 remoting.updateLocalHostState = function() { | 93 remoting.updateLocalHostState = function() { | 
| 92 /** | 94 /** | 
| 93 * @param {remoting.HostController.State} state Host state. | 95 * @param {remoting.HostController.State} state Host state. | 
| 94 */ | 96 */ | 
| 95 var onHostState = function(state) { | 97 var onHostState = function(state) { | 
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 176 } | 178 } | 
| 177 }; | 179 }; | 
| 178 | 180 | 
| 179 | 181 | 
| 180 remoting.startDesktopRemoting = function() { | 182 remoting.startDesktopRemoting = function() { | 
| 181 remoting.app = new remoting.DesktopRemoting(); | 183 remoting.app = new remoting.DesktopRemoting(); | 
| 182 remoting.app.start(); | 184 remoting.app.start(); | 
| 183 }; | 185 }; | 
| 184 | 186 | 
| 185 window.addEventListener('load', remoting.startDesktopRemotingForTesting, false); | 187 window.addEventListener('load', remoting.startDesktopRemotingForTesting, false); | 
| OLD | NEW |