Lots of misc. history cleanup:
commit35a4e5cfe2ca73705f7ca062ea41d86e445647d9
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 13 Mar 2014 19:37:28 +0000 (13 19:37 +0000)
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 13 Mar 2014 19:37:28 +0000 (13 19:37 +0000)
treed5701c5f5c627a35a3fdb557903a2b4e4559e532
parent174e8878022976a12c9abc9a947d3df1d13aa8bb
Lots of misc. history cleanup:

* Remove HistoryService::UnloadBackend(), and fold it into Cleanup(), which is
  now its only caller since the memory purger is gone.  This in turn means we
  can nuke all instances of lazy-loading the backend.
* Use scoped_ptr<> more to indicate ownership transfers
* Use PostTaskAndReplyWithResult() to eliminate some cruddy wrapping code (there
  is still more cruddy wrapping code).

BUG=350455
TEST=none
R=sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256888 0039d316-1c4b-4281-b951-d872f2087c98
16 files changed:
chrome/browser/history/android/android_provider_backend.cc
chrome/browser/history/android/android_provider_backend.h
chrome/browser/history/android/android_provider_backend_unittest.cc
chrome/browser/history/download_database.cc
chrome/browser/history/download_database.h
chrome/browser/history/expire_history_backend.cc
chrome/browser/history/expire_history_backend.h
chrome/browser/history/expire_history_backend_unittest.cc
chrome/browser/history/history_backend.cc
chrome/browser/history/history_backend.h
chrome/browser/history/history_backend_unittest.cc
chrome/browser/history/history_service.cc
chrome/browser/history/history_service.h
chrome/browser/history/history_unittest.cc
chrome/browser/history/typed_url_syncable_service_unittest.cc
chrome/browser/sync/profile_sync_service_typed_url_unittest.cc