Chromium Code Reviews| Index: chrome/browser/chromeos/login/login_utils.cc |
| =================================================================== |
| --- chrome/browser/chromeos/login/login_utils.cc (revision 95356) |
| +++ chrome/browser/chromeos/login/login_utils.cc (working copy) |
| @@ -129,11 +129,16 @@ |
| auth_context_->GetURLRequestContext()->cookie_store(); |
| net::CookieMonster* default_monster = default_store->GetCookieMonster(); |
| default_monster->SetKeepExpiredCookies(); |
| + default_monster->GetAllCookiesAsync(base::Bind(&InitializeCookieMonster, |
| + base::Unretained(this))); |
| + } |
| + |
| + void InitializeCookieMonster(const net::CookieList& cookies) { |
|
zel
2011/08/04 16:01:07
put assert there that shows which thread is expect
ycxiao
2011/08/04 17:00:50
Done.
|
| net::CookieStore* new_store = |
| new_context_->GetURLRequestContext()->cookie_store(); |
| net::CookieMonster* new_monster = new_store->GetCookieMonster(); |
| - if (!new_monster->InitializeFrom(default_monster)) { |
| + if (!new_monster->InitializeFrom(cookies)) { |
| LOG(WARNING) << "Failed initial cookie transfer."; |
| } |
| } |