Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Unified Diff: chrome/browser/chromeos/login/login_utils.cc

Issue 7595007: Revert 95825 - Update asynchronous CookieMonster API to login_utils. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/base/cookie_monster.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/login_utils.cc
===================================================================
--- chrome/browser/chromeos/login/login_utils.cc (revision 95825)
+++ chrome/browser/chromeos/login/login_utils.cc (working copy)
@@ -129,17 +129,11 @@
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) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
net::CookieStore* new_store =
new_context_->GetURLRequestContext()->cookie_store();
net::CookieMonster* new_monster = new_store->GetCookieMonster();
- if (!new_monster->InitializeFrom(cookies)) {
+ if (!new_monster->InitializeFrom(default_monster)) {
LOG(WARNING) << "Failed initial cookie transfer.";
}
}
« no previous file with comments | « no previous file | net/base/cookie_monster.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698