summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions
diff options
context:
space:
mode:
authoravi <avi@chromium.org>2015-12-25 21:27:45 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-26 05:28:34 +0000
commit2729e442b1172c5094503a03fe356c8580bb919d (patch)
treebd3dc2c3feacd967c68d67c9c208306de942f7f5 /chrome/common/extensions
parentaa6492d9e85944a38963360ad903bf3eda48c3e3 (diff)
downloadchromium_src-2729e442b1172c5094503a03fe356c8580bb919d.zip
chromium_src-2729e442b1172c5094503a03fe356c8580bb919d.tar.gz
chromium_src-2729e442b1172c5094503a03fe356c8580bb919d.tar.bz2
Switch to standard integer types in chrome/.
BUG=138542 TBR=thakis@chromium.org NOPRESUBMIT=true Review URL: https://codereview.chromium.org/1548153002 Cr-Commit-Position: refs/heads/master@{#366893}
Diffstat (limited to 'chrome/common/extensions')
-rw-r--r--chrome/common/extensions/api/commands/commands_handler.h1
-rw-r--r--chrome/common/extensions/api/commands/commands_manifest_unittest.cc1
-rw-r--r--chrome/common/extensions/api/common_extension_api_unittest.cc3
-rw-r--r--chrome/common/extensions/api/file_browser_handlers/file_browser_handler.cc2
-rw-r--r--chrome/common/extensions/api/file_browser_handlers/file_browser_handler.h1
-rw-r--r--chrome/common/extensions/api/file_browser_handlers/file_browser_handler_manifest_unittest.cc1
-rw-r--r--chrome/common/extensions/api/file_system_provider_capabilities/file_system_provider_capabilities_handler.h1
-rw-r--r--chrome/common/extensions/api/input_ime/input_components_handler.cc2
-rw-r--r--chrome/common/extensions/api/input_ime/input_components_handler.h1
-rw-r--r--chrome/common/extensions/api/networking_private/networking_private_crypto.cc1
-rw-r--r--chrome/common/extensions/api/networking_private/networking_private_crypto.h1
-rw-r--r--chrome/common/extensions/api/networking_private/networking_private_crypto_unittest.cc12
-rw-r--r--chrome/common/extensions/api/plugins/plugins_handler.cc3
-rw-r--r--chrome/common/extensions/api/plugins/plugins_handler.h1
-rw-r--r--chrome/common/extensions/api/speech/tts_engine_manifest_handler.cc2
-rw-r--r--chrome/common/extensions/api/speech/tts_engine_manifest_handler.h1
-rw-r--r--chrome/common/extensions/api/spellcheck/spellcheck_handler.h1
-rw-r--r--chrome/common/extensions/api/storage/storage_schema_manifest_handler.h2
-rw-r--r--chrome/common/extensions/api/system_indicator/system_indicator_handler.h1
-rw-r--r--chrome/common/extensions/api/url_handlers/url_handlers_parser.h1
-rw-r--r--chrome/common/extensions/chrome_extension_messages.h8
-rw-r--r--chrome/common/extensions/chrome_extensions_client.h2
-rw-r--r--chrome/common/extensions/chrome_manifest_handlers.cc1
-rw-r--r--chrome/common/extensions/chrome_manifest_url_handlers.cc1
-rw-r--r--chrome/common/extensions/chrome_manifest_url_handlers.h1
-rw-r--r--chrome/common/extensions/chrome_utility_extensions_messages.h18
-rw-r--r--chrome/common/extensions/command.cc3
-rw-r--r--chrome/common/extensions/command_unittest.cc4
-rw-r--r--chrome/common/extensions/extension_constants.cc4
-rw-r--r--chrome/common/extensions/extension_constants.h6
-rw-r--r--chrome/common/extensions/extension_unittest.cc3
-rw-r--r--chrome/common/extensions/features/chrome_channel_feature_filter_unittest.cc1
-rw-r--r--chrome/common/extensions/manifest_handlers/app_icon_color_info.h1
-rw-r--r--chrome/common/extensions/manifest_handlers/app_launch_info.cc1
-rw-r--r--chrome/common/extensions/manifest_handlers/app_launch_info.h1
-rw-r--r--chrome/common/extensions/manifest_handlers/automation.h1
-rw-r--r--chrome/common/extensions/manifest_handlers/content_scripts_handler.cc3
-rw-r--r--chrome/common/extensions/manifest_handlers/content_scripts_handler.h1
-rw-r--r--chrome/common/extensions/manifest_handlers/content_scripts_manifest_unittest.cc1
-rw-r--r--chrome/common/extensions/manifest_handlers/copresence_manifest.h1
-rw-r--r--chrome/common/extensions/manifest_handlers/exclude_matches_manifest_unittest.cc1
-rw-r--r--chrome/common/extensions/manifest_handlers/extension_action_handler.h1
-rw-r--r--chrome/common/extensions/manifest_handlers/linked_app_icons.h1
-rw-r--r--chrome/common/extensions/manifest_handlers/minimum_chrome_version_checker.h1
-rw-r--r--chrome/common/extensions/manifest_handlers/settings_overrides_handler.h1
-rw-r--r--chrome/common/extensions/manifest_handlers/settings_overrides_handler_unittest.cc1
-rw-r--r--chrome/common/extensions/manifest_handlers/theme_handler.h1
-rw-r--r--chrome/common/extensions/manifest_handlers/ui_overrides_handler.h1
-rw-r--r--chrome/common/extensions/manifest_tests/extension_manifests_about_unittest.cc1
-rw-r--r--chrome/common/extensions/manifest_tests/extension_manifests_contentsecuritypolicy_unittest.cc1
-rw-r--r--chrome/common/extensions/manifest_tests/extension_manifests_homepage_unittest.cc1
-rw-r--r--chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc1
-rw-r--r--chrome/common/extensions/manifest_tests/extension_manifests_kiosk_unittest.cc1
-rw-r--r--chrome/common/extensions/manifest_tests/extension_manifests_launch_unittest.cc1
-rw-r--r--chrome/common/extensions/manifest_tests/extension_manifests_options_unittest.cc1
-rw-r--r--chrome/common/extensions/manifest_tests/extension_manifests_override_unittest.cc1
-rw-r--r--chrome/common/extensions/manifest_tests/extension_manifests_platformapp_unittest.cc1
-rw-r--r--chrome/common/extensions/manifest_tests/extension_manifests_requirements_unittest.cc1
-rw-r--r--chrome/common/extensions/manifest_tests/extension_manifests_sandboxed_unittest.cc1
-rw-r--r--chrome/common/extensions/manifest_tests/extension_manifests_update_unittest.cc1
-rw-r--r--chrome/common/extensions/manifest_tests/extension_manifests_web_unittest.cc1
-rw-r--r--chrome/common/extensions/permissions/chrome_api_permissions.cc3
-rw-r--r--chrome/common/extensions/permissions/chrome_permission_message_provider.h2
-rw-r--r--chrome/common/extensions/permissions/chrome_permission_message_provider_unittest.cc1
-rw-r--r--chrome/common/extensions/permissions/chrome_permission_message_rules.cc1
-rw-r--r--chrome/common/extensions/permissions/chrome_permission_message_rules.h1
-rw-r--r--chrome/common/extensions/permissions/chrome_permission_message_rules_unittest.cc2
-rw-r--r--chrome/common/extensions/permissions/permission_set_unittest.cc4
-rw-r--r--chrome/common/extensions/permissions/permissions_data_unittest.cc12
-rw-r--r--chrome/common/extensions/permissions/settings_override_permission_unittest.cc6
-rw-r--r--chrome/common/extensions/sync_type_unittest.cc1
71 files changed, 124 insertions, 31 deletions
diff --git a/chrome/common/extensions/api/commands/commands_handler.h b/chrome/common/extensions/api/commands/commands_handler.h
index ddd3348..5855908 100644
--- a/chrome/common/extensions/api/commands/commands_handler.h
+++ b/chrome/common/extensions/api/commands/commands_handler.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "chrome/common/extensions/command.h"
#include "extensions/common/extension.h"
diff --git a/chrome/common/extensions/api/commands/commands_manifest_unittest.cc b/chrome/common/extensions/api/commands/commands_manifest_unittest.cc
index 022d149..5e37f34 100644
--- a/chrome/common/extensions/api/commands/commands_manifest_unittest.cc
+++ b/chrome/common/extensions/api/commands/commands_manifest_unittest.cc
@@ -7,6 +7,7 @@
#include "base/command_line.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
+#include "build/build_config.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/extensions/api/commands/commands_handler.h"
#include "chrome/common/extensions/features/feature_channel.h"
diff --git a/chrome/common/extensions/api/common_extension_api_unittest.cc b/chrome/common/extensions/api/common_extension_api_unittest.cc
index 25a5d81..b3ec6af 100644
--- a/chrome/common/extensions/api/common_extension_api_unittest.cc
+++ b/chrome/common/extensions/api/common_extension_api_unittest.cc
@@ -4,6 +4,8 @@
#include "extensions/common/extension_api.h"
+#include <stddef.h>
+
#include <string>
#include <utility>
#include <vector>
@@ -12,6 +14,7 @@
#include "base/files/file_util.h"
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/path_service.h"
diff --git a/chrome/common/extensions/api/file_browser_handlers/file_browser_handler.cc b/chrome/common/extensions/api/file_browser_handlers/file_browser_handler.cc
index f0508a9..e994a17 100644
--- a/chrome/common/extensions/api/file_browser_handlers/file_browser_handler.cc
+++ b/chrome/common/extensions/api/file_browser_handlers/file_browser_handler.cc
@@ -4,6 +4,8 @@
#include "chrome/common/extensions/api/file_browser_handlers/file_browser_handler.h"
+#include <stddef.h>
+
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
diff --git a/chrome/common/extensions/api/file_browser_handlers/file_browser_handler.h b/chrome/common/extensions/api/file_browser_handlers/file_browser_handler.h
index d7297f1..b0f2384 100644
--- a/chrome/common/extensions/api/file_browser_handlers/file_browser_handler.h
+++ b/chrome/common/extensions/api/file_browser_handlers/file_browser_handler.h
@@ -8,7 +8,6 @@
#include <string>
#include <vector>
-#include "base/basictypes.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_handler.h"
#include "extensions/common/url_pattern.h"
diff --git a/chrome/common/extensions/api/file_browser_handlers/file_browser_handler_manifest_unittest.cc b/chrome/common/extensions/api/file_browser_handlers/file_browser_handler_manifest_unittest.cc
index 2c7b91c..868d216 100644
--- a/chrome/common/extensions/api/file_browser_handlers/file_browser_handler_manifest_unittest.cc
+++ b/chrome/common/extensions/api/file_browser_handlers/file_browser_handler_manifest_unittest.cc
@@ -4,6 +4,7 @@
#include <utility>
+#include "base/macros.h"
#include "base/strings/string_number_conversions.h"
#include "chrome/common/extensions/api/file_browser_handlers/file_browser_handler.h"
#include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h"
diff --git a/chrome/common/extensions/api/file_system_provider_capabilities/file_system_provider_capabilities_handler.h b/chrome/common/extensions/api/file_system_provider_capabilities/file_system_provider_capabilities_handler.h
index 762e435..a6af5fd 100644
--- a/chrome/common/extensions/api/file_system_provider_capabilities/file_system_provider_capabilities_handler.h
+++ b/chrome/common/extensions/api/file_system_provider_capabilities/file_system_provider_capabilities_handler.h
@@ -8,6 +8,7 @@
#include <string>
#include <vector>
+#include "base/macros.h"
#include "chrome/common/extensions/api/file_system_provider.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_handler.h"
diff --git a/chrome/common/extensions/api/input_ime/input_components_handler.cc b/chrome/common/extensions/api/input_ime/input_components_handler.cc
index 0f20370..2ec0b5f 100644
--- a/chrome/common/extensions/api/input_ime/input_components_handler.cc
+++ b/chrome/common/extensions/api/input_ime/input_components_handler.cc
@@ -4,6 +4,8 @@
#include "chrome/common/extensions/api/input_ime/input_components_handler.h"
+#include <stddef.h>
+
#include "base/memory/scoped_ptr.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
diff --git a/chrome/common/extensions/api/input_ime/input_components_handler.h b/chrome/common/extensions/api/input_ime/input_components_handler.h
index 410dcbb..b6dba6b 100644
--- a/chrome/common/extensions/api/input_ime/input_components_handler.h
+++ b/chrome/common/extensions/api/input_ime/input_components_handler.h
@@ -9,6 +9,7 @@
#include <string>
#include <vector>
+#include "base/macros.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_handler.h"
#include "url/gurl.h"
diff --git a/chrome/common/extensions/api/networking_private/networking_private_crypto.cc b/chrome/common/extensions/api/networking_private/networking_private_crypto.cc
index b02c798..c3f82fe 100644
--- a/chrome/common/extensions/api/networking_private/networking_private_crypto.cc
+++ b/chrome/common/extensions/api/networking_private/networking_private_crypto.cc
@@ -8,6 +8,7 @@
#include <openssl/evp.h>
#include <openssl/rsa.h>
#include <openssl/x509.h>
+#include <stddef.h>
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
diff --git a/chrome/common/extensions/api/networking_private/networking_private_crypto.h b/chrome/common/extensions/api/networking_private/networking_private_crypto.h
index 8940c0b..ce6f317 100644
--- a/chrome/common/extensions/api/networking_private/networking_private_crypto.h
+++ b/chrome/common/extensions/api/networking_private/networking_private_crypto.h
@@ -10,7 +10,6 @@
#include <string>
#include <vector>
-#include "base/basictypes.h"
namespace networking_private_crypto {
diff --git a/chrome/common/extensions/api/networking_private/networking_private_crypto_unittest.cc b/chrome/common/extensions/api/networking_private/networking_private_crypto_unittest.cc
index 5f5c446..a81d180 100644
--- a/chrome/common/extensions/api/networking_private/networking_private_crypto_unittest.cc
+++ b/chrome/common/extensions/api/networking_private/networking_private_crypto_unittest.cc
@@ -3,6 +3,8 @@
// found in the LICENSE file.
#include "chrome/common/extensions/api/networking_private/networking_private_crypto.h"
+#include <stdint.h>
+
#include "base/base64.h"
#include "base/logging.h"
#include "base/strings/stringprintf.h"
@@ -22,7 +24,7 @@ class NetworkingPrivateCryptoTest : public testing::Test {
// |plain| data.
bool VerifyByteString(const std::string& private_key_pem,
const std::string& plain,
- const std::vector<uint8>& encrypted) {
+ const std::vector<uint8_t>& encrypted) {
std::string decrypted;
if (networking_private_crypto::DecryptByteString(
private_key_pem, encrypted, &decrypted))
@@ -206,16 +208,16 @@ TEST_F(NetworkingPrivateCryptoTest, EncryptByteString) {
"e5ZqY4RmsQmv6K0rn5k+UT4qlPeVp1e6LnvO/PcKWOaUvDK59qFZoX4vN+iFUAbk"
"IuvhmL9u/uPWWck="
"-----END PRIVATE KEY-----";
- static const std::vector<uint8> kBadKeyData(5, 111);
+ static const std::vector<uint8_t> kBadKeyData(5, 111);
static const char kTestData[] = "disco boy";
static const char kEmptyData[] = "";
std::string public_key_string;
base::Base64Decode(kPublicKey, &public_key_string);
- std::vector<uint8> public_key(public_key_string.begin(),
- public_key_string.end());
+ std::vector<uint8_t> public_key(public_key_string.begin(),
+ public_key_string.end());
std::string plain;
- std::vector<uint8> encrypted_output;
+ std::vector<uint8_t> encrypted_output;
// Checking basic encryption operation.
plain = kTestData;
diff --git a/chrome/common/extensions/api/plugins/plugins_handler.cc b/chrome/common/extensions/api/plugins/plugins_handler.cc
index 6cb2cac..ec2b73e 100644
--- a/chrome/common/extensions/api/plugins/plugins_handler.cc
+++ b/chrome/common/extensions/api/plugins/plugins_handler.cc
@@ -4,10 +4,13 @@
#include "chrome/common/extensions/api/plugins/plugins_handler.h"
+#include <stddef.h>
+
#include "base/files/file_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
+#include "build/build_config.h"
#include "chrome/grit/generated_resources.h"
#include "extensions/common/error_utils.h"
#include "extensions/common/manifest.h"
diff --git a/chrome/common/extensions/api/plugins/plugins_handler.h b/chrome/common/extensions/api/plugins/plugins_handler.h
index d9ce2fa..ca2a4bc 100644
--- a/chrome/common/extensions/api/plugins/plugins_handler.h
+++ b/chrome/common/extensions/api/plugins/plugins_handler.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_handler.h"
diff --git a/chrome/common/extensions/api/speech/tts_engine_manifest_handler.cc b/chrome/common/extensions/api/speech/tts_engine_manifest_handler.cc
index 9a5b544..9f0ffa4 100644
--- a/chrome/common/extensions/api/speech/tts_engine_manifest_handler.cc
+++ b/chrome/common/extensions/api/speech/tts_engine_manifest_handler.cc
@@ -4,6 +4,8 @@
#include "chrome/common/extensions/api/speech/tts_engine_manifest_handler.h"
+#include <stddef.h>
+
#include "base/memory/scoped_ptr.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
diff --git a/chrome/common/extensions/api/speech/tts_engine_manifest_handler.h b/chrome/common/extensions/api/speech/tts_engine_manifest_handler.h
index 2fcc54f..59108ca 100644
--- a/chrome/common/extensions/api/speech/tts_engine_manifest_handler.h
+++ b/chrome/common/extensions/api/speech/tts_engine_manifest_handler.h
@@ -9,6 +9,7 @@
#include <string>
#include <vector>
+#include "base/macros.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_handler.h"
diff --git a/chrome/common/extensions/api/spellcheck/spellcheck_handler.h b/chrome/common/extensions/api/spellcheck/spellcheck_handler.h
index 53bfe32..8c9122d 100644
--- a/chrome/common/extensions/api/spellcheck/spellcheck_handler.h
+++ b/chrome/common/extensions/api/spellcheck/spellcheck_handler.h
@@ -5,6 +5,7 @@
#ifndef CHROME_COMMON_EXTENSIONS_API_SPELLCHECK_SPELLCHECK_HANDLER_H_
#define CHROME_COMMON_EXTENSIONS_API_SPELLCHECK_SPELLCHECK_HANDLER_H_
+#include "base/macros.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_handler.h"
diff --git a/chrome/common/extensions/api/storage/storage_schema_manifest_handler.h b/chrome/common/extensions/api/storage/storage_schema_manifest_handler.h
index c698e2d..ef130b3 100644
--- a/chrome/common/extensions/api/storage/storage_schema_manifest_handler.h
+++ b/chrome/common/extensions/api/storage/storage_schema_manifest_handler.h
@@ -5,7 +5,7 @@
#ifndef CHROME_COMMON_EXTENSIONS_API_STORAGE_STORAGE_SCHEMA_MANIFEST_HANDLER_H_
#define CHROME_COMMON_EXTENSIONS_API_STORAGE_STORAGE_SCHEMA_MANIFEST_HANDLER_H_
-#include "base/basictypes.h"
+#include "base/macros.h"
#include "extensions/common/manifest_handler.h"
namespace policy {
diff --git a/chrome/common/extensions/api/system_indicator/system_indicator_handler.h b/chrome/common/extensions/api/system_indicator/system_indicator_handler.h
index 19e4e5f..54744cd 100644
--- a/chrome/common/extensions/api/system_indicator/system_indicator_handler.h
+++ b/chrome/common/extensions/api/system_indicator/system_indicator_handler.h
@@ -5,6 +5,7 @@
#ifndef CHROME_COMMON_EXTENSIONS_API_SYSTEM_INDICATOR_SYSTEM_INDICATOR_HANDLER_H_
#define CHROME_COMMON_EXTENSIONS_API_SYSTEM_INDICATOR_SYSTEM_INDICATOR_HANDLER_H_
+#include "base/macros.h"
#include "base/strings/string16.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_handler.h"
diff --git a/chrome/common/extensions/api/url_handlers/url_handlers_parser.h b/chrome/common/extensions/api/url_handlers/url_handlers_parser.h
index 3c3350f..a580c6f 100644
--- a/chrome/common/extensions/api/url_handlers/url_handlers_parser.h
+++ b/chrome/common/extensions/api/url_handlers/url_handlers_parser.h
@@ -8,6 +8,7 @@
#include <string>
#include <vector>
+#include "base/macros.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_handler.h"
#include "extensions/common/url_pattern.h"
diff --git a/chrome/common/extensions/chrome_extension_messages.h b/chrome/common/extensions/chrome_extension_messages.h
index 637016c..af0ed70 100644
--- a/chrome/common/extensions/chrome_extension_messages.h
+++ b/chrome/common/extensions/chrome_extension_messages.h
@@ -8,6 +8,8 @@
//
// Multiply-included message file, hence no include guard.
+#include <stdint.h>
+
#include <string>
#include "base/strings/string16.h"
@@ -50,7 +52,7 @@ IPC_MESSAGE_ROUTED1(ExtensionMsg_InlineInstallDownloadProgress,
// Send to renderer once the installation mentioned on
// ExtensionHostMsg_InlineWebstoreInstall is complete.
IPC_MESSAGE_ROUTED4(ExtensionMsg_InlineWebstoreInstallResponse,
- int32 /* install id */,
+ int32_t /* install id */,
bool /* whether the install was successful */,
std::string /* error */,
extensions::webstore_install::Result /* result */)
@@ -119,8 +121,8 @@ IPC_MESSAGE_ROUTED2(ExtensionMsg_AccessibilityEvent,
// Sent by the renderer to implement chrome.webstore.install().
IPC_MESSAGE_ROUTED5(ExtensionHostMsg_InlineWebstoreInstall,
- int32 /* install id */,
- int32 /* return route id */,
+ int32_t /* install id */,
+ int32_t /* return route id */,
std::string /* Web Store item ID */,
GURL /* requestor URL */,
int /* listeners_mask */)
diff --git a/chrome/common/extensions/chrome_extensions_client.h b/chrome/common/extensions/chrome_extensions_client.h
index 8728186..171168d 100644
--- a/chrome/common/extensions/chrome_extensions_client.h
+++ b/chrome/common/extensions/chrome_extensions_client.h
@@ -5,9 +5,9 @@
#ifndef CHROME_COMMON_EXTENSIONS_CHROME_EXTENSIONS_CLIENT_H_
#define CHROME_COMMON_EXTENSIONS_CHROME_EXTENSIONS_CLIENT_H_
-#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/lazy_instance.h"
+#include "base/macros.h"
#include "chrome/common/extensions/permissions/chrome_api_permissions.h"
#include "chrome/common/extensions/permissions/chrome_permission_message_provider.h"
#include "extensions/common/extensions_client.h"
diff --git a/chrome/common/extensions/chrome_manifest_handlers.cc b/chrome/common/extensions/chrome_manifest_handlers.cc
index 590414c..9751d04 100644
--- a/chrome/common/extensions/chrome_manifest_handlers.cc
+++ b/chrome/common/extensions/chrome_manifest_handlers.cc
@@ -4,6 +4,7 @@
#include "chrome/common/extensions/chrome_manifest_handlers.h"
+#include "build/build_config.h"
#include "chrome/common/extensions/api/commands/commands_handler.h"
#include "chrome/common/extensions/api/omnibox/omnibox_handler.h"
#include "chrome/common/extensions/api/plugins/plugins_handler.h"
diff --git a/chrome/common/extensions/chrome_manifest_url_handlers.cc b/chrome/common/extensions/chrome_manifest_url_handlers.cc
index 1df780d..5531190 100644
--- a/chrome/common/extensions/chrome_manifest_url_handlers.cc
+++ b/chrome/common/extensions/chrome_manifest_url_handlers.cc
@@ -10,6 +10,7 @@
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
+#include "build/build_config.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/url_constants.h"
#include "extensions/common/error_utils.h"
diff --git a/chrome/common/extensions/chrome_manifest_url_handlers.h b/chrome/common/extensions/chrome_manifest_url_handlers.h
index 396fb42..6895ab9 100644
--- a/chrome/common/extensions/chrome_manifest_url_handlers.h
+++ b/chrome/common/extensions/chrome_manifest_url_handlers.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/macros.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_handler.h"
diff --git a/chrome/common/extensions/chrome_utility_extensions_messages.h b/chrome/common/extensions/chrome_utility_extensions_messages.h
index 95cdee3..ea3920fd 100644
--- a/chrome/common/extensions/chrome_utility_extensions_messages.h
+++ b/chrome/common/extensions/chrome_utility_extensions_messages.h
@@ -4,11 +4,13 @@
// Multiply-included message file, so no include guard.
+#include <stdint.h>
+
#include <string>
#include <vector>
-#include "base/basictypes.h"
#include "base/files/file_path.h"
+#include "build/build_config.h"
#include "chrome/common/media_galleries/iphoto_library.h"
#include "chrome/common/media_galleries/itunes_library.h"
#include "chrome/common/media_galleries/metadata_types.h"
@@ -113,16 +115,16 @@ IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_IndexPicasaAlbumsContents,
// |milliseconds_of_decoding| wall clock time. It is still not safe to decode
// the file in the browser process after this check.
IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_CheckMediaFile,
- int64 /* milliseconds_of_decoding */,
+ int64_t /* milliseconds_of_decoding */,
IPC::PlatformFileForTransit /* Media file to parse */)
IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_ParseMediaMetadata,
std::string /* mime_type */,
- int64 /* total_size */,
+ int64_t /* total_size */,
bool /* get_attached_images */)
IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RequestBlobBytes_Finished,
- int64 /* request_id */,
+ int64_t /* request_id */,
std::string /* bytes */)
// Requests that the utility process write the contents of the source file to
@@ -193,9 +195,9 @@ IPC_MESSAGE_CONTROL3(
std::vector<metadata::AttachedImage> /* attached_images */)
IPC_MESSAGE_CONTROL3(ChromeUtilityHostMsg_RequestBlobBytes,
- int64 /* request_id */,
- int64 /* start_byte */,
- int64 /* length */)
+ int64_t /* request_id */,
+ int64_t /* start_byte */,
+ int64_t /* length */)
// Reply when a write or verify operation succeeds.
IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ImageWriter_Succeeded)
@@ -209,7 +211,7 @@ IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ImageWriter_Failed,
// Periodic status update about the progress of an operation.
IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ImageWriter_Progress,
- int64 /* number of bytes processed */)
+ int64_t /* number of bytes processed */)
#if defined(OS_WIN)
// Get plain-text WiFi credentials from the system (requires UAC privilege
diff --git a/chrome/common/extensions/command.cc b/chrome/common/extensions/command.cc
index 9604c06..1615773 100644
--- a/chrome/common/extensions/command.cc
+++ b/chrome/common/extensions/command.cc
@@ -4,11 +4,14 @@
#include "chrome/common/extensions/command.h"
+#include <stddef.h>
+
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/values.h"
+#include "build/build_config.h"
#include "chrome/grit/generated_resources.h"
#include "extensions/common/error_utils.h"
#include "extensions/common/extension.h"
diff --git a/chrome/common/extensions/command_unittest.cc b/chrome/common/extensions/command_unittest.cc
index 4a29ff8..ef3df6f 100644
--- a/chrome/common/extensions/command_unittest.cc
+++ b/chrome/common/extensions/command_unittest.cc
@@ -4,11 +4,15 @@
#include "chrome/common/extensions/command.h"
+#include <stddef.h>
+
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
+#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
class CommandTest : public testing::Test {
diff --git a/chrome/common/extensions/extension_constants.cc b/chrome/common/extensions/extension_constants.cc
index 30925c5..d08d363 100644
--- a/chrome/common/extensions/extension_constants.cc
+++ b/chrome/common/extensions/extension_constants.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 "base/macros.h"
+#include "build/build_config.h"
#include "chrome/common/extensions/extension_constants.h"
namespace extension_urls {
@@ -94,7 +96,7 @@ const char kAppStateReadyToRun[] = "ready_to_run";
const char kMediaFileSystemPathPart[] = "_";
-const uint8 kWebstoreSignaturesPublicKey[] = {
+const uint8_t kWebstoreSignaturesPublicKey[] = {
0x30, 0x82, 0x01, 0x22, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86,
0xf7, 0x0d, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0f, 0x00,
0x30, 0x82, 0x01, 0x0a, 0x02, 0x82, 0x01, 0x01, 0x00, 0x8f, 0xfb, 0xbf,
diff --git a/chrome/common/extensions/extension_constants.h b/chrome/common/extensions/extension_constants.h
index c132601..090e230 100644
--- a/chrome/common/extensions/extension_constants.h
+++ b/chrome/common/extensions/extension_constants.h
@@ -5,10 +5,12 @@
#ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_
#define CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_
+#include <stdint.h>
+
#include <string>
-#include "base/basictypes.h"
#include "base/files/file_path.h"
+#include "build/build_config.h"
#include "url/gurl.h"
namespace extension_urls {
@@ -245,7 +247,7 @@ extern const char kAppStateReadyToRun[];
extern const char kMediaFileSystemPathPart[];
// The key used for signing some pieces of data from the webstore.
-extern const uint8 kWebstoreSignaturesPublicKey[];
+extern const uint8_t kWebstoreSignaturesPublicKey[];
extern const int kWebstoreSignaturesPublicKeySize;
} // namespace extension_misc
diff --git a/chrome/common/extensions/extension_unittest.cc b/chrome/common/extensions/extension_unittest.cc
index 18d06da..eb5d088 100644
--- a/chrome/common/extensions/extension_unittest.cc
+++ b/chrome/common/extensions/extension_unittest.cc
@@ -2,8 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stddef.h>
+
#include "base/files/file_util.h"
#include "base/format_macros.h"
+#include "base/macros.h"
#include "base/path_service.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
diff --git a/chrome/common/extensions/features/chrome_channel_feature_filter_unittest.cc b/chrome/common/extensions/features/chrome_channel_feature_filter_unittest.cc
index febe87e..95eb719 100644
--- a/chrome/common/extensions/features/chrome_channel_feature_filter_unittest.cc
+++ b/chrome/common/extensions/features/chrome_channel_feature_filter_unittest.cc
@@ -7,6 +7,7 @@
#include <string>
#include <utility>
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/values.h"
#include "chrome/common/extensions/features/feature_channel.h"
diff --git a/chrome/common/extensions/manifest_handlers/app_icon_color_info.h b/chrome/common/extensions/manifest_handlers/app_icon_color_info.h
index e44e301..555e086 100644
--- a/chrome/common/extensions/manifest_handlers/app_icon_color_info.h
+++ b/chrome/common/extensions/manifest_handlers/app_icon_color_info.h
@@ -5,6 +5,7 @@
#ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_APP_ICON_COLOR_INFO_H_
#define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_APP_ICON_COLOR_INFO_H_
+#include "base/macros.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_handler.h"
#include "third_party/skia/include/core/SkColor.h"
diff --git a/chrome/common/extensions/manifest_handlers/app_launch_info.cc b/chrome/common/extensions/manifest_handlers/app_launch_info.cc
index 970796c..1f21978 100644
--- a/chrome/common/extensions/manifest_handlers/app_launch_info.cc
+++ b/chrome/common/extensions/manifest_handlers/app_launch_info.cc
@@ -6,6 +6,7 @@
#include "base/command_line.h"
#include "base/lazy_instance.h"
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
diff --git a/chrome/common/extensions/manifest_handlers/app_launch_info.h b/chrome/common/extensions/manifest_handlers/app_launch_info.h
index 5c833cb..516bd0a 100644
--- a/chrome/common/extensions/manifest_handlers/app_launch_info.h
+++ b/chrome/common/extensions/manifest_handlers/app_launch_info.h
@@ -8,6 +8,7 @@
#include <string>
#include <vector>
+#include "base/macros.h"
#include "chrome/common/extensions/extension_constants.h"
#include "extensions/common/constants.h"
#include "extensions/common/extension.h"
diff --git a/chrome/common/extensions/manifest_handlers/automation.h b/chrome/common/extensions/manifest_handlers/automation.h
index 2eaed61..1569b07 100644
--- a/chrome/common/extensions/manifest_handlers/automation.h
+++ b/chrome/common/extensions/manifest_handlers/automation.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_handler.h"
diff --git a/chrome/common/extensions/manifest_handlers/content_scripts_handler.cc b/chrome/common/extensions/manifest_handlers/content_scripts_handler.cc
index d2d7131..942acd3 100644
--- a/chrome/common/extensions/manifest_handlers/content_scripts_handler.cc
+++ b/chrome/common/extensions/manifest_handlers/content_scripts_handler.cc
@@ -4,8 +4,11 @@
#include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h"
+#include <stddef.h>
+
#include "base/files/file_util.h"
#include "base/lazy_instance.h"
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
diff --git a/chrome/common/extensions/manifest_handlers/content_scripts_handler.h b/chrome/common/extensions/manifest_handlers/content_scripts_handler.h
index 295a59b..f633d63 100644
--- a/chrome/common/extensions/manifest_handlers/content_scripts_handler.h
+++ b/chrome/common/extensions/manifest_handlers/content_scripts_handler.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/macros.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_handler.h"
#include "extensions/common/user_script.h"
diff --git a/chrome/common/extensions/manifest_handlers/content_scripts_manifest_unittest.cc b/chrome/common/extensions/manifest_handlers/content_scripts_manifest_unittest.cc
index 72dc34f..bcb0d52 100644
--- a/chrome/common/extensions/manifest_handlers/content_scripts_manifest_unittest.cc
+++ b/chrome/common/extensions/manifest_handlers/content_scripts_manifest_unittest.cc
@@ -4,6 +4,7 @@
#include "base/command_line.h"
#include "base/files/file_path.h"
+#include "base/macros.h"
#include "base/path_service.h"
#include "base/strings/string_number_conversions.h"
#include "chrome/common/chrome_paths.h"
diff --git a/chrome/common/extensions/manifest_handlers/copresence_manifest.h b/chrome/common/extensions/manifest_handlers/copresence_manifest.h
index 487c7a3..b9ff707 100644
--- a/chrome/common/extensions/manifest_handlers/copresence_manifest.h
+++ b/chrome/common/extensions/manifest_handlers/copresence_manifest.h
@@ -8,6 +8,7 @@
#include <string>
#include <vector>
+#include "base/macros.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_handler.h"
diff --git a/chrome/common/extensions/manifest_handlers/exclude_matches_manifest_unittest.cc b/chrome/common/extensions/manifest_handlers/exclude_matches_manifest_unittest.cc
index 7a08efb..0e699d4 100644
--- a/chrome/common/extensions/manifest_handlers/exclude_matches_manifest_unittest.cc
+++ b/chrome/common/extensions/manifest_handlers/exclude_matches_manifest_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 "base/macros.h"
#include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h"
#include "extensions/common/extension.h"
#include "testing/gtest/include/gtest/gtest.h"
diff --git a/chrome/common/extensions/manifest_handlers/extension_action_handler.h b/chrome/common/extensions/manifest_handlers/extension_action_handler.h
index 48441b3..d3fc200 100644
--- a/chrome/common/extensions/manifest_handlers/extension_action_handler.h
+++ b/chrome/common/extensions/manifest_handlers/extension_action_handler.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/macros.h"
#include "extensions/common/manifest_handler.h"
namespace extensions {
diff --git a/chrome/common/extensions/manifest_handlers/linked_app_icons.h b/chrome/common/extensions/manifest_handlers/linked_app_icons.h
index ec984be..426a0cb 100644
--- a/chrome/common/extensions/manifest_handlers/linked_app_icons.h
+++ b/chrome/common/extensions/manifest_handlers/linked_app_icons.h
@@ -7,6 +7,7 @@
#include <vector>
+#include "base/macros.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_handler.h"
diff --git a/chrome/common/extensions/manifest_handlers/minimum_chrome_version_checker.h b/chrome/common/extensions/manifest_handlers/minimum_chrome_version_checker.h
index 272a980..d420c5b 100644
--- a/chrome/common/extensions/manifest_handlers/minimum_chrome_version_checker.h
+++ b/chrome/common/extensions/manifest_handlers/minimum_chrome_version_checker.h
@@ -5,6 +5,7 @@
#ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_MINIMUM_CHROME_VERSION_CHECKER_H_
#define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_MINIMUM_CHROME_VERSION_CHECKER_H_
+#include "base/macros.h"
#include "extensions/common/manifest_handler.h"
namespace extensions {
diff --git a/chrome/common/extensions/manifest_handlers/settings_overrides_handler.h b/chrome/common/extensions/manifest_handlers/settings_overrides_handler.h
index f813965..58d8dc6 100644
--- a/chrome/common/extensions/manifest_handlers/settings_overrides_handler.h
+++ b/chrome/common/extensions/manifest_handlers/settings_overrides_handler.h
@@ -5,6 +5,7 @@
#ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_SETTINGS_OVERRIDES_HANDLER_H_
#define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_SETTINGS_OVERRIDES_HANDLER_H_
+#include "base/macros.h"
#include "chrome/common/extensions/api/manifest_types.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_handler.h"
diff --git a/chrome/common/extensions/manifest_handlers/settings_overrides_handler_unittest.cc b/chrome/common/extensions/manifest_handlers/settings_overrides_handler_unittest.cc
index 82bda5a..c0d9f75 100644
--- a/chrome/common/extensions/manifest_handlers/settings_overrides_handler_unittest.cc
+++ b/chrome/common/extensions/manifest_handlers/settings_overrides_handler_unittest.cc
@@ -6,6 +6,7 @@
#include "base/json/json_string_value_serializer.h"
#include "base/strings/utf_string_conversions.h"
+#include "build/build_config.h"
#include "extensions/common/error_utils.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_constants.h"
diff --git a/chrome/common/extensions/manifest_handlers/theme_handler.h b/chrome/common/extensions/manifest_handlers/theme_handler.h
index bd35f28..da601e1 100644
--- a/chrome/common/extensions/manifest_handlers/theme_handler.h
+++ b/chrome/common/extensions/manifest_handlers/theme_handler.h
@@ -5,6 +5,7 @@
#ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_THEME_HANDLER_H_
#define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_THEME_HANDLER_H_
+#include "base/macros.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_handler.h"
diff --git a/chrome/common/extensions/manifest_handlers/ui_overrides_handler.h b/chrome/common/extensions/manifest_handlers/ui_overrides_handler.h
index 15ad89a..9af93a1 100644
--- a/chrome/common/extensions/manifest_handlers/ui_overrides_handler.h
+++ b/chrome/common/extensions/manifest_handlers/ui_overrides_handler.h
@@ -5,6 +5,7 @@
#ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_UI_OVERRIDES_HANDLER_H_
#define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_UI_OVERRIDES_HANDLER_H_
+#include "base/macros.h"
#include "chrome/common/extensions/api/manifest_types.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_handler.h"
diff --git a/chrome/common/extensions/manifest_tests/extension_manifests_about_unittest.cc b/chrome/common/extensions/manifest_tests/extension_manifests_about_unittest.cc
index 3430164..3407e3b 100644
--- a/chrome/common/extensions/manifest_tests/extension_manifests_about_unittest.cc
+++ b/chrome/common/extensions/manifest_tests/extension_manifests_about_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 "base/macros.h"
#include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h"
#include "extensions/common/manifest_constants.h"
#include "extensions/common/manifest_url_handlers.h"
diff --git a/chrome/common/extensions/manifest_tests/extension_manifests_contentsecuritypolicy_unittest.cc b/chrome/common/extensions/manifest_tests/extension_manifests_contentsecuritypolicy_unittest.cc
index 1048817..7acb0af 100644
--- a/chrome/common/extensions/manifest_tests/extension_manifests_contentsecuritypolicy_unittest.cc
+++ b/chrome/common/extensions/manifest_tests/extension_manifests_contentsecuritypolicy_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 "base/macros.h"
#include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h"
#include "extensions/common/error_utils.h"
#include "extensions/common/manifest_constants.h"
diff --git a/chrome/common/extensions/manifest_tests/extension_manifests_homepage_unittest.cc b/chrome/common/extensions/manifest_tests/extension_manifests_homepage_unittest.cc
index c066adc..a0dd367 100644
--- a/chrome/common/extensions/manifest_tests/extension_manifests_homepage_unittest.cc
+++ b/chrome/common/extensions/manifest_tests/extension_manifests_homepage_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 "base/macros.h"
#include "base/strings/string_util.h"
#include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h"
#include "extensions/common/extension.h"
diff --git a/chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc b/chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc
index 28f0688..22e6322 100644
--- a/chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc
+++ b/chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc
@@ -4,6 +4,7 @@
#include "base/command_line.h"
#include "base/i18n/rtl.h"
+#include "base/macros.h"
#include "base/path_service.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/common/chrome_paths.h"
diff --git a/chrome/common/extensions/manifest_tests/extension_manifests_kiosk_unittest.cc b/chrome/common/extensions/manifest_tests/extension_manifests_kiosk_unittest.cc
index 00de7cd..7a45ea4 100644
--- a/chrome/common/extensions/manifest_tests/extension_manifests_kiosk_unittest.cc
+++ b/chrome/common/extensions/manifest_tests/extension_manifests_kiosk_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 "build/build_config.h"
#include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_constants.h"
diff --git a/chrome/common/extensions/manifest_tests/extension_manifests_launch_unittest.cc b/chrome/common/extensions/manifest_tests/extension_manifests_launch_unittest.cc
index d8e31eb..75a73f6 100644
--- a/chrome/common/extensions/manifest_tests/extension_manifests_launch_unittest.cc
+++ b/chrome/common/extensions/manifest_tests/extension_manifests_launch_unittest.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "base/command_line.h"
+#include "base/macros.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/extensions/manifest_handlers/app_launch_info.h"
#include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h"
diff --git a/chrome/common/extensions/manifest_tests/extension_manifests_options_unittest.cc b/chrome/common/extensions/manifest_tests/extension_manifests_options_unittest.cc
index e14abf6..45a46fe 100644
--- a/chrome/common/extensions/manifest_tests/extension_manifests_options_unittest.cc
+++ b/chrome/common/extensions/manifest_tests/extension_manifests_options_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 "base/macros.h"
#include "base/strings/stringprintf.h"
#include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h"
#include "extensions/common/error_utils.h"
diff --git a/chrome/common/extensions/manifest_tests/extension_manifests_override_unittest.cc b/chrome/common/extensions/manifest_tests/extension_manifests_override_unittest.cc
index d3a1b0c..a04d08a 100644
--- a/chrome/common/extensions/manifest_tests/extension_manifests_override_unittest.cc
+++ b/chrome/common/extensions/manifest_tests/extension_manifests_override_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 "base/macros.h"
#include "chrome/common/extensions/chrome_manifest_url_handlers.h"
#include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h"
#include "extensions/common/manifest_constants.h"
diff --git a/chrome/common/extensions/manifest_tests/extension_manifests_platformapp_unittest.cc b/chrome/common/extensions/manifest_tests/extension_manifests_platformapp_unittest.cc
index 09e438e..9a71ab9 100644
--- a/chrome/common/extensions/manifest_tests/extension_manifests_platformapp_unittest.cc
+++ b/chrome/common/extensions/manifest_tests/extension_manifests_platformapp_unittest.cc
@@ -4,6 +4,7 @@
#include "base/command_line.h"
#include "base/json/json_file_value_serializer.h"
+#include "base/macros.h"
#include "base/memory/linked_ptr.h"
#include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h"
#include "extensions/common/error_utils.h"
diff --git a/chrome/common/extensions/manifest_tests/extension_manifests_requirements_unittest.cc b/chrome/common/extensions/manifest_tests/extension_manifests_requirements_unittest.cc
index 99c1a9d..3479135 100644
--- a/chrome/common/extensions/manifest_tests/extension_manifests_requirements_unittest.cc
+++ b/chrome/common/extensions/manifest_tests/extension_manifests_requirements_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 "base/macros.h"
#include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h"
#include "extensions/common/error_utils.h"
#include "extensions/common/manifest_constants.h"
diff --git a/chrome/common/extensions/manifest_tests/extension_manifests_sandboxed_unittest.cc b/chrome/common/extensions/manifest_tests/extension_manifests_sandboxed_unittest.cc
index 06b1425..1c8e0ce 100644
--- a/chrome/common/extensions/manifest_tests/extension_manifests_sandboxed_unittest.cc
+++ b/chrome/common/extensions/manifest_tests/extension_manifests_sandboxed_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 "base/macros.h"
#include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h"
#include "extensions/common/manifest_constants.h"
#include "extensions/common/manifest_handlers/csp_info.h"
diff --git a/chrome/common/extensions/manifest_tests/extension_manifests_update_unittest.cc b/chrome/common/extensions/manifest_tests/extension_manifests_update_unittest.cc
index 5c23f57..4e07ef3 100644
--- a/chrome/common/extensions/manifest_tests/extension_manifests_update_unittest.cc
+++ b/chrome/common/extensions/manifest_tests/extension_manifests_update_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 "base/macros.h"
#include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h"
#include "extensions/common/manifest_constants.h"
#include "extensions/common/manifest_url_handlers.h"
diff --git a/chrome/common/extensions/manifest_tests/extension_manifests_web_unittest.cc b/chrome/common/extensions/manifest_tests/extension_manifests_web_unittest.cc
index 9fdd7de..dff2818 100644
--- a/chrome/common/extensions/manifest_tests/extension_manifests_web_unittest.cc
+++ b/chrome/common/extensions/manifest_tests/extension_manifests_web_unittest.cc
@@ -4,6 +4,7 @@
#include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h"
+#include "base/macros.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "extensions/common/error_utils.h"
diff --git a/chrome/common/extensions/permissions/chrome_api_permissions.cc b/chrome/common/extensions/permissions/chrome_api_permissions.cc
index 8541d3b..7cc1f6b 100644
--- a/chrome/common/extensions/permissions/chrome_api_permissions.cc
+++ b/chrome/common/extensions/permissions/chrome_api_permissions.cc
@@ -4,6 +4,9 @@
#include "chrome/common/extensions/permissions/chrome_api_permissions.h"
+#include <stddef.h>
+
+#include "base/macros.h"
#include "chrome/grit/generated_resources.h"
#include "extensions/common/permissions/api_permission.h"
#include "extensions/common/permissions/api_permission_set.h"
diff --git a/chrome/common/extensions/permissions/chrome_permission_message_provider.h b/chrome/common/extensions/permissions/chrome_permission_message_provider.h
index 9a86c8c..28e7868 100644
--- a/chrome/common/extensions/permissions/chrome_permission_message_provider.h
+++ b/chrome/common/extensions/permissions/chrome_permission_message_provider.h
@@ -7,7 +7,7 @@
#include <set>
-#include "base/basictypes.h"
+#include "base/macros.h"
#include "base/strings/string16.h"
#include "extensions/common/permissions/permission_message_provider.h"
diff --git a/chrome/common/extensions/permissions/chrome_permission_message_provider_unittest.cc b/chrome/common/extensions/permissions/chrome_permission_message_provider_unittest.cc
index c1a39b2..2eab2a4 100644
--- a/chrome/common/extensions/permissions/chrome_permission_message_provider_unittest.cc
+++ b/chrome/common/extensions/permissions/chrome_permission_message_provider_unittest.cc
@@ -6,6 +6,7 @@
#include <vector>
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
#include "base/values.h"
diff --git a/chrome/common/extensions/permissions/chrome_permission_message_rules.cc b/chrome/common/extensions/permissions/chrome_permission_message_rules.cc
index 4ef877e..b566914 100644
--- a/chrome/common/extensions/permissions/chrome_permission_message_rules.cc
+++ b/chrome/common/extensions/permissions/chrome_permission_message_rules.cc
@@ -4,6 +4,7 @@
#include "chrome/common/extensions/permissions/chrome_permission_message_rules.h"
+#include "base/macros.h"
#include "base/stl_util.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
diff --git a/chrome/common/extensions/permissions/chrome_permission_message_rules.h b/chrome/common/extensions/permissions/chrome_permission_message_rules.h
index 99641e80..a2683ac 100644
--- a/chrome/common/extensions/permissions/chrome_permission_message_rules.h
+++ b/chrome/common/extensions/permissions/chrome_permission_message_rules.h
@@ -8,6 +8,7 @@
#include <set>
#include <vector>
+#include "base/macros.h"
#include "base/memory/linked_ptr.h"
#include "extensions/common/permissions/api_permission.h"
#include "extensions/common/permissions/api_permission_set.h"
diff --git a/chrome/common/extensions/permissions/chrome_permission_message_rules_unittest.cc b/chrome/common/extensions/permissions/chrome_permission_message_rules_unittest.cc
index 60695fd..1bad3e8 100644
--- a/chrome/common/extensions/permissions/chrome_permission_message_rules_unittest.cc
+++ b/chrome/common/extensions/permissions/chrome_permission_message_rules_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 <stddef.h>
+
#include <set>
#include <vector>
diff --git a/chrome/common/extensions/permissions/permission_set_unittest.cc b/chrome/common/extensions/permissions/permission_set_unittest.cc
index 70b5f66..f939f1e 100644
--- a/chrome/common/extensions/permissions/permission_set_unittest.cc
+++ b/chrome/common/extensions/permissions/permission_set_unittest.cc
@@ -2,14 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stddef.h>
+
#include <utility>
#include "base/command_line.h"
#include "base/json/json_file_value_serializer.h"
#include "base/logging.h"
+#include "base/macros.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
+#include "build/build_config.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/extensions/extension_test_util.h"
diff --git a/chrome/common/extensions/permissions/permissions_data_unittest.cc b/chrome/common/extensions/permissions/permissions_data_unittest.cc
index c2cc98e..22ac1e8 100644
--- a/chrome/common/extensions/permissions/permissions_data_unittest.cc
+++ b/chrome/common/extensions/permissions/permissions_data_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 <stdint.h>
+
#include <utility>
#include <vector>
@@ -9,6 +11,7 @@
#include "base/memory/ref_counted.h"
#include "base/strings/string16.h"
#include "base/strings/utf_string_conversions.h"
+#include "build/build_config.h"
#include "chrome/common/extensions/extension_test_util.h"
#include "components/crx_file/id_util.h"
#include "content/public/common/socket_permission_request.h"
@@ -40,11 +43,10 @@ namespace {
const char kAllHostsPermission[] = "*://*/*";
-bool CheckSocketPermission(
- scoped_refptr<Extension> extension,
- SocketPermissionRequest::OperationType type,
- const char* host,
- uint16 port) {
+bool CheckSocketPermission(scoped_refptr<Extension> extension,
+ SocketPermissionRequest::OperationType type,
+ const char* host,
+ uint16_t port) {
SocketPermission::CheckParam param(type, host, port);
return extension->permissions_data()->CheckAPIPermissionWithParam(
APIPermission::kSocket, &param);
diff --git a/chrome/common/extensions/permissions/settings_override_permission_unittest.cc b/chrome/common/extensions/permissions/settings_override_permission_unittest.cc
index 7f95c1c..a20047c 100644
--- a/chrome/common/extensions/permissions/settings_override_permission_unittest.cc
+++ b/chrome/common/extensions/permissions/settings_override_permission_unittest.cc
@@ -4,9 +4,11 @@
// These tests make sure SettingsOverridePermission values are set correctly.
-#include "base/basictypes.h"
+#include <stdint.h>
+
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
+#include "build/build_config.h"
#include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h"
#include "extensions/common/manifest_constants.h"
#include "extensions/common/permissions/permission_message_test_util.h"
@@ -27,7 +29,7 @@ class SettingsOverridePermissionTest : public ChromeManifestTest {
kSearchProvider = 1 << 2,
};
- scoped_refptr<Extension> GetPermissionSet(uint32 flags) {
+ scoped_refptr<Extension> GetPermissionSet(uint32_t flags) {
base::DictionaryValue ext_manifest;
ext_manifest.SetString(manifest_keys::kName, "test");
ext_manifest.SetString(manifest_keys::kVersion, "0.1");
diff --git a/chrome/common/extensions/sync_type_unittest.cc b/chrome/common/extensions/sync_type_unittest.cc
index a57fa95..8a85933 100644
--- a/chrome/common/extensions/sync_type_unittest.cc
+++ b/chrome/common/extensions/sync_type_unittest.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "base/files/file_path.h"
+#include "build/build_config.h"
#include "chrome/common/extensions/api/plugins/plugins_handler.h"
#include "chrome/common/extensions/sync_helper.h"
#include "extensions/common/error_utils.h"