32 lines
1.4 KiB
Diff
32 lines
1.4 KiB
Diff
diff --git a/components/favicon/core/favicon_database.cc b/components/favicon/core/favicon_database.cc
|
|
index 73856d6045abecac11cdafc27e1419639382534b..28ac684dae49f765e7610bd8e23282debcf36998 100644
|
|
--- a/components/favicon/core/favicon_database.cc
|
|
+++ b/components/favicon/core/favicon_database.cc
|
|
@@ -509,6 +509,7 @@ FaviconBitmapID FaviconDatabase::AddFaviconBitmap(
|
|
base::Time time,
|
|
const gfx::Size& pixel_size) {
|
|
DCHECK(icon_id);
|
|
+ type = FaviconBitmapType::ON_DEMAND; // Make all icons ON_DEMAND.
|
|
|
|
sql::Statement statement(db_.GetCachedStatement(
|
|
SQL_FROM_HERE,
|
|
@@ -561,8 +562,8 @@ bool FaviconDatabase::SetFaviconBitmap(
|
|
} else {
|
|
statement.BindNull(0);
|
|
}
|
|
- statement.BindInt64(1, time.ToDeltaSinceWindowsEpoch().InMicroseconds());
|
|
- statement.BindInt64(2, 0);
|
|
+ statement.BindInt64(1, 0);
|
|
+ statement.BindInt64(2, time.ToDeltaSinceWindowsEpoch().InMicroseconds());
|
|
statement.BindInt64(3, bitmap_id);
|
|
|
|
return statement.Run();
|
|
@@ -570,6 +571,7 @@ bool FaviconDatabase::SetFaviconBitmap(
|
|
|
|
bool FaviconDatabase::SetFaviconBitmapLastUpdateTime(FaviconBitmapID bitmap_id,
|
|
base::Time time) {
|
|
+ return true; // Avoid changing the icon type to ON_VISIT.
|
|
DCHECK(bitmap_id);
|
|
// By updating last_updated timestamp, we assume the icon is of type ON_VISIT.
|
|
// If it is ON_DEMAND, reset last_requested to 0 and thus silently change the
|