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

Unified Diff: chrome/browser/resources/ntp4/new_tab.js

Issue 8198003: Convert app_launch_index and page_index from int to StringOrdinal. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Changing strings to StringOrdinals Created 9 years, 1 month 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/ntp4/new_tab.js
diff --git a/chrome/browser/resources/ntp4/new_tab.js b/chrome/browser/resources/ntp4/new_tab.js
index 35064fa9a8b168a78dc808f0a2e557bbc75ca246..cafa80a0316b163f9530010dcbd68d195e928d46 100644
--- a/chrome/browser/resources/ntp4/new_tab.js
+++ b/chrome/browser/resources/ntp4/new_tab.js
@@ -354,7 +354,7 @@ cr.define('ntp4', function() {
// Sort by launch index
apps.sort(function(a, b) {
- return a.app_launch_index - b.app_launch_index;
+ return a.app_launch_index > b.app_launch_index;
Dan Beam 2011/11/12 02:28:30 Hmmm, would it be better to return +a.app_launc
csharp 2011/11/14 16:22:28 We don't want to do this because the app_launch_in
});
// An app to animate (in case it was just installed).

Powered by Google App Engine
This is Rietveld 408576698