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

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

Issue 299903002: Convert WebRtcLoggingHandlerHost to use the blocking thread pool. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browsing_data_remover.h" 5 #include "chrome/browser/browsing_data/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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 base::Unretained(this))); 381 base::Unretained(this)));
382 382
383 autofill::PersonalDataManager* data_manager = 383 autofill::PersonalDataManager* data_manager =
384 autofill::PersonalDataManagerFactory::GetForProfile(profile_); 384 autofill::PersonalDataManagerFactory::GetForProfile(profile_);
385 if (data_manager) 385 if (data_manager)
386 data_manager->Refresh(); 386 data_manager->Refresh();
387 } 387 }
388 388
389 #if defined(ENABLE_WEBRTC) 389 #if defined(ENABLE_WEBRTC)
390 waiting_for_clear_webrtc_logs_ = true; 390 waiting_for_clear_webrtc_logs_ = true;
391 BrowserThread::PostTaskAndReply( 391 BrowserThread::PostBlockingPoolTaskAndReply(
392 BrowserThread::FILE,
393 FROM_HERE, 392 FROM_HERE,
394 base::Bind( 393 base::Bind(
395 &WebRtcLogUtil::DeleteOldAndRecentWebRtcLogFiles, 394 &WebRtcLogUtil::DeleteOldAndRecentWebRtcLogFiles,
396 WebRtcLogList::GetWebRtcLogDirectoryForProfile(profile_->GetPath()), 395 WebRtcLogList::GetWebRtcLogDirectoryForProfile(profile_->GetPath()),
397 delete_begin_), 396 delete_begin_),
398 base::Bind(&BrowsingDataRemover::OnClearedWebRtcLogs, 397 base::Bind(&BrowsingDataRemover::OnClearedWebRtcLogs,
399 base::Unretained(this))); 398 base::Unretained(this)));
400 #endif 399 #endif
401 } 400 }
402 401
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
1146 waiting_for_clear_webrtc_logs_ = false; 1145 waiting_for_clear_webrtc_logs_ = false;
1147 NotifyAndDeleteIfDone(); 1146 NotifyAndDeleteIfDone();
1148 } 1147 }
1149 #endif 1148 #endif
1150 1149
1151 void BrowsingDataRemover::OnClearedDomainReliabilityMonitor() { 1150 void BrowsingDataRemover::OnClearedDomainReliabilityMonitor() {
1152 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 1151 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
1153 waiting_for_clear_domain_reliability_monitor_ = false; 1152 waiting_for_clear_domain_reliability_monitor_ = false;
1154 NotifyAndDeleteIfDone(); 1153 NotifyAndDeleteIfDone();
1155 } 1154 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media/webrtc_log_util.h » ('j') | chrome/browser/media/webrtc_logging_handler_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698