Skip to content

Commit

Permalink
Cleanup: IWYU for base/time.h. Also fix misc lint errors.
Browse files Browse the repository at this point in the history
TBR=ben,brettw,oshima,rdsmith

Review URL: https://chromiumcodereview.appspot.com/11087021

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160999 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
thestig@chromium.org committed Oct 10, 2012
1 parent 7e30f64 commit efbee20
Show file tree
Hide file tree
Showing 45 changed files with 15 additions and 52 deletions.
3 changes: 1 addition & 2 deletions ash/wm/session_state_animator.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "ash/ash_export.h"
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "base/time.h"
#include "base/timer.h"
#include "ui/aura/root_window_observer.h"
#include "ui/aura/window.h"
Expand Down Expand Up @@ -110,7 +109,7 @@ class ASH_EXPORT SessionStateAnimator : public aura::RootWindowObserver {
// Drops back layer after |UNDO_SLOW_CLOSE| animation delay.
void ScheduleDropBlackLayer();

// Apply animation |type| to all containers included in |container_mask|.
// Apply animation |type| to all containers included in |container_mask|.
void StartAnimation(int container_mask,
AnimationType type);

Expand Down
1 change: 1 addition & 0 deletions base/message_pump_android.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "base/lazy_instance.h"
#include "base/logging.h"
#include "base/run_loop.h"
#include "base/time.h"
#include "jni/SystemMessageHandler_jni.h"

using base::android::ScopedJavaLocalRef;
Expand Down
3 changes: 2 additions & 1 deletion base/message_pump_android.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@

#include "base/compiler_specific.h"
#include "base/message_pump.h"
#include "base/time.h"

namespace base {

class RunLoop;
class TimeTicks;

// This class implements a MessagePump needed for TYPE_UI MessageLoops on
// OS_ANDROID platform.
Expand Down
3 changes: 2 additions & 1 deletion base/process_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@

#include "base/base_export.h"
#include "base/basictypes.h"
#include "base/time.h"

namespace base {

class Time;

// Vends information about the current process.
class BASE_EXPORT CurrentProcessInfo {
public:
Expand Down
1 change: 0 additions & 1 deletion base/sys_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include "base/base_export.h"
#include "base/basictypes.h"
#include "base/file_path.h"
#include "base/time.h"
#include "build/build_config.h"

namespace base {
Expand Down
1 change: 0 additions & 1 deletion base/threading/worker_pool_posix.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include "base/basictypes.h"
#include "base/callback_forward.h"
#include "base/location.h"
#include "base/time.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/pending_task.h"
Expand Down
1 change: 0 additions & 1 deletion base/tracked_objects.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include "base/location.h"
#include "base/profiler/alternate_timer.h"
#include "base/profiler/tracked_time.h"
#include "base/time.h"
#include "base/synchronization/lock.h"
#include "base/threading/thread_local_storage.h"
#include "base/tracking_info.h"
Expand Down
1 change: 0 additions & 1 deletion chrome/browser/automation/automation_tab_tracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

#include <map>

#include "base/time.h"
#include "chrome/browser/automation/automation_resource_tracker.h"

namespace content {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "base/file_path.h"
#include "base/memory/ref_counted.h"
#include "base/synchronization/lock.h"
#include "base/time.h"
#include "chrome/common/url_constants.h"
#include "googleurl/src/gurl.h"
#include "webkit/fileapi/file_system_types.h"
Expand Down
1 change: 0 additions & 1 deletion chrome/browser/browsing_data/browsing_data_quota_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "base/memory/ref_counted.h"
#include "base/message_loop_proxy.h"
#include "base/sequenced_task_runner_helpers.h"
#include "base/time.h"
#include "content/public/browser/browser_thread.h"
#include "webkit/quota/quota_types.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "base/time.h"
#include "chrome/browser/browsing_data/browsing_data_quota_helper.h"
#include "content/public/browser/browser_thread.h"
#include "webkit/quota/quota_types.h"
Expand Down
1 change: 0 additions & 1 deletion chrome/browser/chromeos/login/user_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#include "ash/desktop_background/desktop_background_resources.h"
#include "base/memory/singleton.h"
#include "base/time.h"
#include "chrome/browser/chromeos/login/user.h"
#include "chrome/browser/ui/webui/options/chromeos/set_wallpaper_options_handler.h"

Expand Down
1 change: 0 additions & 1 deletion chrome/browser/extensions/extension_pref_store.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

#include <string>

#include "base/time.h"
#include "chrome/browser/extensions/extension_pref_value_map.h"
#include "chrome/browser/prefs/value_map_pref_store.h"

Expand Down
1 change: 0 additions & 1 deletion chrome/browser/extensions/extension_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "base/string16.h"
#include "base/time.h"
#include "base/tuple.h"
#include "chrome/browser/api/prefs/pref_change_registrar.h"
#include "chrome/browser/extensions/app_shortcut_manager.h"
Expand Down
1 change: 0 additions & 1 deletion chrome/browser/net/chrome_net_log.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include "base/memory/scoped_ptr.h"
#include "base/observer_list.h"
#include "base/synchronization/lock.h"
#include "base/time.h"
#include "net/base/net_log.h"

class LoadTimingObserver;
Expand Down
1 change: 0 additions & 1 deletion chrome/browser/net/crl_set_fetcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
#include "base/time.h"
#include "chrome/browser/component_updater/component_updater_service.h"

class FilePath;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <string>
#include <vector>

#include "base/time.h"
#include "crypto/apple_keychain.h"

using crypto::AppleKeychain;
Expand Down Expand Up @@ -170,6 +169,6 @@ std::vector<content::PasswordForm*> GetPasswordsForForms(
const AppleKeychain& keychain,
std::vector<content::PasswordForm*>* database_forms);

} // internal_keychain_helpers
} // namespace internal_keychain_helpers

#endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_INTERNAL_H_
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include <vector>

#include "base/memory/weak_ptr.h"
#include "base/time.h"
#include "google_apis/gaia/gaia_auth_consumer.h"
#include "google_apis/gaia/gaia_auth_fetcher.h"
#include "google_apis/gaia/google_service_auth_error.h"
Expand Down
1 change: 0 additions & 1 deletion chrome/browser/sync/glue/typed_url_change_processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "base/time.h"
#include "chrome/browser/sync/glue/data_type_error_handler.h"
#include "chrome/browser/sync/glue/sync_backend_host.h"
#include "chrome/browser/sync/glue/typed_url_model_associator.h"
Expand Down
1 change: 0 additions & 1 deletion chrome/browser/sync/test/integration/passwords_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

#include <vector>

#include "base/time.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/sync/test/integration/sync_test.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#include "base/memory/scoped_nsobject.h"
#include "base/memory/scoped_ptr.h"
#include "base/time.h"
#import "chrome/browser/ui/cocoa/chrome_browser_window.h"
#import "chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.h"
#import "chrome/browser/ui/cocoa/themed_window.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#define CHROME_BROWSER_UI_WEBUI_SUGGESTIONS_INTERNALS_SUGGESTIONS_INTERNALS_UI_HANDLER_H_

#include "base/memory/scoped_ptr.h"
#include "base/time.h"
#include "chrome/browser/ui/webui/ntp/suggestions_combiner.h"
#include "content/public/browser/web_ui_message_handler.h"

Expand Down
1 change: 0 additions & 1 deletion chrome/renderer/spellchecker/spellcheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "base/memory/weak_ptr.h"
#include "base/platform_file.h"
#include "base/string16.h"
#include "base/time.h"
#include "chrome/renderer/spellchecker/spellcheck_worditerator.h"
#include "content/public/renderer/render_process_observer.h"
#include "ipc/ipc_platform_file.h"
Expand Down
1 change: 0 additions & 1 deletion chromeos/disks/mock_disk_mount_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <string>

#include "base/observer_list.h"
#include "base/time.h"
#include "chromeos/disks/disk_mount_manager.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
Expand Down
1 change: 0 additions & 1 deletion content/browser/device_orientation/provider_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/time.h"
#include "content/browser/device_orientation/data_fetcher.h"
#include "content/browser/device_orientation/device_data.h"
#include "content/browser/device_orientation/provider.h"
Expand Down
1 change: 0 additions & 1 deletion content/browser/geolocation/win7_location_api_win.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include <locationapi.h>
#include <sensors.h>

#include "base/time.h"
#include "base/win/scoped_com_initializer.h"
#include "content/common/content_export.h"

Expand Down
5 changes: 2 additions & 3 deletions content/browser/renderer_host/gesture_event_filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "base/time.h"
#include "base/timer.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"

Expand Down Expand Up @@ -130,6 +129,6 @@ class GestureEventFilter {
DISALLOW_COPY_AND_ASSIGN(GestureEventFilter);
};

} // namespace content
} // namespace content

#endif // CONTENT_BROWSER_RENDERER_HOST_GESTURE_EVENT_FILTER_H_
#endif // CONTENT_BROWSER_RENDERER_HOST_GESTURE_EVENT_FILTER_H_
1 change: 0 additions & 1 deletion content/browser/renderer_host/resource_request_info_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/supports_user_data.h"
#include "base/time.h"
#include "content/public/browser/resource_request_info.h"
#include "content/public/common/page_transition_types.h"
#include "content/public/common/process_type.h"
Expand Down
1 change: 0 additions & 1 deletion content/common/file_utilities_messages.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

// Multiply-included message file, so no include guard.

#include "base/time.h"
#include "content/public/common/common_param_traits.h"
#include "ipc/ipc_message_macros.h"
#include "ipc/ipc_param_traits.h"
Expand Down
1 change: 0 additions & 1 deletion content/renderer/render_thread_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <vector>

#include "base/observer_list.h"
#include "base/time.h"
#include "base/timer.h"
#include "build/build_config.h"
#include "content/common/child_process.h"
Expand Down
1 change: 0 additions & 1 deletion media/audio/audio_output_controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "base/synchronization/lock.h"
#include "base/time.h"
#include "media/audio/audio_buffers_state.h"
#include "media/audio/audio_io.h"
#include "media/audio/audio_manager.h"
Expand Down
1 change: 0 additions & 1 deletion media/audio/linux/cras_input.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/time.h"
#include "media/audio/audio_input_stream_impl.h"
#include "media/audio/audio_io.h"
#include "media/audio/audio_parameters.h"
Expand Down
1 change: 0 additions & 1 deletion media/audio/mac/audio_low_latency_input_mac.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
#include "base/atomicops.h"
#include "base/memory/scoped_ptr.h"
#include "base/synchronization/lock.h"
#include "base/time.h"
#include "media/audio/audio_io.h"
#include "media/audio/audio_input_stream_impl.h"
#include "media/audio/audio_parameters.h"
Expand Down
1 change: 0 additions & 1 deletion media/webm/webm_tracks_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "base/time.h"
#include "media/webm/webm_content_encodings_client.h"
#include "media/webm/webm_parser.h"

Expand Down
7 changes: 4 additions & 3 deletions net/base/crl_set.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "base/stl_util.h"
#include "base/string_util.h"
#include "base/stringprintf.h"
#include "base/time.h"
#include "base/values.h"
#include "crypto/sha2.h"
#include "net/base/crl_set.h"
Expand Down Expand Up @@ -71,8 +72,8 @@ CRLSet::~CRLSet() {
// header_bytes consists of a JSON dictionary with the following keys:
// Version (int): currently 0
// ContentType (string): "CRLSet" or "CRLSetDelta" (magic value)
// DeltaFrom (int32): if this is a delta update (see below), then this contains
// the sequence number of the base CRLSet.
// DeltaFrom (int32): if this is a delta update (see below), then this
// contains the sequence number of the base CRLSet.
// Sequence (int32): the monotonic sequence number of this CRL set.
//
// A delta CRLSet is similar to a CRLSet:
Expand Down Expand Up @@ -441,7 +442,7 @@ bool CRLSet::ApplyDelta(const base::StringPiece& in_data,

// static
bool CRLSet::GetIsDeltaUpdate(const base::StringPiece& in_data,
bool *is_delta) {
bool* is_delta) {
base::StringPiece data(in_data);
scoped_ptr<base::DictionaryValue> header_dict(ReadHeader(&data));
if (!header_dict.get())
Expand Down
1 change: 0 additions & 1 deletion net/base/crl_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

#include "base/memory/ref_counted.h"
#include "base/string_piece.h"
#include "base/time.h"
#include "net/base/net_export.h"

namespace base {
Expand Down
3 changes: 1 addition & 2 deletions remoting/base/running_average.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,14 @@

#include "base/basictypes.h"
#include "base/synchronization/lock.h"
#include "base/time.h"

namespace remoting {

class RunningAverage {
public:
// Construct a running average counter for a specific window size. The
// |windows_size| most recent values are kept and the average is reported.
RunningAverage(int window_size);
explicit RunningAverage(int window_size);

virtual ~RunningAverage();

Expand Down
1 change: 0 additions & 1 deletion remoting/client/chromoting_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/time.h"
#include "remoting/client/client_config.h"
#include "remoting/client/chromoting_stats.h"
#include "remoting/protocol/client_stub.h"
Expand Down
1 change: 0 additions & 1 deletion remoting/host/audio_scheduler.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "base/callback_forward.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/time.h"

namespace base {
class SingleThreadTaskRunner;
Expand Down
1 change: 0 additions & 1 deletion ui/base/gestures/gesture_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#define UI_BASE_GESTURES_GESTURE_TYPES_H_

#include "base/logging.h"
#include "base/time.h"
#include "ui/base/events/event_constants.h"
#include "ui/gfx/rect.h"

Expand Down
1 change: 0 additions & 1 deletion webkit/appcache/appcache_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "base/gtest_prod_util.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/time.h"
#include "net/base/completion_callback.h"
#include "net/base/net_errors.h"
#include "webkit/appcache/appcache_export.h"
Expand Down
Loading

0 comments on commit efbee20

Please sign in to comment.