| OLD | NEW | 
|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "chrome/browser/browsing_data_remover.h" | 5 #include "chrome/browser/browsing_data_remover.h" | 
| 6 | 6 | 
| 7 #include <map> | 7 #include <map> | 
| 8 #include <set> | 8 #include <set> | 
| 9 | 9 | 
| 10 #include "base/bind.h" | 10 #include "base/bind.h" | 
| (...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 577   NotifyAndDeleteIfDone(); | 577   NotifyAndDeleteIfDone(); | 
| 578 } | 578 } | 
| 579 | 579 | 
| 580 void BrowsingDataRemover::ClearCookiesOnIOThread( | 580 void BrowsingDataRemover::ClearCookiesOnIOThread( | 
| 581     net::URLRequestContextGetter* rq_context) { | 581     net::URLRequestContextGetter* rq_context) { | 
| 582   DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 582   DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 
| 583   net::CookieMonster* cookie_monster = rq_context-> | 583   net::CookieMonster* cookie_monster = rq_context-> | 
| 584       GetURLRequestContext()->cookie_store()->GetCookieMonster(); | 584       GetURLRequestContext()->cookie_store()->GetCookieMonster(); | 
| 585   if (cookie_monster) { | 585   if (cookie_monster) { | 
| 586       cookie_monster->DeleteAllCreatedBetweenAsync( | 586       cookie_monster->DeleteAllCreatedBetweenAsync( | 
| 587           delete_begin_, delete_end_, true, | 587           delete_begin_, delete_end_, | 
| 588           base::Bind(&BrowsingDataRemover::OnClearedCookies, | 588           base::Bind(&BrowsingDataRemover::OnClearedCookies, | 
| 589                      base::Unretained(this))); | 589                      base::Unretained(this))); | 
| 590   } else { | 590   } else { | 
| 591     OnClearedCookies(0); | 591     OnClearedCookies(0); | 
| 592   } | 592   } | 
| 593 } | 593 } | 
| OLD | NEW | 
|---|