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

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

Issue 7833042: Finalize a CL originally by departed intern ycxiao@ that detaches the loading of cookies from the... (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 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 NotifyAndDeleteIfDone(); 555 NotifyAndDeleteIfDone();
556 } 556 }
557 557
558 void BrowsingDataRemover::ClearCookiesOnIOThread( 558 void BrowsingDataRemover::ClearCookiesOnIOThread(
559 net::URLRequestContextGetter* rq_context) { 559 net::URLRequestContextGetter* rq_context) {
560 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 560 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
561 net::CookieMonster* cookie_monster = rq_context-> 561 net::CookieMonster* cookie_monster = rq_context->
562 GetURLRequestContext()->cookie_store()->GetCookieMonster(); 562 GetURLRequestContext()->cookie_store()->GetCookieMonster();
563 if (cookie_monster) { 563 if (cookie_monster) {
564 cookie_monster->DeleteAllCreatedBetweenAsync( 564 cookie_monster->DeleteAllCreatedBetweenAsync(
565 delete_begin_, delete_end_, true, 565 delete_begin_, delete_end_,
566 base::Bind(&BrowsingDataRemover::OnClearedCookies, 566 base::Bind(&BrowsingDataRemover::OnClearedCookies,
567 base::Unretained(this))); 567 base::Unretained(this)));
568 } else { 568 } else {
569 OnClearedCookies(0); 569 OnClearedCookies(0);
570 } 570 }
571 } 571 }
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