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

Unified Diff: chrome/browser/resources/new_new_tab.js

Issue 6254018: Allow chrome.send to pass number, boolean, null and arrays of those (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename function and fix indentation Created 9 years, 11 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/new_new_tab.js
diff --git a/chrome/browser/resources/new_new_tab.js b/chrome/browser/resources/new_new_tab.js
index fdc1c61f37afc27c6cfe708aa40b8d6d6ac81a8e..14b382690048e83764035522c15e5d5698748cdb 100644
--- a/chrome/browser/resources/new_new_tab.js
+++ b/chrome/browser/resources/new_new_tab.js
@@ -286,7 +286,7 @@ function addRecentMenuItem(menu, data) {
}
function saveShownSections() {
- chrome.send('setShownSections', [String(shownSections)]);
+ chrome.send('setShownSections', [shownSections]);
}
var LayoutMode = {

Powered by Google App Engine
This is Rietveld 408576698