summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history/history.cc
diff options
context:
space:
mode:
authorchron@chromium.org <chron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-21 19:20:27 +0000
committerchron@chromium.org <chron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-21 19:20:27 +0000
commitd2405cdc8e15532905e7c8f963cc69039be2b636 (patch)
treee3975f5f4c6a4bc07f4279a3cc4d3539187d0851 /chrome/browser/history/history.cc
parent69be462d691924b162c55a046b22d7f5d2bcca08 (diff)
downloadchromium_src-d2405cdc8e15532905e7c8f963cc69039be2b636.zip
chromium_src-d2405cdc8e15532905e7c8f963cc69039be2b636.tar.gz
chromium_src-d2405cdc8e15532905e7c8f963cc69039be2b636.tar.bz2
Switch history thread back to base::Thread. Sync unit tests require more than one history thread.
We hope to have a hard unit test dependency on buildbot soon, but we need to fix our tests again now. BUG=22056 Review URL: http://codereview.chromium.org/215023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26709 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/history/history.cc')
-rw-r--r--chrome/browser/history/history.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/chrome/browser/history/history.cc b/chrome/browser/history/history.cc
index 7b18da4..057a654 100644
--- a/chrome/browser/history/history.cc
+++ b/chrome/browser/history/history.cc
@@ -56,9 +56,14 @@ using history::HistoryBackend;
namespace {
-class ChromeHistoryThread : public ChromeThread {
+// The history thread is intentionally not a ChromeThread because the
+// sync integration unit tests depend on being able to create more than one
+// history thread.
+static const char* kHistoryThreadName = "Chrome_HistoryThread";
+
+class ChromeHistoryThread : public base::Thread {
public:
- ChromeHistoryThread() : ChromeThread(ChromeThread::HISTORY) {}
+ ChromeHistoryThread() : base::Thread(kHistoryThreadName) {}
virtual ~ChromeHistoryThread() {
// We cannot rely on our base class to call Stop() since we want our
// CleanUp function to run.