| Index: chrome/common/net/cookie_monster_sqlite.cc
|
| ===================================================================
|
| --- chrome/common/net/cookie_monster_sqlite.cc (revision 11100)
|
| +++ chrome/common/net/cookie_monster_sqlite.cc (working copy)
|
| @@ -334,7 +334,19 @@
|
| }
|
|
|
| PrimeCache(db);
|
| + // Size cookies
|
| + SQLStatement c_smt;
|
| + if (c_smt.prepare(db,
|
| + "SELECT count(*) FROM cookies") != SQLITE_OK) {
|
| + NOTREACHED() << "select statement prep failed";
|
| + sqlite3_close(db);
|
| + return false;
|
| + }
|
| + while (c_smt.step() == SQLITE_ROW) {
|
| + cookies->reserve(c_smt.column_int(0));
|
| + }
|
|
|
| +
|
| // Slurp all the cookies into the out-vector.
|
| SQLStatement smt;
|
| if (smt.prepare(db,
|
|
|