Create Function to Fix NTP Ordinal Collisions
commit67e3cda094a22fbde58c42b5617cb63f187e4320
authorcsharp@chromium.org <csharp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 17 Jan 2012 17:29:50 +0000 (17 17:29 +0000)
committercsharp@chromium.org <csharp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 17 Jan 2012 17:29:50 +0000 (17 17:29 +0000)
tree1dc805dbbf887c0cac2276856c3e63a5672506f4
parent6416a9a9c8f50dc9368123478147a0e4b9c7951f
Create Function to Fix NTP Ordinal Collisions

This function will handle repeated values in the NTP by adjusting the elements that have collided and arranging them in order of increasing id. This end result will be the same regardless of the order the repeated elements are in, so different instances of chrome will have the same result (after getting colliding values after a sync).

BUG=61447
TEST=unit_tests:ExtensionSortingFixNTPCollisions*

Review URL: http://codereview.chromium.org/9230010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117909 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/extensions/extension_sorting.cc
chrome/browser/extensions/extension_sorting.h
chrome/browser/extensions/extension_sorting_unittest.cc