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

Unified Diff: chrome/browser/chromeos/app_mode/kiosk_app_data.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/chromeos/app_mode/kiosk_app_data.cc
diff --git a/chrome/browser/chromeos/app_mode/kiosk_app_data.cc b/chrome/browser/chromeos/app_mode/kiosk_app_data.cc
index e9062b046729ec48521bb9fad1ff73ea4460a0be..af66f76f8984533c4e9d9569e1089855161a3726 100644
--- a/chrome/browser/chromeos/app_mode/kiosk_app_data.cc
+++ b/chrome/browser/chromeos/app_mode/kiosk_app_data.cc
@@ -109,7 +109,7 @@ class KioskAppData::CrxLoader : public extensions::SandboxedUnpackerClient {
std::unique_ptr<base::DictionaryValue> original_manifest,
const extensions::Extension* extension,
const SkBitmap& install_icon) override {
- DCHECK(task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(task_runner_->RunsTasksInCurrentSequence());
const extensions::KioskModeInfo* info =
extensions::KioskModeInfo::Get(extension);
@@ -125,14 +125,14 @@ class KioskAppData::CrxLoader : public extensions::SandboxedUnpackerClient {
NotifyFinishedOnBlockingPool();
}
void OnUnpackFailure(const extensions::CrxInstallError& error) override {
- DCHECK(task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(task_runner_->RunsTasksInCurrentSequence());
success_ = false;
NotifyFinishedOnBlockingPool();
}
void StartOnBlockingPool() {
- DCHECK(task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(task_runner_->RunsTasksInCurrentSequence());
if (!temp_dir_.CreateUniqueTempDir()) {
success_ = false;
@@ -148,7 +148,7 @@ class KioskAppData::CrxLoader : public extensions::SandboxedUnpackerClient {
}
void NotifyFinishedOnBlockingPool() {
- DCHECK(task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(task_runner_->RunsTasksInCurrentSequence());
if (!temp_dir_.Delete()) {
LOG(WARNING) << "Can not delete temp directory at "
« no previous file with comments | « chrome/browser/browsing_data/media_licenses_counter.cc ('k') | chrome/browser/chromeos/app_mode/kiosk_app_data_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698