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

Unified Diff: chrome/browser/resources/about_flash.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/about_flash.js
diff --git a/chrome/browser/resources/about_flash.js b/chrome/browser/resources/about_flash.js
index 4f51d77f64cd750732370f147c8550ffadf5fe3c..9734542bd234ab20db0b76303d16e3a0146ea778 100644
--- a/chrome/browser/resources/about_flash.js
+++ b/chrome/browser/resources/about_flash.js
@@ -1,3 +1,7 @@
+// Copyright (c) 2012 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.
+
/**
* Takes the |moduleListData| input argument which represents data about
* the currently available modules and populates the html jstemplate
@@ -7,7 +11,7 @@
function renderTemplate(moduleListData) {
// This is the javascript code that processes the template:
var input = new JsEvalContext(moduleListData);
- var output = document.getElementById('flashInfoTemplate');
+ var output = $('flashInfoTemplate');
jstProcess(input, output);
}
@@ -16,19 +20,19 @@ function renderTemplate(moduleListData) {
* the data in returnFlashInfo() (below).
*/
function requestFlashInfo() {
- chrome.send('requestFlashInfo', []);
+ chrome.send('requestFlashInfo');
}
/**
* Called by the WebUI to re-populate the page with data representing the
* current state of Flash.
+* @param {Object} moduleListData Information about available modules.
*/
function returnFlashInfo(moduleListData) {
- document.getElementById('loading-message').style.visibility = 'hidden';
- document.getElementById('body-container').style.visibility = 'visible';
+ $('loading-message').style.visibility = 'hidden';
+ $('body-container').style.visibility = 'visible';
renderTemplate(moduleListData);
}
// Get data and have it displayed upon loading.
document.addEventListener('DOMContentLoaded', requestFlashInfo);
-
« no previous file with comments | « chrome/browser/resources/about_flash.html ('k') | chrome/browser/resources/chromeos/host_registration_page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698