summaryrefslogtreecommitdiffstats
path: root/content/browser/browser_thread_impl.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-03 09:00:08 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-03 09:00:08 +0000
commit9226938bf4ac6c1022240a62420f772449ac0520 (patch)
tree19c6fa13ba848e25e79a2636061b30e628630ed8 /content/browser/browser_thread_impl.cc
parent84d5741f988472efe7d1b206bc7b9d144e09d250 (diff)
downloadchromium_src-9226938bf4ac6c1022240a62420f772449ac0520.zip
chromium_src-9226938bf4ac6c1022240a62420f772449ac0520.tar.gz
chromium_src-9226938bf4ac6c1022240a62420f772449ac0520.tar.bz2
Cleanup: IWYU for BrowserThread.
BUG=none TEST=none Review URL: http://codereview.chromium.org/9558012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124852 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/browser_thread_impl.cc')
-rw-r--r--content/browser/browser_thread_impl.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/content/browser/browser_thread_impl.cc b/content/browser/browser_thread_impl.cc
index 19905a5..590ab15 100644
--- a/content/browser/browser_thread_impl.cc
+++ b/content/browser/browser_thread_impl.cc
@@ -4,6 +4,8 @@
#include "content/browser/browser_thread_impl.h"
+#include <string>
+
#include "base/atomicops.h"
#include "base/bind.h"
#include "base/compiler_specific.h"
@@ -12,6 +14,7 @@
#include "base/message_loop_proxy.h"
#include "base/threading/sequenced_worker_pool.h"
#include "base/threading/thread_restrictions.h"
+#include "content/public/browser/browser_thread_delegate.h"
namespace content {
@@ -32,10 +35,9 @@ static const char* g_browser_thread_names[BrowserThread::ID_COUNT] = {
struct BrowserThreadGlobals {
BrowserThreadGlobals()
: blocking_pool(new base::SequencedWorkerPool(3, "BrowserBlocking")) {
- memset(threads, 0,
- BrowserThread::ID_COUNT * sizeof(BrowserThreadImpl*));
+ memset(threads, 0, BrowserThread::ID_COUNT * sizeof(threads[0]));
memset(thread_delegates, 0,
- BrowserThread::ID_COUNT * sizeof(BrowserThreadDelegate*));
+ BrowserThread::ID_COUNT * sizeof(thread_delegates[0]));
}
// This lock protects |threads|. Do not read or modify that array