diff options
Diffstat (limited to 'chrome/browser/sync/notifier/chrome_system_resources.cc')
-rw-r--r-- | chrome/browser/sync/notifier/chrome_system_resources.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/chrome/browser/sync/notifier/chrome_system_resources.cc b/chrome/browser/sync/notifier/chrome_system_resources.cc index 47725b0..44e4176 100644 --- a/chrome/browser/sync/notifier/chrome_system_resources.cc +++ b/chrome/browser/sync/notifier/chrome_system_resources.cc @@ -157,11 +157,8 @@ void ChromeStorage::WriteKey(const std::string& key, const std::string& value, void ChromeStorage::ReadKey(const std::string& key, invalidation::ReadKeyCallback* done) { - scheduler_->Schedule( - invalidation::Scheduler::NoDelay(), - invalidation::NewPermanentCallback( - this, &ChromeStorage::RunAndDeleteReadKeyCallback, - done, cached_state_)); + DCHECK(scheduler_->IsRunningOnThread()) << "not running on scheduler thread"; + RunAndDeleteReadKeyCallback(done, cached_state_); } void ChromeStorage::DeleteKey(const std::string& key, |