summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history/android
diff options
context:
space:
mode:
authorpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-23 23:47:27 +0000
committerpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-23 23:47:27 +0000
commit2303da8ec4999ec703c8b958d49a56e07dbfb477 (patch)
treececc11d9c6c79c96319b33a21053bb2d422fd68b /chrome/browser/history/android
parent3af83cfa1ea38d4b4f7c1084c24de17b62ee856e (diff)
downloadchromium_src-2303da8ec4999ec703c8b958d49a56e07dbfb477.zip
chromium_src-2303da8ec4999ec703c8b958d49a56e07dbfb477.tar.gz
chromium_src-2303da8ec4999ec703c8b958d49a56e07dbfb477.tar.bz2
Cleanup history favicon code
This removes the currently unused IconURLSizesMap. It also uses the 'expired' parameter in the 'favicon_bitmaps' table instead of the 'sizes' attribute in the 'favicons' table. Given that we are unlikely going to move to storing unresized bitmaps to the database due to perf problems when resizing the favicon each time it is requested, using the IconURLSizesMap is probably not the right solution in the future anyways. This CL should make the code in HistoryBackend less scary. BUG=None Test=No functionality change HistoryBackendTest.* Review URL: https://chromiumcodereview.appspot.com/11746010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178432 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/history/android')
-rw-r--r--chrome/browser/history/android/android_provider_backend_unittest.cc30
1 files changed, 3 insertions, 27 deletions
diff --git a/chrome/browser/history/android/android_provider_backend_unittest.cc b/chrome/browser/history/android/android_provider_backend_unittest.cc
index fe034eb..e383100 100644
--- a/chrome/browser/history/android/android_provider_backend_unittest.cc
+++ b/chrome/browser/history/android/android_provider_backend_unittest.cc
@@ -255,15 +255,7 @@ TEST_F(AndroidProviderBackendTest, UpdateTables) {
std::vector<history::FaviconBitmapData> favicon_bitmap_data;
favicon_bitmap_data.push_back(bitmap_data_element);
- FaviconSizes favicon_sizes;
- favicon_sizes.push_back(gfx::Size());
- IconURLSizesMap icon_url_sizes;
- icon_url_sizes[GURL()] = favicon_sizes;
-
- history_backend->SetFavicons(url2,
- FAVICON,
- favicon_bitmap_data,
- icon_url_sizes);
+ history_backend->SetFavicons(url2, FAVICON, favicon_bitmap_data);
history_backend->Closing();
}
@@ -413,15 +405,7 @@ TEST_F(AndroidProviderBackendTest, QueryHistoryAndBookmarks) {
std::vector<history::FaviconBitmapData> favicon_bitmap_data;
favicon_bitmap_data.push_back(bitmap_data_element);
- FaviconSizes favicon_sizes;
- favicon_sizes.push_back(gfx::Size());
- IconURLSizesMap icon_url_sizes;
- icon_url_sizes[GURL()] = favicon_sizes;
-
- history_backend->SetFavicons(url2,
- FAVICON,
- favicon_bitmap_data,
- icon_url_sizes);
+ history_backend->SetFavicons(url2, FAVICON, favicon_bitmap_data);
history_backend->Closing();
}
@@ -1835,15 +1819,7 @@ TEST_F(AndroidProviderBackendTest, QueryWithoutThumbnailDB) {
std::vector<history::FaviconBitmapData> favicon_bitmap_data;
favicon_bitmap_data.push_back(bitmap_data_element);
- FaviconSizes favicon_sizes;
- favicon_sizes.push_back(gfx::Size());
- IconURLSizesMap icon_url_sizes;
- icon_url_sizes[GURL()] = favicon_sizes;
-
- history_backend->SetFavicons(url2,
- FAVICON,
- favicon_bitmap_data,
- icon_url_sizes);
+ history_backend->SetFavicons(url2, FAVICON, favicon_bitmap_data);
history_backend->Closing();
}