From 6d11ff807a6e0d3f0e769dc8587da281230c9e89 Mon Sep 17 00:00:00 2001 From: "thestig@chromium.org" Date: Mon, 10 May 2010 20:46:54 +0000 Subject: Cleanup: Add a bunch of missing includes. BUG=none TEST=none Review URL: http://codereview.chromium.org/2018001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46850 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/automation/ui_controls_mac.mm | 4 +++- chrome/browser/password_manager/password_store_mac.cc | 4 +++- chrome/browser/views/about_network_dialog.cc | 3 ++- chrome/browser/views/shell_dialogs_win.cc | 3 ++- chrome_frame/crash_reporting/nt_loader_unittest.cc | 8 +++++--- chrome_frame/vtable_patch_manager_unittest.cc | 1 + media/tools/player_wtl/movie.h | 3 ++- webkit/default_plugin/plugin_install_job_monitor.cc | 3 ++- webkit/glue/plugins/test/plugin_thread_async_call_test.cc | 3 ++- 9 files changed, 22 insertions(+), 10 deletions(-) diff --git a/chrome/browser/automation/ui_controls_mac.mm b/chrome/browser/automation/ui_controls_mac.mm index e16a968..715135c1 100644 --- a/chrome/browser/automation/ui_controls_mac.mm +++ b/chrome/browser/automation/ui_controls_mac.mm @@ -2,10 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "chrome/browser/automation/ui_controls.h" + #import #include -#include "chrome/browser/automation/ui_controls.h" +#include "base/message_loop.h" #include "chrome/browser/chrome_thread.h" // Implementation details: We use [NSApplication sendEvent:] instead diff --git a/chrome/browser/password_manager/password_store_mac.cc b/chrome/browser/password_manager/password_store_mac.cc index de8e5d5..02f7eef 100644 --- a/chrome/browser/password_manager/password_store_mac.cc +++ b/chrome/browser/password_manager/password_store_mac.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 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. @@ -6,11 +6,13 @@ #include "chrome/browser/password_manager/password_store_mac_internal.h" #include +#include #include #include #include "base/logging.h" #include "base/mac_util.h" +#include "base/message_loop.h" #include "base/stl_util-inl.h" #include "base/string_util.h" #include "base/task.h" diff --git a/chrome/browser/views/about_network_dialog.cc b/chrome/browser/views/about_network_dialog.cc index 0fc8e16..b9375ca 100644 --- a/chrome/browser/views/about_network_dialog.cc +++ b/chrome/browser/views/about_network_dialog.cc @@ -1,9 +1,10 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 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/views/about_network_dialog.h" +#include "base/message_loop.h" #include "base/thread.h" #include "base/utf_string_conversions.h" #include "chrome/browser/chrome_thread.h" diff --git a/chrome/browser/views/shell_dialogs_win.cc b/chrome/browser/views/shell_dialogs_win.cc index 7d4f8ef..199b384 100644 --- a/chrome/browser/views/shell_dialogs_win.cc +++ b/chrome/browser/views/shell_dialogs_win.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 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. @@ -14,6 +14,7 @@ #include "app/l10n_util.h" #include "app/win_util.h" #include "base/file_util.h" +#include "base/message_loop.h" #include "base/registry.h" #include "base/scoped_comptr_win.h" #include "base/thread.h" diff --git a/chrome_frame/crash_reporting/nt_loader_unittest.cc b/chrome_frame/crash_reporting/nt_loader_unittest.cc index 45546f6..a73fb9f 100644 --- a/chrome_frame/crash_reporting/nt_loader_unittest.cc +++ b/chrome_frame/crash_reporting/nt_loader_unittest.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 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_frame/crash_reporting/nt_loader.h" @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -27,7 +28,8 @@ void AssertIsCriticalSection(CRITICAL_SECTION* critsec) { class ScopedEnterCriticalSection { public: - ScopedEnterCriticalSection(CRITICAL_SECTION* critsec) : critsec_(critsec) { + explicit ScopedEnterCriticalSection(CRITICAL_SECTION* critsec) + : critsec_(critsec) { ::EnterCriticalSection(critsec_); } @@ -165,7 +167,7 @@ TEST(NtLoader, GetLoaderEntry) { EXPECT_TRUE(is_shimeng || (flags & LDRP_PROCESS_ATTACH_CALLED)); } } - } while(::Module32Next(snap.Get(), &module)); + } while (::Module32Next(snap.Get(), &module)); } namespace { diff --git a/chrome_frame/vtable_patch_manager_unittest.cc b/chrome_frame/vtable_patch_manager_unittest.cc index dd1eb83..10c73be 100644 --- a/chrome_frame/vtable_patch_manager_unittest.cc +++ b/chrome_frame/vtable_patch_manager_unittest.cc @@ -4,6 +4,7 @@ #include "chrome_frame/vtable_patch_manager.h" #include +#include "base/message_loop.h" #include "base/thread.h" #include "base/scoped_handle.h" #include "gtest/gtest.h" diff --git a/media/tools/player_wtl/movie.h b/media/tools/player_wtl/movie.h index ed81182..e505165 100644 --- a/media/tools/player_wtl/movie.h +++ b/media/tools/player_wtl/movie.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 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. @@ -9,6 +9,7 @@ #include "media/tools/player_wtl/player_wtl.h" +#include "base/ref_counted.h" #include "base/scoped_ptr.h" #include "base/singleton.h" #include "base/thread.h" diff --git a/webkit/default_plugin/plugin_install_job_monitor.cc b/webkit/default_plugin/plugin_install_job_monitor.cc index c762f34..61eba92 100644 --- a/webkit/default_plugin/plugin_install_job_monitor.cc +++ b/webkit/default_plugin/plugin_install_job_monitor.cc @@ -1,9 +1,10 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 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 "webkit/default_plugin/plugin_install_job_monitor.h" +#include "base/message_loop.h" #include "webkit/default_plugin/plugin_impl.h" PluginInstallationJobMonitorThread::PluginInstallationJobMonitorThread() diff --git a/webkit/glue/plugins/test/plugin_thread_async_call_test.cc b/webkit/glue/plugins/test/plugin_thread_async_call_test.cc index 0ae0d2a..2e9f9e9 100644 --- a/webkit/glue/plugins/test/plugin_thread_async_call_test.cc +++ b/webkit/glue/plugins/test/plugin_thread_async_call_test.cc @@ -1,9 +1,10 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 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 "webkit/glue/plugins/test/plugin_thread_async_call_test.h" +#include "base/message_loop.h" #include "base/thread.h" #include "webkit/glue/plugins/test/plugin_client.h" -- cgit v1.1