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

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: Use base::strdup instead of strdup 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 c6520c07a79a71617d141077ef1ee7c10cf54c4e..e9ff8bf66ca0529379a0ab75e5fd8a5db42eb19c 100644
--- a/chrome/browser/resources/new_new_tab.js
+++ b/chrome/browser/resources/new_new_tab.js
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -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