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

Unified Diff: chrome/browser/conflicts/module_database_win.cc

Issue 2871303004: Rename TaskRunner::RunsTasksOnCurrentThread() in //chrome (Closed)
Patch Set: fixed build error Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/conflicts/module_database_win.cc
diff --git a/chrome/browser/conflicts/module_database_win.cc b/chrome/browser/conflicts/module_database_win.cc
index 9265bdc44384e8ef1ac897db243838797aabb0a0..b0d4fbca1295980f0c34fe9eba655c3d70668c40 100644
--- a/chrome/browser/conflicts/module_database_win.cc
+++ b/chrome/browser/conflicts/module_database_win.cc
@@ -55,7 +55,7 @@ void ModuleDatabase::SetInstance(
void ModuleDatabase::OnProcessStarted(uint32_t process_id,
uint64_t creation_time,
content::ProcessType process_type) {
- DCHECK(task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(task_runner_->RunsTasksInCurrentSequence());
CreateProcessInfo(process_id, creation_time, process_type);
}
@@ -67,7 +67,7 @@ void ModuleDatabase::OnModuleLoad(uint32_t process_id,
uintptr_t module_load_address) {
// Messages can arrive from any thread (UI thread for calls over IPC, and
// anywhere at all for calls from ModuleWatcher), so bounce if necessary.
- if (!task_runner_->RunsTasksOnCurrentThread()) {
+ if (!task_runner_->RunsTasksInCurrentSequence()) {
task_runner_->PostTask(
FROM_HERE, base::Bind(&ModuleDatabase::OnModuleLoad,
weak_ptr_factory_.GetWeakPtr(), process_id,
@@ -104,7 +104,7 @@ void ModuleDatabase::OnModuleUnload(uint32_t process_id,
uintptr_t module_load_address) {
// Messages can arrive from any thread (UI thread for calls over IPC, and
// anywhere at all for calls from ModuleWatcher), so bounce if necessary.
- if (!task_runner_->RunsTasksOnCurrentThread()) {
+ if (!task_runner_->RunsTasksInCurrentSequence()) {
task_runner_->PostTask(
FROM_HERE, base::Bind(&ModuleDatabase::OnModuleUnload,
weak_ptr_factory_.GetWeakPtr(), process_id,
@@ -142,7 +142,7 @@ void ModuleDatabase::OnProcessEnded(uint32_t process_id,
uint64_t creation_time) {
// Messages can arrive from any thread (UI thread for calls over IPC, and
// anywhere at all for calls from ModuleWatcher), so bounce if necessary.
- if (!task_runner_->RunsTasksOnCurrentThread()) {
+ if (!task_runner_->RunsTasksInCurrentSequence()) {
task_runner_->PostTask(
FROM_HERE,
base::Bind(&ModuleDatabase::OnProcessEnded,
@@ -347,7 +347,7 @@ void ModuleDatabase::DeleteProcessInfo(uint32_t process_id,
void ModuleDatabase::OnModuleInspected(
const ModuleInfoKey& module_key,
std::unique_ptr<ModuleInspectionResult> inspection_result) {
- DCHECK(task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(task_runner_->RunsTasksInCurrentSequence());
auto it = modules_.find(module_key);
if (it == modules_.end())
« no previous file with comments | « chrome/browser/chromeos/system/input_device_settings_impl_x11.cc ('k') | chrome/browser/download/download_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698