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

Side by Side Diff: chrome/browser/browsing_data_remover.cc

Issue 7891008: Third try at committing this. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/automation/automation_util.cc ('k') | chrome/browser/fast_shutdown_uitest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_util.cc ('k') | chrome/browser/fast_shutdown_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698