| 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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 570   NotifyAndDeleteIfDone(); | 570   NotifyAndDeleteIfDone(); | 
| 571 } | 571 } | 
| 572 | 572 | 
| 573 void BrowsingDataRemover::ClearCookiesOnIOThread( | 573 void BrowsingDataRemover::ClearCookiesOnIOThread( | 
| 574     net::URLRequestContextGetter* rq_context) { | 574     net::URLRequestContextGetter* rq_context) { | 
| 575   DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 575   DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 
| 576   net::CookieMonster* cookie_monster = rq_context-> | 576   net::CookieMonster* cookie_monster = rq_context-> | 
| 577       GetURLRequestContext()->cookie_store()->GetCookieMonster(); | 577       GetURLRequestContext()->cookie_store()->GetCookieMonster(); | 
| 578   if (cookie_monster) { | 578   if (cookie_monster) { | 
| 579       cookie_monster->DeleteAllCreatedBetweenAsync( | 579       cookie_monster->DeleteAllCreatedBetweenAsync( | 
| 580           delete_begin_, delete_end_, true, | 580           delete_begin_, delete_end_, | 
| 581           base::Bind(&BrowsingDataRemover::OnClearedCookies, | 581           base::Bind(&BrowsingDataRemover::OnClearedCookies, | 
| 582                      base::Unretained(this))); | 582                      base::Unretained(this))); | 
| 583   } else { | 583   } else { | 
| 584     OnClearedCookies(0); | 584     OnClearedCookies(0); | 
| 585   } | 585   } | 
| 586 } | 586 } | 
| OLD | NEW | 
|---|