diff options
74 files changed, 108 insertions, 9 deletions
diff --git a/base/base_paths_android.cc b/base/base_paths_android.cc index 56c6cc70..ca58179 100644 --- a/base/base_paths_android.cc +++ b/base/base_paths_android.cc @@ -5,6 +5,7 @@ // Defines base::PathProviderAndroid which replaces base::PathProviderPosix for // Android in base/path_service.cc. +#include <limits.h> #include <unistd.h> #include "base/android/jni_android.h" diff --git a/base/base_paths_posix.cc b/base/base_paths_posix.cc index 048434f..4b847c4 100644 --- a/base/base_paths_posix.cc +++ b/base/base_paths_posix.cc @@ -6,6 +6,8 @@ // don't have their own base_paths_OS.cc implementation (i.e. all but Mac and // Android). +#include <limits.h> + #include <ostream> #include <string> diff --git a/base/logging.cc b/base/logging.cc index 20bc7f5..22e0aa0 100644 --- a/base/logging.cc +++ b/base/logging.cc @@ -4,6 +4,8 @@ #include "base/logging.h" +#include <limits.h> + #if defined(OS_WIN) #include <io.h> #include <windows.h> diff --git a/base/process/process_handle_freebsd.cc b/base/process/process_handle_freebsd.cc index 27af5f0..192d72b 100644 --- a/base/process/process_handle_freebsd.cc +++ b/base/process/process_handle_freebsd.cc @@ -5,6 +5,7 @@ #include "base/macros.h" #include "base/process/process_handle.h" +#include <limits.h> #include <stddef.h> #include <sys/sysctl.h> #include <sys/types.h> diff --git a/chrome/browser/extensions/api/metrics_private/metrics_private_api.cc b/chrome/browser/extensions/api/metrics_private/metrics_private_api.cc index 2668215..141e926 100644 --- a/chrome/browser/extensions/api/metrics_private/metrics_private_api.cc +++ b/chrome/browser/extensions/api/metrics_private/metrics_private_api.cc @@ -4,6 +4,8 @@ #include "chrome/browser/extensions/api/metrics_private/metrics_private_api.h" +#include <limits.h> + #include <algorithm> #include "base/metrics/field_trial.h" diff --git a/chrome/browser/extensions/api/music_manager_private/device_id_win.cc b/chrome/browser/extensions/api/music_manager_private/device_id_win.cc index 594ec85..64caf3b 100644 --- a/chrome/browser/extensions/api/music_manager_private/device_id_win.cc +++ b/chrome/browser/extensions/api/music_manager_private/device_id_win.cc @@ -7,6 +7,8 @@ // Note: The order of header includes is important, as we want both pre-Vista // and post-Vista data structures to be defined, specifically // PIP_ADAPTER_ADDRESSES and PMIB_IF_ROW2. + +#include <limits.h> #include <stddef.h> #include <winsock2.h> #include <ws2def.h> diff --git a/chrome/browser/extensions/api/streams_private/streams_private_api.cc b/chrome/browser/extensions/api/streams_private/streams_private_api.cc index b85d2fb..d222b75 100644 --- a/chrome/browser/extensions/api/streams_private/streams_private_api.cc +++ b/chrome/browser/extensions/api/streams_private/streams_private_api.cc @@ -4,6 +4,8 @@ #include "chrome/browser/extensions/api/streams_private/streams_private_api.h" +#include <limits.h> + #include "base/lazy_instance.h" #include "base/values.h" #include "chrome/browser/extensions/extension_tab_util.h" diff --git a/chrome/browser/extensions/api/tabs/tabs_test.cc b/chrome/browser/extensions/api/tabs/tabs_test.cc index 81f7d59..a4c72ad 100644 --- a/chrome/browser/extensions/api/tabs/tabs_test.cc +++ b/chrome/browser/extensions/api/tabs/tabs_test.cc @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include <limits.h> #include <stddef.h> #include <stdint.h> diff --git a/chrome/browser/policy/configuration_policy_handler_list_factory.cc b/chrome/browser/policy/configuration_policy_handler_list_factory.cc index a7d1666..9a4858f 100644 --- a/chrome/browser/policy/configuration_policy_handler_list_factory.cc +++ b/chrome/browser/policy/configuration_policy_handler_list_factory.cc @@ -4,6 +4,7 @@ #include "chrome/browser/policy/configuration_policy_handler_list_factory.h" +#include <limits.h> #include <stddef.h> #include "base/bind.h" diff --git a/chrome/browser/process_singleton_posix_unittest.cc b/chrome/browser/process_singleton_posix_unittest.cc index 8fc6fff..4ab97b96 100644 --- a/chrome/browser/process_singleton_posix_unittest.cc +++ b/chrome/browser/process_singleton_posix_unittest.cc @@ -5,6 +5,7 @@ #include "chrome/browser/process_singleton.h" #include <fcntl.h> +#include <limits.h> #include <signal.h> #include <stddef.h> #include <sys/types.h> diff --git a/chrome/browser/safe_browsing/incident_reporting/download_metadata_manager.cc b/chrome/browser/safe_browsing/incident_reporting/download_metadata_manager.cc index b7e7ba7..4c4943a 100644 --- a/chrome/browser/safe_browsing/incident_reporting/download_metadata_manager.cc +++ b/chrome/browser/safe_browsing/incident_reporting/download_metadata_manager.cc @@ -4,6 +4,7 @@ #include "chrome/browser/safe_browsing/incident_reporting/download_metadata_manager.h" +#include <limits.h> #include <stdint.h> #include <list> diff --git a/chrome/browser/safe_browsing/srt_fetcher_win.h b/chrome/browser/safe_browsing/srt_fetcher_win.h index a2e180b..2f9db52 100644 --- a/chrome/browser/safe_browsing/srt_fetcher_win.h +++ b/chrome/browser/safe_browsing/srt_fetcher_win.h @@ -5,6 +5,8 @@ #ifndef CHROME_BROWSER_SAFE_BROWSING_SRT_FETCHER_WIN_H_ #define CHROME_BROWSER_SAFE_BROWSING_SRT_FETCHER_WIN_H_ +#include <limits.h> + #include <string> #include "base/callback_forward.h" diff --git a/chrome/browser/signin/signin_promo.cc b/chrome/browser/signin/signin_promo.cc index 0425f29..1a78b18 100644 --- a/chrome/browser/signin/signin_promo.cc +++ b/chrome/browser/signin/signin_promo.cc @@ -4,6 +4,8 @@ #include "chrome/browser/signin/signin_promo.h" +#include <limits.h> + #include "base/prefs/pref_service.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_util.h" diff --git a/chrome/browser/themes/browser_theme_pack.cc b/chrome/browser/themes/browser_theme_pack.cc index 9d225c3..0002a5b 100644 --- a/chrome/browser/themes/browser_theme_pack.cc +++ b/chrome/browser/themes/browser_theme_pack.cc @@ -4,6 +4,7 @@ #include "chrome/browser/themes/browser_theme_pack.h" +#include <limits.h> #include <stddef.h> #include <limits> diff --git a/chrome/browser/ui/views/omnibox/omnibox_result_view.cc b/chrome/browser/ui/views/omnibox/omnibox_result_view.cc index b74b097..6e5493a 100644 --- a/chrome/browser/ui/views/omnibox/omnibox_result_view.cc +++ b/chrome/browser/ui/views/omnibox/omnibox_result_view.cc @@ -4,6 +4,7 @@ // For WinDDK ATL compatibility, these ATL headers must come first. #include "build/build_config.h" + #if defined(OS_WIN) #include <atlbase.h> // NOLINT #include <atlwin.h> // NOLINT @@ -12,6 +13,8 @@ #include "base/macros.h" #include "chrome/browser/ui/views/omnibox/omnibox_result_view.h" +#include <limits.h> + #include <algorithm> // NOLINT #include "base/i18n/bidi_line_iterator.h" diff --git a/chrome/browser/ui/webui/md_downloads/downloads_list_tracker_unittest.cc b/chrome/browser/ui/webui/md_downloads/downloads_list_tracker_unittest.cc index 3e9d0a8..2cc4df2 100644 --- a/chrome/browser/ui/webui/md_downloads/downloads_list_tracker_unittest.cc +++ b/chrome/browser/ui/webui/md_downloads/downloads_list_tracker_unittest.cc @@ -4,6 +4,7 @@ #include "chrome/browser/ui/webui/md_downloads/downloads_list_tracker.h" +#include <limits.h> #include <stdint.h> #include <vector> diff --git a/chrome/browser/ui/webui/signin/inline_login_handler.cc b/chrome/browser/ui/webui/signin/inline_login_handler.cc index a4df00d..8655905 100644 --- a/chrome/browser/ui/webui/signin/inline_login_handler.cc +++ b/chrome/browser/ui/webui/signin/inline_login_handler.cc @@ -4,6 +4,8 @@ #include "chrome/browser/ui/webui/signin/inline_login_handler.h" +#include <limits.h> + #include "base/bind.h" #include "base/prefs/pref_service.h" #include "base/strings/string_number_conversions.h" diff --git a/chrome/common/net/x509_certificate_model_openssl.cc b/chrome/common/net/x509_certificate_model_openssl.cc index d549c9a..cf99faa 100644 --- a/chrome/common/net/x509_certificate_model_openssl.cc +++ b/chrome/common/net/x509_certificate_model_openssl.cc @@ -4,6 +4,7 @@ #include "chrome/common/net/x509_certificate_model.h" +#include <limits.h> #include <openssl/mem.h> #include <openssl/obj_mac.h> #include <openssl/sha.h> diff --git a/chrome/common/safe_browsing/protobuf_message_param_traits.h b/chrome/common/safe_browsing/protobuf_message_param_traits.h index 46890e4..f78dfec 100644 --- a/chrome/common/safe_browsing/protobuf_message_param_traits.h +++ b/chrome/common/safe_browsing/protobuf_message_param_traits.h @@ -5,6 +5,8 @@ #ifndef CHROME_COMMON_SAFE_BROWSING_PROTOBUF_MESSAGE_PARAM_TRAITS_H_ #define CHROME_COMMON_SAFE_BROWSING_PROTOBUF_MESSAGE_PARAM_TRAITS_H_ +#include <limits.h> + #include <string> #include "base/pickle.h" diff --git a/chrome/test/logging/win/file_logger.cc b/chrome/test/logging/win/file_logger.cc index e1e5ab9..13eca7b 100644 --- a/chrome/test/logging/win/file_logger.cc +++ b/chrome/test/logging/win/file_logger.cc @@ -4,6 +4,7 @@ #include "chrome/test/logging/win/file_logger.h" +#include <limits.h> #include <windows.h> #include <guiddef.h> #include <objbase.h> diff --git a/chrome/utility/cloud_print/pwg_encoder.cc b/chrome/utility/cloud_print/pwg_encoder.cc index 2627774..c0a9959 100644 --- a/chrome/utility/cloud_print/pwg_encoder.cc +++ b/chrome/utility/cloud_print/pwg_encoder.cc @@ -4,6 +4,7 @@ #include "chrome/utility/cloud_print/pwg_encoder.h" +#include <limits.h> #include <string.h> #include <algorithm> diff --git a/chrome/utility/safe_browsing/mac/crdmg.cc b/chrome/utility/safe_browsing/mac/crdmg.cc index 19fc343..a6cb076 100644 --- a/chrome/utility/safe_browsing/mac/crdmg.cc +++ b/chrome/utility/safe_browsing/mac/crdmg.cc @@ -4,6 +4,7 @@ #include <errno.h> #include <fcntl.h> +#include <limits.h> #include <sandbox.h> #include <stddef.h> #include <stdint.h> diff --git a/components/crash/content/app/breakpad_mac.mm b/components/crash/content/app/breakpad_mac.mm index 79e4d7b..6c6934b 100644 --- a/components/crash/content/app/breakpad_mac.mm +++ b/components/crash/content/app/breakpad_mac.mm @@ -11,7 +11,6 @@ #include "base/auto_reset.h" #include "base/base_switches.h" -#import "base/basictypes.h" #include "base/command_line.h" #include "base/debug/crash_logging.h" #include "base/debug/dump_without_crashing.h" diff --git a/components/cronet/android/cronet_url_request_context_adapter.cc b/components/cronet/android/cronet_url_request_context_adapter.cc index ff6f241..7ed7f6c 100644 --- a/components/cronet/android/cronet_url_request_context_adapter.cc +++ b/components/cronet/android/cronet_url_request_context_adapter.cc @@ -4,6 +4,7 @@ #include "components/cronet/android/cronet_url_request_context_adapter.h" +#include <limits.h> #include <stddef.h> #include <map> diff --git a/components/drive/resource_metadata.cc b/components/drive/resource_metadata.cc index fc6b899..cbbc5ad 100644 --- a/components/drive/resource_metadata.cc +++ b/components/drive/resource_metadata.cc @@ -4,6 +4,7 @@ #include "components/drive/resource_metadata.h" +#include <limits.h> #include <stddef.h> #include "base/bind.h" diff --git a/components/mus/public/cpp/tests/window_unittest.cc b/components/mus/public/cpp/tests/window_unittest.cc index 48bd599..9df5b3f 100644 --- a/components/mus/public/cpp/tests/window_unittest.cc +++ b/components/mus/public/cpp/tests/window_unittest.cc @@ -4,6 +4,7 @@ #include "components/mus/public/cpp/window.h" +#include <limits.h> #include <stdint.h> #include "base/logging.h" diff --git a/components/nacl/renderer/plugin/srpc_client.cc b/components/nacl/renderer/plugin/srpc_client.cc index ce92aac..a67772a 100644 --- a/components/nacl/renderer/plugin/srpc_client.cc +++ b/components/nacl/renderer/plugin/srpc_client.cc @@ -6,6 +6,7 @@ #include "components/nacl/renderer/plugin/srpc_client.h" +#include <limits.h> #include <stdint.h> #include <string.h> diff --git a/components/policy/core/common/schema.cc b/components/policy/core/common/schema.cc index 235eaca..7eedffd 100644 --- a/components/policy/core/common/schema.cc +++ b/components/policy/core/common/schema.cc @@ -4,6 +4,7 @@ #include "components/policy/core/common/schema.h" +#include <limits.h> #include <stddef.h> #include <algorithm> diff --git a/components/safe_browsing_db/prefix_set.cc b/components/safe_browsing_db/prefix_set.cc index b5c97d3..7e63a9e 100644 --- a/components/safe_browsing_db/prefix_set.cc +++ b/components/safe_browsing_db/prefix_set.cc @@ -4,6 +4,8 @@ #include "components/safe_browsing_db/prefix_set.h" +#include <limits.h> + #include <algorithm> #include "base/files/file_util.h" diff --git a/components/signin/core/browser/signin_metrics.cc b/components/signin/core/browser/signin_metrics.cc index e0fe72c6..78d415d 100644 --- a/components/signin/core/browser/signin_metrics.cc +++ b/components/signin/core/browser/signin_metrics.cc @@ -4,6 +4,8 @@ #include "components/signin/core/browser/signin_metrics.h" +#include <limits.h> + #include "base/logging.h" #include "base/metrics/histogram_macros.h" #include "base/metrics/user_metrics.h" diff --git a/components/signin/core/browser/signin_metrics.h b/components/signin/core/browser/signin_metrics.h index 0327c06..ff22f84 100644 --- a/components/signin/core/browser/signin_metrics.h +++ b/components/signin/core/browser/signin_metrics.h @@ -7,6 +7,8 @@ #include "base/time/time.h" +#include <limits.h> + #include "google_apis/gaia/google_service_auth_error.h" namespace signin_metrics { diff --git a/components/ssl_errors/error_classification.cc b/components/ssl_errors/error_classification.cc index 1397c1e..75104f8 100644 --- a/components/ssl_errors/error_classification.cc +++ b/components/ssl_errors/error_classification.cc @@ -4,6 +4,7 @@ #include "components/ssl_errors/error_classification.h" +#include <limits.h> #include <stddef.h> #include <vector> diff --git a/components/variations/metrics_util.cc b/components/variations/metrics_util.cc index e6e76e3..52fa0be 100644 --- a/components/variations/metrics_util.cc +++ b/components/variations/metrics_util.cc @@ -4,6 +4,8 @@ #include "components/variations/metrics_util.h" +#include <string.h> + #include "base/sha1.h" #include "base/sys_byteorder.h" diff --git a/components/webcrypto/algorithms/aes_cbc_unittest.cc b/components/webcrypto/algorithms/aes_cbc_unittest.cc index 26af37d..ae7ad52 100644 --- a/components/webcrypto/algorithms/aes_cbc_unittest.cc +++ b/components/webcrypto/algorithms/aes_cbc_unittest.cc @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include <limits.h> #include <stddef.h> #include <stdint.h> diff --git a/components/webcrypto/algorithms/hmac_unittest.cc b/components/webcrypto/algorithms/hmac_unittest.cc index b0381d3..6b65302 100644 --- a/components/webcrypto/algorithms/hmac_unittest.cc +++ b/components/webcrypto/algorithms/hmac_unittest.cc @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include <limits.h> #include <stddef.h> #include <stdint.h> diff --git a/components/webcrypto/webcrypto_impl.cc b/components/webcrypto/webcrypto_impl.cc index cfa880c..3e3d49d 100644 --- a/components/webcrypto/webcrypto_impl.cc +++ b/components/webcrypto/webcrypto_impl.cc @@ -4,6 +4,7 @@ #include "components/webcrypto/webcrypto_impl.h" +#include <limits.h> #include <stdint.h> #include "base/bind.h" diff --git a/content/plugin/plugin_interpose_util_mac.h b/content/plugin/plugin_interpose_util_mac.h index 1a6eb9f..ce8effb 100644 --- a/content/plugin/plugin_interpose_util_mac.h +++ b/content/plugin/plugin_interpose_util_mac.h @@ -5,8 +5,6 @@ #ifndef CONTENT_PLUGIN_PLUGIN_INTERPOSE_UTIL_MAC_H_ #define CONTENT_PLUGIN_PLUGIN_INTERPOSE_UTIL_MAC_H_ -#import "base/basictypes.h" - namespace mac_plugin_interposing { // Swizzles methods we need to watch in order to manage process and window diff --git a/gpu/command_buffer/client/query_tracker.h b/gpu/command_buffer/client/query_tracker.h index 35d4a47..c4505f1 100644 --- a/gpu/command_buffer/client/query_tracker.h +++ b/gpu/command_buffer/client/query_tracker.h @@ -6,6 +6,7 @@ #define GPU_COMMAND_BUFFER_CLIENT_QUERY_TRACKER_H_ #include <GLES2/gl2.h> +#include <limits.h> #include <stddef.h> #include <stdint.h> diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc index 7c47ee80..3e60321 100644 --- a/gpu/command_buffer/service/gles2_cmd_decoder.cc +++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc @@ -4,6 +4,7 @@ #include "gpu/command_buffer/service/gles2_cmd_decoder.h" +#include <limits.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_framebuffers.cc b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_framebuffers.cc index 5d14251..9fc0a96 100644 --- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_framebuffers.cc +++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_framebuffers.cc @@ -4,6 +4,7 @@ #include "gpu/command_buffer/service/gles2_cmd_decoder.h" +#include <limits.h> #include <stddef.h> #include <stdint.h> diff --git a/gpu/command_buffer/service/sync_point_manager.cc b/gpu/command_buffer/service/sync_point_manager.cc index 435d0b2..97ba993 100644 --- a/gpu/command_buffer/service/sync_point_manager.cc +++ b/gpu/command_buffer/service/sync_point_manager.cc @@ -4,6 +4,7 @@ #include "gpu/command_buffer/service/sync_point_manager.h" +#include <limits.h> #include <stddef.h> #include <stdint.h> diff --git a/gpu/command_buffer/tests/gl_chromium_framebuffer_mixed_samples_unittest.cc b/gpu/command_buffer/tests/gl_chromium_framebuffer_mixed_samples_unittest.cc index 2297aee..aa9a2a4 100644 --- a/gpu/command_buffer/tests/gl_chromium_framebuffer_mixed_samples_unittest.cc +++ b/gpu/command_buffer/tests/gl_chromium_framebuffer_mixed_samples_unittest.cc @@ -5,6 +5,8 @@ #include <GLES2/gl2.h> #include <GLES2/gl2ext.h> #include <GLES2/gl2extchromium.h> +#include <stdint.h> +#include <string.h> #include "base/command_line.h" #include "gpu/command_buffer/service/gpu_switches.h" @@ -173,7 +175,7 @@ TEST_F(CHROMIUMFramebufferMixedSamplesTest, CoverageModulation) { } static const float kBlue[] = {0.0f, 0.0f, 1.0f, 1.0f}; static const float kGreen[] = {0.0f, 1.0f, 0.0f, 1.0f}; - scoped_ptr<uint8[]> results[3]; + scoped_ptr<uint8_t[]> results[3]; const GLint kResultSize = kWidth * kHeight * 4; for (int pass = 0; pass < 3; ++pass) { @@ -190,7 +192,7 @@ TEST_F(CHROMIUMFramebufferMixedSamplesTest, CoverageModulation) { glCoverageModulationCHROMIUM(GL_NONE); } - results[pass].reset(new uint8[kResultSize]); + results[pass].reset(new uint8_t[kResultSize]); memset(results[pass].get(), GLTestHelper::kCheckClearValue, kResultSize); glReadPixels(0, 0, kWidth, kHeight, GL_RGBA, GL_UNSIGNED_BYTE, results[pass].get()); @@ -213,7 +215,7 @@ TEST_F(CHROMIUMFramebufferMixedSamplesTest, MultisampleStencilEffective) { static const float kBlue[] = {0.0f, 0.0f, 1.0f, 1.0f}; static const float kGreen[] = {0.0f, 1.0f, 0.0f, 1.0f}; - scoped_ptr<uint8[]> results[3]; + scoped_ptr<uint8_t[]> results[3]; const GLint kResultSize = kWidth * kHeight * 4; for (int pass = 0; pass < 3; ++pass) { @@ -228,7 +230,7 @@ TEST_F(CHROMIUMFramebufferMixedSamplesTest, MultisampleStencilEffective) { glUniform4fv(color_loc_, 1, kBlue); glDrawArrays(GL_TRIANGLES, 3, 3); - results[pass].reset(new uint8[kResultSize]); + results[pass].reset(new uint8_t[kResultSize]); memset(results[pass].get(), GLTestHelper::kCheckClearValue, kResultSize); glReadPixels(0, 0, kWidth, kHeight, GL_RGBA, GL_UNSIGNED_BYTE, results[pass].get()); diff --git a/ipc/ipc_message_utils.h b/ipc/ipc_message_utils.h index 3d68879..69ea7cb 100644 --- a/ipc/ipc_message_utils.h +++ b/ipc/ipc_message_utils.h @@ -5,6 +5,7 @@ #ifndef IPC_IPC_MESSAGE_UTILS_H_ #define IPC_IPC_MESSAGE_UTILS_H_ +#include <limits.h> #include <stddef.h> #include <stdint.h> diff --git a/net/base/ip_address_number.cc b/net/base/ip_address_number.cc index 61af067..1e44b7d 100644 --- a/net/base/ip_address_number.cc +++ b/net/base/ip_address_number.cc @@ -4,6 +4,8 @@ #include "net/base/ip_address_number.h" +#include <limits.h> + #include "base/logging.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_piece.h" diff --git a/net/base/sdch_manager.cc b/net/base/sdch_manager.cc index 9bb8e7e..a827270 100644 --- a/net/base/sdch_manager.cc +++ b/net/base/sdch_manager.cc @@ -4,6 +4,8 @@ #include "net/base/sdch_manager.h" +#include <limits.h> + #include <utility> #include "base/base64url.h" diff --git a/net/cert/ct_log_verifier_unittest.cc b/net/cert/ct_log_verifier_unittest.cc index 9eaa639..00412e5 100644 --- a/net/cert/ct_log_verifier_unittest.cc +++ b/net/cert/ct_log_verifier_unittest.cc @@ -4,6 +4,8 @@ #include "net/cert/ct_log_verifier.h" +#include <stdint.h> + #include <string> #include "base/strings/string_number_conversions.h" @@ -92,7 +94,7 @@ const ProofTestVector kSHA256Proofs[4] = { // Decodes a hexadecimal string into the binary data it represents. std::string HexToBytes(const char* hex_data, size_t hex_data_length) { - std::vector<uint8> output; + std::vector<uint8_t> output; std::string result; std::string hex_data_input(hex_data, hex_data_length); if (base::HexStringToBytes(hex_data, &output)) diff --git a/net/cert/internal/name_constraints.cc b/net/cert/internal/name_constraints.cc index 07e231e..ade43a7 100644 --- a/net/cert/internal/name_constraints.cc +++ b/net/cert/internal/name_constraints.cc @@ -4,6 +4,8 @@ #include "net/cert/internal/name_constraints.h" +#include <limits.h> + #include "base/strings/string_util.h" #include "net/cert/internal/verify_name_match.h" #include "net/der/input.h" diff --git a/net/cert/x509_certificate.cc b/net/cert/x509_certificate.cc index 23786cf..d925ce6 100644 --- a/net/cert/x509_certificate.cc +++ b/net/cert/x509_certificate.cc @@ -4,6 +4,7 @@ #include "net/cert/x509_certificate.h" +#include <limits.h> #include <stdlib.h> #include <algorithm> diff --git a/net/cert/x509_util_openssl.cc b/net/cert/x509_util_openssl.cc index 7eb86a4..c81a3a4 100644 --- a/net/cert/x509_util_openssl.cc +++ b/net/cert/x509_util_openssl.cc @@ -4,6 +4,7 @@ #include "net/cert/x509_util_openssl.h" +#include <limits.h> #include <openssl/asn1.h> #include <openssl/mem.h> diff --git a/net/disk_cache/blockfile/file_ios.cc b/net/disk_cache/blockfile/file_ios.cc index 96c988f..d1d1919 100644 --- a/net/disk_cache/blockfile/file_ios.cc +++ b/net/disk_cache/blockfile/file_ios.cc @@ -4,6 +4,7 @@ #include "net/disk_cache/blockfile/file.h" +#include <limits.h> #include <stdint.h> #include <limits> diff --git a/net/disk_cache/blockfile/file_win.cc b/net/disk_cache/blockfile/file_win.cc index 81f8cf8..ef7be43 100644 --- a/net/disk_cache/blockfile/file_win.cc +++ b/net/disk_cache/blockfile/file_win.cc @@ -4,6 +4,8 @@ #include "net/disk_cache/blockfile/file.h" +#include <limits.h> + #include "base/files/file_path.h" #include "base/lazy_instance.h" #include "base/message_loop/message_loop.h" diff --git a/net/disk_cache/simple/simple_entry_operation.cc b/net/disk_cache/simple/simple_entry_operation.cc index c17762c..ce8b09c 100644 --- a/net/disk_cache/simple/simple_entry_operation.cc +++ b/net/disk_cache/simple/simple_entry_operation.cc @@ -4,6 +4,8 @@ #include "net/disk_cache/simple/simple_entry_operation.h" +#include <limits.h> + #include "base/logging.h" #include "net/base/io_buffer.h" #include "net/disk_cache/disk_cache.h" diff --git a/net/dns/dns_util.cc b/net/dns/dns_util.cc index 4142a02..d2897ff 100644 --- a/net/dns/dns_util.cc +++ b/net/dns/dns_util.cc @@ -5,6 +5,7 @@ #include "net/dns/dns_util.h" #include <errno.h> +#include <limits.h> #include <cstring> diff --git a/sandbox/linux/services/credentials.cc b/sandbox/linux/services/credentials.cc index de5f8c4..fb6b6b4 100644 --- a/sandbox/linux/services/credentials.cc +++ b/sandbox/linux/services/credentials.cc @@ -5,6 +5,7 @@ #include "sandbox/linux/services/credentials.h" #include <errno.h> +#include <limits.h> #include <signal.h> #include <stddef.h> #include <stdint.h> diff --git a/sandbox/linux/services/credentials_unittest.cc b/sandbox/linux/services/credentials_unittest.cc index 39fd6a7..d666a0c 100644 --- a/sandbox/linux/services/credentials_unittest.cc +++ b/sandbox/linux/services/credentials_unittest.cc @@ -6,6 +6,7 @@ #include <errno.h> #include <fcntl.h> +#include <limits.h> #include <pthread.h> #include <signal.h> #include <stdio.h> diff --git a/sandbox/win/src/handle_closer_agent.cc b/sandbox/win/src/handle_closer_agent.cc index 5face9b..6b17f65 100644 --- a/sandbox/win/src/handle_closer_agent.cc +++ b/sandbox/win/src/handle_closer_agent.cc @@ -4,6 +4,7 @@ #include "sandbox/win/src/handle_closer_agent.h" +#include <limits.h> #include <stddef.h> #include "base/logging.h" diff --git a/sandbox/win/src/handle_closer_test.cc b/sandbox/win/src/handle_closer_test.cc index c144ac3..ceba818 100644 --- a/sandbox/win/src/handle_closer_test.cc +++ b/sandbox/win/src/handle_closer_test.cc @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include <limits.h> #include <stddef.h> #include "base/strings/stringprintf.h" diff --git a/sandbox/win/wow_helper/service64_resolver.cc b/sandbox/win/wow_helper/service64_resolver.cc index 32c9829..b5b67cc 100644 --- a/sandbox/win/wow_helper/service64_resolver.cc +++ b/sandbox/win/wow_helper/service64_resolver.cc @@ -4,6 +4,7 @@ #include "sandbox/win/wow_helper/service64_resolver.h" +#include <limits.h> #include <stddef.h> #include "base/memory/scoped_ptr.h" diff --git a/sql/connection.cc b/sql/connection.cc index 88acef0..4d23f7d 100644 --- a/sql/connection.cc +++ b/sql/connection.cc @@ -4,6 +4,7 @@ #include "sql/connection.h" +#include <limits.h> #include <stddef.h> #include <stdint.h> #include <string.h> diff --git a/sync/internal_api/public/base/ordinal.h b/sync/internal_api/public/base/ordinal.h index 6c0f21f..81798a4 100644 --- a/sync/internal_api/public/base/ordinal.h +++ b/sync/internal_api/public/base/ordinal.h @@ -35,7 +35,7 @@ namespace syncer { // // The Traits class should look like the following: // -// // Don't forget to #include "base/basictypes.h". +// // Don't forget to #include <stdint.h> and <stddef.h>. // struct MyOrdinalTraits { // // There must be at least two distinct values greater than kZeroDigit // // and less than kMaxDigit. diff --git a/ui/accessibility/platform/ax_platform_node_win.cc b/ui/accessibility/platform/ax_platform_node_win.cc index 51bfed9..ee7a4f9 100644 --- a/ui/accessibility/platform/ax_platform_node_win.cc +++ b/ui/accessibility/platform/ax_platform_node_win.cc @@ -4,6 +4,7 @@ #include <atlbase.h> #include <atlcom.h> +#include <limits.h> #include <oleacc.h> #include <stdint.h> diff --git a/ui/aura/window_unittest.cc b/ui/aura/window_unittest.cc index 8df4db5..60792c2 100644 --- a/ui/aura/window_unittest.cc +++ b/ui/aura/window_unittest.cc @@ -4,6 +4,8 @@ #include "ui/aura/window.h" +#include <limits.h> + #include <string> #include <utility> #include <vector> diff --git a/ui/base/l10n/formatter.cc b/ui/base/l10n/formatter.cc index 3834d0f..94a83a4 100644 --- a/ui/base/l10n/formatter.cc +++ b/ui/base/l10n/formatter.cc @@ -4,6 +4,8 @@ #include "ui/base/l10n/formatter.h" +#include <limits.h> + #include <vector> #include "base/logging.h" diff --git a/ui/base/win/accessibility_ids_win.h b/ui/base/win/accessibility_ids_win.h index af8041c..6b07de5 100644 --- a/ui/base/win/accessibility_ids_win.h +++ b/ui/base/win/accessibility_ids_win.h @@ -4,6 +4,8 @@ #ifndef UI_BASE_WIN_ACCESSIBILITY_IDS_WIN_H_ #define UI_BASE_WIN_ACCESSIBILITY_IDS_WIN_H_ +#include <limits.h> + namespace base { namespace win { diff --git a/ui/events/android/scroller_unittest.cc b/ui/events/android/scroller_unittest.cc index 759984e..21dae88 100644 --- a/ui/events/android/scroller_unittest.cc +++ b/ui/events/android/scroller_unittest.cc @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include <limits.h> + #include "base/time/time.h" #include "testing/gtest/include/gtest/gtest.h" #include "ui/events/android/scroller.h" diff --git a/ui/events/gestures/blink/web_gesture_curve_impl.cc b/ui/events/gestures/blink/web_gesture_curve_impl.cc index e0a2f38..8288e5d 100644 --- a/ui/events/gestures/blink/web_gesture_curve_impl.cc +++ b/ui/events/gestures/blink/web_gesture_curve_impl.cc @@ -4,6 +4,8 @@ #include "ui/events/gestures/blink/web_gesture_curve_impl.h" +#include <limits.h> + #include <utility> #include "base/logging.h" diff --git a/ui/gfx/canvas_skia.cc b/ui/gfx/canvas_skia.cc index 60daeef..8f45fce 100644 --- a/ui/gfx/canvas_skia.cc +++ b/ui/gfx/canvas_skia.cc @@ -4,6 +4,7 @@ #include "ui/gfx/canvas.h" +#include <limits.h> #include <stddef.h> #include <stdint.h> diff --git a/ui/gfx/color_analysis.cc b/ui/gfx/color_analysis.cc index 94eac52..4450693 100644 --- a/ui/gfx/color_analysis.cc +++ b/ui/gfx/color_analysis.cc @@ -4,6 +4,7 @@ #include "ui/gfx/color_analysis.h" +#include <limits.h> #include <stdint.h> #include <algorithm> diff --git a/ui/gfx/platform_font_win.cc b/ui/gfx/platform_font_win.cc index 894aec2d..8646beb 100644 --- a/ui/gfx/platform_font_win.cc +++ b/ui/gfx/platform_font_win.cc @@ -6,6 +6,7 @@ #include <windows.h> #include <dwrite.h> +#include <limits.h> #include <math.h> #include <stdint.h> #include <wchar.h> diff --git a/ui/gfx/render_text.cc b/ui/gfx/render_text.cc index 00c6bb0..1757575 100644 --- a/ui/gfx/render_text.cc +++ b/ui/gfx/render_text.cc @@ -4,6 +4,8 @@ #include "ui/gfx/render_text.h" +#include <limits.h> + #include <algorithm> #include <climits> diff --git a/ui/gfx/render_text_unittest.cc b/ui/gfx/render_text_unittest.cc index b24c1be..51e1ac7 100644 --- a/ui/gfx/render_text_unittest.cc +++ b/ui/gfx/render_text_unittest.cc @@ -4,6 +4,7 @@ #include "ui/gfx/render_text.h" +#include <limits.h> #include <stddef.h> #include <stdint.h> diff --git a/ui/surface/transport_dib.cc b/ui/surface/transport_dib.cc index 3cbd90c..b0f9193 100644 --- a/ui/surface/transport_dib.cc +++ b/ui/surface/transport_dib.cc @@ -4,6 +4,8 @@ #include "ui/surface/transport_dib.h" +#include <limits.h> + #include "skia/ext/platform_canvas.h" // static diff --git a/ui/views/view_targeter_delegate.cc b/ui/views/view_targeter_delegate.cc index c672f50..b20842f 100644 --- a/ui/views/view_targeter_delegate.cc +++ b/ui/views/view_targeter_delegate.cc @@ -4,6 +4,8 @@ #include "ui/views/view_targeter_delegate.h" +#include <limits.h> + #include "ui/gfx/geometry/rect_conversions.h" #include "ui/views/rect_based_targeting_utils.h" #include "ui/views/view.h" diff --git a/url/url_canon_path.cc b/url/url_canon_path.cc index 6e5bfb1..2e088a0 100644 --- a/url/url_canon_path.cc +++ b/url/url_canon_path.cc @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include <limits.h> + #include "base/logging.h" #include "url/url_canon.h" #include "url/url_canon_internal.h" |