diff options
author | huanr@chromium.org <huanr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-10 05:00:20 +0000 |
---|---|---|
committer | huanr@chromium.org <huanr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-10 05:00:20 +0000 |
commit | 828bd79b15617c803e4918d131dd568159f5ac97 (patch) | |
tree | a6ed4b365f039715fc56b3d18b906c74c26036a6 /base/thread.cc | |
parent | 3d96893747d18a3c1bf06084d4605a4b34af732f (diff) | |
download | chromium_src-828bd79b15617c803e4918d131dd568159f5ac97.zip chromium_src-828bd79b15617c803e4918d131dd568159f5ac97.tar.gz chromium_src-828bd79b15617c803e4918d131dd568159f5ac97.tar.bz2 |
Retry 25770 after fixing Valgrind issue.
Enable database logging on history thread.
Original review: http://codereview.chromium.org/198011
BUG=16591
TEST=History UI test
Review URL: http://codereview.chromium.org/194067
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25842 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/thread.cc')
-rw-r--r-- | base/thread.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/base/thread.cc b/base/thread.cc index f447fbb..dcda330 100644 --- a/base/thread.cc +++ b/base/thread.cc @@ -135,6 +135,10 @@ void Thread::StopSoon() { message_loop_->PostTask(FROM_HERE, new ThreadQuitTask()); } +void Thread::Run(MessageLoop* message_loop) { + message_loop->Run(); +} + void Thread::ThreadMain() { // The message loop for this thread. MessageLoop message_loop(startup_data_->options.message_loop_type); @@ -153,7 +157,7 @@ void Thread::ThreadMain() { // startup_data_ can't be touched anymore since the starting thread is now // unlocked. - message_loop.Run(); + Run(message_loop_); // Let the thread do extra cleanup. CleanUp(); |