| Index: net/cookies/cookie_monster.cc
|
| diff --git a/net/cookies/cookie_monster.cc b/net/cookies/cookie_monster.cc
|
| index cd9c9b8f34dafb148c79fc3fd58ac30ebfe95476..e879a8faca7b700cc835deae40c13477892a4a02 100644
|
| --- a/net/cookies/cookie_monster.cc
|
| +++ b/net/cookies/cookie_monster.cc
|
| @@ -1162,6 +1162,7 @@ CookieList CookieMonster::GetAllCookiesForURLWithOptions(
|
| std::sort(cookie_ptrs.begin(), cookie_ptrs.end(), CookieSorter);
|
|
|
| CookieList cookies;
|
| + cookies.reserve(cookie_ptrs.size());
|
| for (std::vector<CanonicalCookie*>::const_iterator it = cookie_ptrs.begin();
|
| it != cookie_ptrs.end(); it++)
|
| cookies.push_back(**it);
|
|
|