file_manager: Move FindPreferredIcon() to drive_app_registry.h
commit29790f5e1d5d0a6b9e9f404972a13ece00547412
authorsatorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 29 Aug 2013 03:57:34 +0000 (29 03:57 +0000)
committersatorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 29 Aug 2013 03:57:34 +0000 (29 03:57 +0000)
treec2eb3db5e8f8df81d6c09a8988310d3b8fd3cbb6
parent4feebaf53d5e8a5e74773c7fc322654a8b63263e
file_manager: Move FindPreferredIcon() to drive_app_registry.h

This function should not belong to private_api_util.h.

Along the way, add unit tests for the function, and remove the restriction
that icons must be sorted by the size. Add 'const' to some methods in
DriveAppRegistry too.

BUG=280416
TEST=none
R=kinaba@chromium.org

Review URL: https://codereview.chromium.org/23453017

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220178 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/chromeos/drive/drive_app_registry.cc
chrome/browser/chromeos/drive/drive_app_registry.h
chrome/browser/chromeos/drive/drive_app_registry_unittest.cc
chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc
chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc
chrome/browser/chromeos/extensions/file_manager/private_api_util.cc
chrome/browser/chromeos/extensions/file_manager/private_api_util.h