Index: components/history/core/browser/history_backend_unittest.cc |
diff --git a/components/history/core/browser/history_backend_unittest.cc b/components/history/core/browser/history_backend_unittest.cc |
index 48cee5bf8d9c4a2d877b37456fde6833b6678d09..0454dd83ef70c98318aaced50f6b12e519ed1ca9 100644 |
--- a/components/history/core/browser/history_backend_unittest.cc |
+++ b/components/history/core/browser/history_backend_unittest.cc |
@@ -2062,18 +2062,18 @@ TEST_F(HistoryBackendTest, SetFaviconsSameFaviconURLForTwoPages) { |
EXPECT_EQ(2u, favicon_bitmaps.size()); |
} |
-// Tests calling SetLastResortFavicons(). Neither |page_url| nor |icon_url| are |
+// Tests calling SetOnDemandFavicons(). Neither |page_url| nor |icon_url| are |
// known to the database. |
-TEST_F(HistoryBackendTest, SetLastResortFaviconsForEmptyDB) { |
+TEST_F(HistoryBackendTest, SetOnDemandFaviconsForEmptyDB) { |
GURL page_url("http://www.google.com"); |
GURL icon_url("http:/www.google.com/favicon.ico"); |
std::vector<SkBitmap> bitmaps; |
bitmaps.push_back(CreateBitmap(SK_ColorRED, kSmallEdgeSize)); |
- // Call SetLastResortFavicons() with a different icon URL and bitmap data. |
- EXPECT_TRUE(backend_->SetLastResortFavicons(page_url, favicon_base::FAVICON, |
- icon_url, bitmaps)); |
+ // Call SetOnDemandFavicons() with a different icon URL and bitmap data. |
+ EXPECT_TRUE(backend_->SetOnDemandFavicons(page_url, favicon_base::FAVICON, |
+ icon_url, bitmaps)); |
favicon_base::FaviconID favicon_id = |
backend_->thumbnail_db_->GetFaviconIDForFaviconURL(icon_url, |
@@ -2088,9 +2088,9 @@ TEST_F(HistoryBackendTest, SetLastResortFaviconsForEmptyDB) { |
EXPECT_EQ(base::Time(), favicon_bitmap.last_updated); |
} |
-// Tests calling SetLastResortFavicons(). |page_url| is known to the database |
+// Tests calling SetOnDemandFavicons(). |page_url| is known to the database |
// but |icon_url| is not (the second should be irrelevant though). |
-TEST_F(HistoryBackendTest, SetLastResortFaviconsForPageInDB) { |
+TEST_F(HistoryBackendTest, SetOnDemandFaviconsForPageInDB) { |
GURL page_url("http://www.google.com"); |
GURL icon_url1("http:/www.google.com/favicon1.ico"); |
GURL icon_url2("http:/www.google.com/favicon2.ico"); |
@@ -2104,10 +2104,10 @@ TEST_F(HistoryBackendTest, SetLastResortFaviconsForPageInDB) { |
favicon_base::FAVICON); |
ASSERT_NE(0, original_favicon_id); |
- // Call SetLastResortFavicons() with a different icon URL and bitmap data. |
+ // Call SetOnDemandFavicons() with a different icon URL and bitmap data. |
bitmaps[0] = CreateBitmap(SK_ColorWHITE, kSmallEdgeSize); |
- EXPECT_FALSE(backend_->SetLastResortFavicons(page_url, favicon_base::FAVICON, |
- icon_url2, bitmaps)); |
+ EXPECT_FALSE(backend_->SetOnDemandFavicons(page_url, favicon_base::FAVICON, |
+ icon_url2, bitmaps)); |
EXPECT_EQ(0, backend_->thumbnail_db_->GetFaviconIDForFaviconURL( |
icon_url2, favicon_base::FAVICON)); |
@@ -2119,9 +2119,9 @@ TEST_F(HistoryBackendTest, SetLastResortFaviconsForPageInDB) { |
EXPECT_NE(base::Time(), favicon_bitmap.last_updated); |
} |
-// Tests calling SetLastResortFavicons(). |page_url| is not known to the |
+// Tests calling SetOnDemandFavicons(). |page_url| is not known to the |
// database but |icon_url| is. |
-TEST_F(HistoryBackendTest, SetLastResortFaviconsForIconInDB) { |
+TEST_F(HistoryBackendTest, SetOnDemandFaviconsForIconInDB) { |
const GURL old_page_url("http://www.google.com/old"); |
const GURL page_url("http://www.google.com/"); |
const GURL icon_url("http://www.google.com/icon"); |
@@ -2135,10 +2135,10 @@ TEST_F(HistoryBackendTest, SetLastResortFaviconsForIconInDB) { |
favicon_base::FAVICON); |
ASSERT_NE(0, original_favicon_id); |
- // Call SetLastResortFavicons() with a different bitmap. |
+ // Call SetOnDemandFavicons() with a different bitmap. |
bitmaps[0] = CreateBitmap(SK_ColorWHITE, kSmallEdgeSize); |
- EXPECT_FALSE(backend_->SetLastResortFavicons(page_url, favicon_base::FAVICON, |
- icon_url, bitmaps)); |
+ EXPECT_FALSE(backend_->SetOnDemandFavicons(page_url, favicon_base::FAVICON, |
+ icon_url, bitmaps)); |
EXPECT_EQ(original_favicon_id, |
backend_->thumbnail_db_->GetFaviconIDForFaviconURL( |