Change DownloadManagerImpl::downloads_ from a set to a map, and expose it as GetDownloadItem2(id).
This accessor will soon replace GetDownloadItem() and GetActiveDownloadItem().

In the case of saving pages as MHTML to gdrive in chromeos, use this accessor instead of GetActiveDownloadItem() because SavePackage downloads are never added to the active_downloads_ map.


BUG=130324

Review URL: https://chromiumcodereview.appspot.com/10583038

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143660 0039d316-1c4b-4281-b951-d872f2087c98
5 files changed