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

Side by Side Diff: chrome/browser/sync/glue/history_model_worker.cc

Issue 5676004: Cleanup: Remove unneeded browser_thread.h usage. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix deps Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/sync/glue/history_model_worker.h" 5 #include "chrome/browser/sync/glue/history_model_worker.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/ref_counted.h" 8 #include "base/ref_counted.h"
9 #include "base/task.h" 9 #include "base/task.h"
10 #include "base/waitable_event.h" 10 #include "base/waitable_event.h"
11 #include "chrome/browser/browser_thread.h"
12 #include "chrome/browser/history/history.h" 11 #include "chrome/browser/history/history.h"
13 12
14 using base::WaitableEvent; 13 using base::WaitableEvent;
15 14
16 namespace browser_sync { 15 namespace browser_sync {
17 16
18 class WorkerTask : public HistoryDBTask { 17 class WorkerTask : public HistoryDBTask {
19 public: 18 public:
20 WorkerTask(Callback0::Type* work, WaitableEvent* done) 19 WorkerTask(Callback0::Type* work, WaitableEvent* done)
21 : work_(work), done_(done) {} 20 : work_(work), done_(done) {}
(...skipping 28 matching lines...) Expand all
50 history_service_->ScheduleDBTask(task.get(), this); 49 history_service_->ScheduleDBTask(task.get(), this);
51 done.Wait(); 50 done.Wait();
52 } 51 }
53 52
54 bool HistoryModelWorker::CurrentThreadIsWorkThread() { 53 bool HistoryModelWorker::CurrentThreadIsWorkThread() {
55 // TODO(ncarter): How to determine this? 54 // TODO(ncarter): How to determine this?
56 return true; 55 return true;
57 } 56 }
58 57
59 } // namespace browser_sync 58 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698