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

Side by Side Diff: chrome/browser/resources/chromeos/login/network_dropdown.js

Issue 10860031: Cleanup: Remove empty array param from chrome.send('x', []). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 /** 5 /**
6 * @fileoverview Network drop-down implementation. 6 * @fileoverview Network drop-down implementation.
7 */ 7 */
8 8
9 cr.define('cr.ui', function() { 9 cr.define('cr.ui', function() {
10 /** 10 /**
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 }; 396 };
397 397
398 /** 398 /**
399 * Deactivates network drop-down. Deactivating inactive drop-down does 399 * Deactivates network drop-down. Deactivating inactive drop-down does
400 * nothing. 400 * nothing.
401 * @param {string} elementId Id of network drop-down element. 401 * @param {string} elementId Id of network drop-down element.
402 */ 402 */
403 DropDown.hide = function(elementId) { 403 DropDown.hide = function(elementId) {
404 if (DropDown.activeElementId_ == elementId) { 404 if (DropDown.activeElementId_ == elementId) {
405 DropDown.activeElementId_ = ''; 405 DropDown.activeElementId_ = '';
406 chrome.send('networkDropdownHide', []); 406 chrome.send('networkDropdownHide');
407 } 407 }
408 }; 408 };
409 409
410 /** 410 /**
411 * Refreshes network drop-down. Should be called on language change. 411 * Refreshes network drop-down. Should be called on language change.
412 */ 412 */
413 DropDown.refresh = function() { 413 DropDown.refresh = function() {
414 chrome.send('networkDropdownRefresh', []); 414 chrome.send('networkDropdownRefresh');
415 }; 415 };
416 416
417 return { 417 return {
418 DropDown: DropDown 418 DropDown: DropDown
419 }; 419 };
420 }); 420 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/host_registration_page.html ('k') | chrome/browser/resources/chromeos/menu.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698