| Index: chrome/common/net/cookie_monster_sqlite.cc
|
| ===================================================================
|
| --- chrome/common/net/cookie_monster_sqlite.cc (revision 23545)
|
| +++ chrome/common/net/cookie_monster_sqlite.cc (working copy)
|
| @@ -306,7 +306,8 @@
|
| } // namespace
|
|
|
| bool SQLitePersistentCookieStore::Load(
|
| - std::vector<net::CookieMonster::KeyedCanonicalCookie>* cookies) {
|
| + std::vector<net::CookieMonster::KeyedCanonicalCookie>* cookies,
|
| + base::Time* least_recent_access) {
|
| DCHECK(!path_.empty());
|
| sqlite3* db;
|
| if (sqlite3_open(WideToUTF8(path_).c_str(), &db) != SQLITE_OK) {
|
| @@ -349,6 +350,10 @@
|
| if (!cc.get())
|
| break;
|
|
|
| + const base::Time last_access = cc->LastAccessDate();
|
| + if (least_recent_access->is_null() || (last_access < *least_recent_access))
|
| + *least_recent_access = last_access;
|
| +
|
| DLOG_IF(WARNING,
|
| cc->CreationDate() > Time::Now()) << L"CreationDate too recent";
|
| cookies->push_back(
|
|
|