blob: d98b4517be2439290f0879b7915a28707cee3873 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/sync/engine/passive_model_worker.h"
#include "base/message_loop.h"
namespace browser_sync {
PassiveModelWorker::PassiveModelWorker(const MessageLoop* sync_loop)
: sync_loop_(sync_loop) {}
PassiveModelWorker::~PassiveModelWorker() {
}
UnrecoverableErrorInfo PassiveModelWorker::DoWorkAndWaitUntilDone(
const WorkCallback& work) {
DCHECK_EQ(MessageLoop::current(), sync_loop_);
// Simply do the work on the current thread.
return work.Run();
}
ModelSafeGroup PassiveModelWorker::GetModelSafeGroup() {
return GROUP_PASSIVE;
}
} // namespace browser_sync
|