diff options
author | avi <avi@chromium.org> | 2015-12-25 11:37:59 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-25 19:38:56 +0000 |
commit | 4310d52d18968a109890fe9841af01863007d72d (patch) | |
tree | 0bc9005ad2cac0d18c8b8a90fbed319ce5a5348f /components/autofill | |
parent | 353749a23e10d0a4ff4d4529b9859e31c891c788 (diff) | |
download | chromium_src-4310d52d18968a109890fe9841af01863007d72d.zip chromium_src-4310d52d18968a109890fe9841af01863007d72d.tar.gz chromium_src-4310d52d18968a109890fe9841af01863007d72d.tar.bz2 |
Switch to standard integer types in components/autofill/.
BUG=138542
TBR=estade@chromium.org
Review URL: https://codereview.chromium.org/1550003002
Cr-Commit-Position: refs/heads/master@{#366865}
Diffstat (limited to 'components/autofill')
136 files changed, 323 insertions, 109 deletions
diff --git a/components/autofill/content/browser/content_autofill_driver_unittest.cc b/components/autofill/content/browser/content_autofill_driver_unittest.cc index 31ffba8..d06cfd8 100644 --- a/components/autofill/content/browser/content_autofill_driver_unittest.cc +++ b/components/autofill/content/browser/content_autofill_driver_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 <algorithm> #include <vector> @@ -86,7 +88,7 @@ class ContentAutofillDriverTest : public content::RenderViewHostTestHarness { // |AutofillMsg_FillForm| message, fills the output parameters with the values // of the message's parameters, and clears the queue of sent messages. bool GetAutofillFillFormMessage(int* page_id, FormData* results) { - const uint32 kMsgID = AutofillMsg_FillForm::ID; + const uint32_t kMsgID = AutofillMsg_FillForm::ID; const IPC::Message* message = process()->sink().GetFirstMessageMatching(kMsgID); if (!message) @@ -107,7 +109,7 @@ class ContentAutofillDriverTest : public content::RenderViewHostTestHarness { // |AutofillMsg_PreviewForm| message, fills the output parameters with the // values of the message's parameters, and clears the queue of sent messages. bool GetAutofillPreviewFormMessage(int* page_id, FormData* results) { - const uint32 kMsgID = AutofillMsg_PreviewForm::ID; + const uint32_t kMsgID = AutofillMsg_PreviewForm::ID; const IPC::Message* message = process()->sink().GetFirstMessageMatching(kMsgID); if (!message) @@ -130,7 +132,7 @@ class ContentAutofillDriverTest : public content::RenderViewHostTestHarness { // clears the queue of sent messages. bool GetFieldTypePredictionsAvailable( std::vector<FormDataPredictions>* predictions) { - const uint32 kMsgID = AutofillMsg_FieldTypePredictionsAvailable::ID; + const uint32_t kMsgID = AutofillMsg_FieldTypePredictionsAvailable::ID; const IPC::Message* message = process()->sink().GetFirstMessageMatching(kMsgID); if (!message) @@ -150,7 +152,7 @@ class ContentAutofillDriverTest : public content::RenderViewHostTestHarness { // messages. If none is present, returns false. Otherwise, extracts the first // matching message, fills the output parameter with the string16 from the // message's parameter, and clears the queue of sent messages. - bool GetString16FromMessageWithID(uint32 messageID, base::string16* value) { + bool GetString16FromMessageWithID(uint32_t messageID, base::string16* value) { const IPC::Message* message = process()->sink().GetFirstMessageMatching(messageID); if (!message) @@ -182,7 +184,7 @@ class ContentAutofillDriverTest : public content::RenderViewHostTestHarness { // Searches for a message matching |messageID| in the queue of sent IPC // messages. If none is present, returns false. Otherwise, clears the queue // of sent messages and returns true. - bool HasMessageMatchingID(uint32 messageID) { + bool HasMessageMatchingID(uint32_t messageID) { const IPC::Message* message = process()->sink().GetFirstMessageMatching(messageID); if (!message) diff --git a/components/autofill/content/browser/request_autocomplete_manager.cc b/components/autofill/content/browser/request_autocomplete_manager.cc index 8d12633..26dfef8 100644 --- a/components/autofill/content/browser/request_autocomplete_manager.cc +++ b/components/autofill/content/browser/request_autocomplete_manager.cc @@ -4,6 +4,8 @@ #include "components/autofill/content/browser/request_autocomplete_manager.h" +#include <stddef.h> + #include "components/autofill/content/browser/content_autofill_driver.h" #include "components/autofill/content/common/autofill_messages.h" #include "components/autofill/core/browser/form_structure.h" diff --git a/components/autofill/content/browser/request_autocomplete_manager_unittest.cc b/components/autofill/content/browser/request_autocomplete_manager_unittest.cc index 79b6699..37f5afc 100644 --- a/components/autofill/content/browser/request_autocomplete_manager_unittest.cc +++ b/components/autofill/content/browser/request_autocomplete_manager_unittest.cc @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include <stdint.h> + +#include "base/macros.h" #include "components/autofill/content/browser/content_autofill_driver.h" #include "components/autofill/content/browser/request_autocomplete_manager.h" #include "components/autofill/content/common/autofill_messages.h" @@ -117,7 +120,7 @@ class RequestAutocompleteManagerTest : // clears the queue of sent messages. bool GetAutocompleteResultMessage( blink::WebFormElement::AutocompleteResult* result) { - const uint32 kMsgID = AutofillMsg_RequestAutocompleteResult::ID; + const uint32_t kMsgID = AutofillMsg_RequestAutocompleteResult::ID; const IPC::Message* message = process()->sink().GetFirstMessageMatching(kMsgID); if (!message) diff --git a/components/autofill/content/browser/risk/fingerprint.cc b/components/autofill/content/browser/risk/fingerprint.cc index 5117cd9..b4e4f70 100644 --- a/components/autofill/content/browser/risk/fingerprint.cc +++ b/components/autofill/content/browser/risk/fingerprint.cc @@ -16,6 +16,7 @@ #include "base/callback.h" #include "base/cpu.h" #include "base/logging.h" +#include "base/macros.h" #include "base/memory/weak_ptr.h" #include "base/scoped_observer.h" #include "base/strings/string_split.h" @@ -49,7 +50,7 @@ namespace risk { namespace { -const int32 kFingerprinterVersion = 1; +const int32_t kFingerprinterVersion = 1; // Maximum amount of time, in seconds, to wait for loading asynchronous // fingerprint data. @@ -172,7 +173,7 @@ void AddGpuInfoToFingerprint(Fingerprint::MachineCharacteristics* machine, class FingerprintDataLoader : public content::GpuDataManagerObserver { public: FingerprintDataLoader( - uint64 obfuscated_gaia_id, + uint64_t obfuscated_gaia_id, const gfx::Rect& window_bounds, const gfx::Rect& content_bounds, const WebScreenInfo& screen_info, @@ -213,7 +214,7 @@ class FingerprintDataLoader : public content::GpuDataManagerObserver { // Data that will be passed on to the next loading phase. See the comment for // GetFingerprint() for a description of these variables. - const uint64 obfuscated_gaia_id_; + const uint64_t obfuscated_gaia_id_; const gfx::Rect window_bounds_; const gfx::Rect content_bounds_; const WebScreenInfo screen_info_; @@ -249,7 +250,7 @@ class FingerprintDataLoader : public content::GpuDataManagerObserver { }; FingerprintDataLoader::FingerprintDataLoader( - uint64 obfuscated_gaia_id, + uint64_t obfuscated_gaia_id, const gfx::Rect& window_bounds, const gfx::Rect& content_bounds, const WebScreenInfo& screen_info, @@ -429,7 +430,7 @@ void FingerprintDataLoader::FillFingerprint() { namespace internal { void GetFingerprintInternal( - uint64 obfuscated_gaia_id, + uint64_t obfuscated_gaia_id, const gfx::Rect& window_bounds, const gfx::Rect& content_bounds, const blink::WebScreenInfo& screen_info, @@ -452,7 +453,7 @@ void GetFingerprintInternal( } // namespace internal void GetFingerprint( - uint64 obfuscated_gaia_id, + uint64_t obfuscated_gaia_id, const gfx::Rect& window_bounds, content::WebContents* web_contents, const std::string& version, diff --git a/components/autofill/content/browser/risk/fingerprint.h b/components/autofill/content/browser/risk/fingerprint.h index db3f6c7..4b38182 100644 --- a/components/autofill/content/browser/risk/fingerprint.h +++ b/components/autofill/content/browser/risk/fingerprint.h @@ -12,9 +12,10 @@ #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_RISK_FINGERPRINT_H_ #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_RISK_FINGERPRINT_H_ +#include <stdint.h> + #include <string> -#include "base/basictypes.h" #include "base/callback_forward.h" #include "base/memory/scoped_ptr.h" #include "components/autofill/core/browser/autofill_client.h" @@ -47,7 +48,7 @@ class Fingerprint; // character set. |accept_languages| is the Accept-Languages setting. // |install_time| is the absolute time of installation. void GetFingerprint( - uint64 obfuscated_gaia_id, + uint64_t obfuscated_gaia_id, const gfx::Rect& window_bounds, content::WebContents* web_contents, const std::string& version, diff --git a/components/autofill/content/browser/risk/fingerprint_browsertest.cc b/components/autofill/content/browser/risk/fingerprint_browsertest.cc index b7ee261e..2517980 100644 --- a/components/autofill/content/browser/risk/fingerprint_browsertest.cc +++ b/components/autofill/content/browser/risk/fingerprint_browsertest.cc @@ -8,6 +8,7 @@ #include "base/bind.h" #include "base/message_loop/message_loop.h" +#include "build/build_config.h" #include "components/autofill/content/browser/risk/proto/fingerprint.pb.h" #include "content/public/browser/geolocation_provider.h" #include "content/public/browser/gpu_data_manager.h" diff --git a/components/autofill/content/browser/wallet/full_wallet.cc b/components/autofill/content/browser/wallet/full_wallet.cc index 65bc798..acd9c46 100644 --- a/components/autofill/content/browser/wallet/full_wallet.cc +++ b/components/autofill/content/browser/wallet/full_wallet.cc @@ -4,6 +4,8 @@ #include "components/autofill/content/browser/wallet/full_wallet.h" +#include <stddef.h> + #include "base/logging.h" #include "base/strings/string_number_conversions.h" #include "base/strings/utf_string_conversions.h" @@ -182,7 +184,7 @@ void FullWallet::DecryptCardInfo() { DCHECK_EQ(kEncryptedRestSize, encrypted_rest_.size()); - std::vector<uint8> operating_data; + std::vector<uint8_t> operating_data; // Convert |encrypted_rest_| to bytes so we can decrypt it with |otp|. if (!base::HexStringToBytes(encrypted_rest_, &operating_data)) { DLOG(ERROR) << "Failed to parse encrypted rest"; @@ -193,18 +195,18 @@ void FullWallet::DecryptCardInfo() { // otherwise something has gone wrong and we can't decrypt the data. DCHECK_EQ(one_time_pad_.size(), operating_data.size()); - std::vector<uint8> results; + std::vector<uint8_t> results; // XOR |otp| with the encrypted data to decrypt. for (size_t i = 0; i < one_time_pad_.size(); ++i) results.push_back(one_time_pad_[i] ^ operating_data[i]); - // There is no uint8* to int64 so convert the decrypted data to hex and then - // parse the hex to an int64 before getting the int64 as a string. + // There is no uint8_t* to int64_t so convert the decrypted data to hex and + // then parse the hex to an int64_t before getting the int64_t as a string. std::string hex_decrypted = base::HexEncode(&(results[0]), results.size()); - int64 decrypted; + int64_t decrypted; if (!base::HexStringToInt64(hex_decrypted, &decrypted)) { - DLOG(ERROR) << "Failed to parse decrypted data in hex to int64"; + DLOG(ERROR) << "Failed to parse decrypted data in hex to int64_t"; return; } std::string card_info = base::Int64ToString(decrypted); diff --git a/components/autofill/content/browser/wallet/full_wallet.h b/components/autofill/content/browser/wallet/full_wallet.h index 8fa9466..b882a0b 100644 --- a/components/autofill/content/browser/wallet/full_wallet.h +++ b/components/autofill/content/browser/wallet/full_wallet.h @@ -5,11 +5,13 @@ #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_FULL_WALLET_H_ #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_FULL_WALLET_H_ +#include <stdint.h> + #include <string> #include <vector> -#include "base/basictypes.h" #include "base/gtest_prod_util.h" +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "base/strings/string16.h" #include "components/autofill/content/browser/wallet/wallet_address.h" @@ -66,7 +68,7 @@ class FullWallet { int expiration_month() const { return expiration_month_; } int expiration_year() const { return expiration_year_; } - void set_one_time_pad(const std::vector<uint8>& one_time_pad) { + void set_one_time_pad(const std::vector<uint8_t>& one_time_pad) { one_time_pad_ = one_time_pad; } @@ -118,7 +120,7 @@ class FullWallet { scoped_ptr<Address> shipping_address_; // The one time pad used for FullWallet encryption. - std::vector<uint8> one_time_pad_; + std::vector<uint8_t> one_time_pad_; DISALLOW_COPY_AND_ASSIGN(FullWallet); }; diff --git a/components/autofill/content/browser/wallet/full_wallet_unittest.cc b/components/autofill/content/browser/wallet/full_wallet_unittest.cc index 990bdcd..3f00fb4 100644 --- a/components/autofill/content/browser/wallet/full_wallet_unittest.cc +++ b/components/autofill/content/browser/wallet/full_wallet_unittest.cc @@ -2,7 +2,10 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include <stdint.h> + #include "base/json/json_reader.h" +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "base/strings/string_number_conversions.h" #include "base/strings/utf_string_conversions.h" @@ -29,7 +32,7 @@ class FullWalletTest : public testing::Test { TEST_F(FullWalletTest, RestLengthCorrectDecryptionTest) { FullWallet full_wallet(12, 2012, "528512", "5ec4feecf9d6", GetTestAddress(), GetTestShippingAddress()); - std::vector<uint8> one_time_pad; + std::vector<uint8_t> one_time_pad; EXPECT_TRUE(base::HexStringToBytes("5F04A8704183", &one_time_pad)); full_wallet.set_one_time_pad(one_time_pad); EXPECT_EQ(ASCIIToUTF16("5285121925598459"), @@ -42,7 +45,7 @@ TEST_F(FullWalletTest, RestLengthCorrectDecryptionTest) { TEST_F(FullWalletTest, RestLengthUnderDecryptionTest) { FullWallet full_wallet(12, 2012, "528512", "4c567667e6", GetTestAddress(), GetTestShippingAddress()); - std::vector<uint8> one_time_pad; + std::vector<uint8_t> one_time_pad; EXPECT_TRUE(base::HexStringToBytes("063AD35324BF", &one_time_pad)); full_wallet.set_one_time_pad(one_time_pad); EXPECT_EQ(ASCIIToUTF16("5285127106109719"), @@ -68,7 +71,7 @@ TEST_F(FullWalletTest, GetCreditCardInfo) { full_wallet.GetInfo( "", AutofillType(CREDIT_CARD_EXP_DATE_4_DIGIT_YEAR))); - std::vector<uint8> one_time_pad; + std::vector<uint8_t> one_time_pad; EXPECT_TRUE(base::HexStringToBytes("075DA779F98B", &one_time_pad)); full_wallet.set_one_time_pad(one_time_pad); EXPECT_EQ(ASCIIToUTF16("MasterCard"), diff --git a/components/autofill/content/browser/wallet/payments_client_unittest.cc b/components/autofill/content/browser/wallet/payments_client_unittest.cc index f761e99..31951d5 100644 --- a/components/autofill/content/browser/wallet/payments_client_unittest.cc +++ b/components/autofill/content/browser/wallet/payments_client_unittest.cc @@ -3,6 +3,7 @@ // found in the LICENSE file. #include "base/command_line.h" +#include "base/macros.h" #include "base/thread_task_runner_handle.h" #include "base/values.h" #include "components/autofill/core/browser/autofill_test_utils.h" diff --git a/components/autofill/content/browser/wallet/wallet_address.cc b/components/autofill/content/browser/wallet/wallet_address.cc index aa9beb8..a754a1a 100644 --- a/components/autofill/content/browser/wallet/wallet_address.cc +++ b/components/autofill/content/browser/wallet/wallet_address.cc @@ -9,6 +9,7 @@ #include "base/strings/string_util.h" #include "base/strings/utf_string_conversions.h" #include "base/values.h" +#include "build/build_config.h" #include "components/autofill/core/browser/autofill_country.h" #include "components/autofill/core/browser/autofill_profile.h" #include "components/autofill/core/browser/autofill_type.h" diff --git a/components/autofill/content/browser/wallet/wallet_address.h b/components/autofill/content/browser/wallet/wallet_address.h index 61a8b50..f52a6ac 100644 --- a/components/autofill/content/browser/wallet/wallet_address.h +++ b/components/autofill/content/browser/wallet/wallet_address.h @@ -5,9 +5,11 @@ #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_ADDRESS_H_ #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_ADDRESS_H_ +#include <stddef.h> + #include <string> -#include "base/basictypes.h" +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "base/strings/string16.h" #include "components/autofill/core/browser/phone_number_i18n.h" diff --git a/components/autofill/content/browser/wallet/wallet_test_util.cc b/components/autofill/content/browser/wallet/wallet_test_util.cc index 1075344..2243662 100644 --- a/components/autofill/content/browser/wallet/wallet_test_util.cc +++ b/components/autofill/content/browser/wallet/wallet_test_util.cc @@ -4,6 +4,8 @@ #include "components/autofill/content/browser/wallet/wallet_test_util.h" +#include <stdint.h> + #include <string> #include <vector> @@ -61,7 +63,7 @@ scoped_ptr<FullWallet> GetTestFullWallet() { scoped_ptr<FullWallet> wallet(new FullWallet(FutureYear(), 12, "528512", "5ec4feecf9d6", GetTestAddress(), GetTestShippingAddress())); - std::vector<uint8> one_time_pad; + std::vector<uint8_t> one_time_pad; base::HexStringToBytes("5F04A8704183", &one_time_pad); wallet->set_one_time_pad(one_time_pad); return wallet.Pass(); @@ -71,7 +73,7 @@ scoped_ptr<FullWallet> GetTestFullWalletInstrumentOnly() { scoped_ptr<FullWallet> wallet(new FullWallet(FutureYear(), 12, "528512", "5ec4feecf9d6", GetTestAddress(), scoped_ptr<Address>())); - std::vector<uint8> one_time_pad; + std::vector<uint8_t> one_time_pad; base::HexStringToBytes("5F04A8704183", &one_time_pad); wallet->set_one_time_pad(one_time_pad); return wallet.Pass(); diff --git a/components/autofill/content/renderer/autofill_agent.cc b/components/autofill/content/renderer/autofill_agent.cc index 784499d..d32ea57 100644 --- a/components/autofill/content/renderer/autofill_agent.cc +++ b/components/autofill/content/renderer/autofill_agent.cc @@ -4,6 +4,8 @@ #include "components/autofill/content/renderer/autofill_agent.h" +#include <stddef.h> + #include <tuple> #include "base/auto_reset.h" @@ -17,6 +19,7 @@ #include "base/strings/utf_string_conversions.h" #include "base/thread_task_runner_handle.h" #include "base/time/time.h" +#include "build/build_config.h" #include "components/autofill/content/common/autofill_messages.h" #include "components/autofill/content/renderer/form_autofill_util.h" #include "components/autofill/content/renderer/page_click_tracker.h" diff --git a/components/autofill/content/renderer/autofill_agent.h b/components/autofill/content/renderer/autofill_agent.h index 2471403..1257791 100644 --- a/components/autofill/content/renderer/autofill_agent.h +++ b/components/autofill/content/renderer/autofill_agent.h @@ -8,8 +8,8 @@ #include <set> #include <vector> -#include "base/basictypes.h" #include "base/compiler_specific.h" +#include "base/macros.h" #include "base/memory/weak_ptr.h" #include "base/time/time.h" #include "components/autofill/content/renderer/form_cache.h" diff --git a/components/autofill/content/renderer/form_autofill_util.cc b/components/autofill/content/renderer/form_autofill_util.cc index 5c7f0d6..ef079c6 100644 --- a/components/autofill/content/renderer/form_autofill_util.cc +++ b/components/autofill/content/renderer/form_autofill_util.cc @@ -13,6 +13,7 @@ #include "base/strings/string_number_conversions.h" #include "base/strings/string_util.h" #include "base/strings/utf_string_conversions.h" +#include "build/build_config.h" #include "components/autofill/core/common/autofill_data_validation.h" #include "components/autofill/core/common/autofill_regexes.h" #include "components/autofill/core/common/autofill_switches.h" diff --git a/components/autofill/content/renderer/form_autofill_util.h b/components/autofill/content/renderer/form_autofill_util.h index 4b47040..d7cb557 100644 --- a/components/autofill/content/renderer/form_autofill_util.h +++ b/components/autofill/content/renderer/form_autofill_util.h @@ -5,6 +5,8 @@ #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_ #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_ +#include <stddef.h> + #include <vector> #include "base/strings/string16.h" diff --git a/components/autofill/content/renderer/form_cache.cc b/components/autofill/content/renderer/form_cache.cc index 639bb3f..334afa9 100644 --- a/components/autofill/content/renderer/form_cache.cc +++ b/components/autofill/content/renderer/form_cache.cc @@ -5,6 +5,7 @@ #include "components/autofill/content/renderer/form_cache.h" #include "base/logging.h" +#include "base/macros.h" #include "base/stl_util.h" #include "base/strings/utf_string_conversions.h" #include "components/autofill/content/renderer/form_autofill_util.h" diff --git a/components/autofill/content/renderer/form_cache.h b/components/autofill/content/renderer/form_cache.h index 15c5680..78bef2e 100644 --- a/components/autofill/content/renderer/form_cache.h +++ b/components/autofill/content/renderer/form_cache.h @@ -5,10 +5,13 @@ #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_CACHE_H_ #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_CACHE_H_ +#include <stddef.h> + #include <map> #include <set> #include <vector> +#include "base/macros.h" #include "base/strings/string16.h" #include "components/autofill/core/common/form_data.h" diff --git a/components/autofill/content/renderer/page_click_tracker.h b/components/autofill/content/renderer/page_click_tracker.h index eed10f9..16e22bd 100644 --- a/components/autofill/content/renderer/page_click_tracker.h +++ b/components/autofill/content/renderer/page_click_tracker.h @@ -7,7 +7,7 @@ #include <vector> -#include "base/basictypes.h" +#include "base/macros.h" #include "base/memory/weak_ptr.h" #include "content/public/renderer/render_frame_observer.h" #include "content/public/renderer/render_view_observer.h" diff --git a/components/autofill/content/renderer/password_autofill_agent.cc b/components/autofill/content/renderer/password_autofill_agent.cc index de716bc..5297c0a 100644 --- a/components/autofill/content/renderer/password_autofill_agent.cc +++ b/components/autofill/content/renderer/password_autofill_agent.cc @@ -4,6 +4,8 @@ #include "components/autofill/content/renderer/password_autofill_agent.h" +#include <stddef.h> + #include "base/bind.h" #include "base/command_line.h" #include "base/i18n/case_conversion.h" @@ -12,6 +14,7 @@ #include "base/metrics/field_trial.h" #include "base/metrics/histogram_macros.h" #include "base/strings/utf_string_conversions.h" +#include "build/build_config.h" #include "components/autofill/content/common/autofill_messages.h" #include "components/autofill/content/renderer/form_autofill_util.h" #include "components/autofill/content/renderer/password_form_conversion_utils.h" diff --git a/components/autofill/content/renderer/password_autofill_agent.h b/components/autofill/content/renderer/password_autofill_agent.h index 6db7c2d..864a075 100644 --- a/components/autofill/content/renderer/password_autofill_agent.h +++ b/components/autofill/content/renderer/password_autofill_agent.h @@ -8,6 +8,7 @@ #include <map> #include <vector> +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "base/memory/weak_ptr.h" #include "components/autofill/content/renderer/password_form_conversion_utils.h" diff --git a/components/autofill/content/renderer/password_form_conversion_utils.cc b/components/autofill/content/renderer/password_form_conversion_utils.cc index 161e746..4366f75 100644 --- a/components/autofill/content/renderer/password_form_conversion_utils.cc +++ b/components/autofill/content/renderer/password_form_conversion_utils.cc @@ -4,10 +4,13 @@ #include "components/autofill/content/renderer/password_form_conversion_utils.h" +#include <stddef.h> + #include <string> #include "base/i18n/case_conversion.h" #include "base/lazy_instance.h" +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "base/metrics/histogram_macros.h" #include "base/strings/string_util.h" diff --git a/components/autofill/content/renderer/password_form_conversion_utils_browsertest.cc b/components/autofill/content/renderer/password_form_conversion_utils_browsertest.cc index ba9d8d2..7dfb38d 100644 --- a/components/autofill/content/renderer/password_form_conversion_utils_browsertest.cc +++ b/components/autofill/content/renderer/password_form_conversion_utils_browsertest.cc @@ -2,10 +2,14 @@ // 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/macros.h" #include "base/strings/string16.h" #include "base/strings/string_util.h" #include "base/strings/stringprintf.h" #include "base/strings/utf_string_conversions.h" +#include "build/build_config.h" #include "components/autofill/content/renderer/form_autofill_util.h" #include "components/autofill/content/renderer/password_form_conversion_utils.h" #include "components/autofill/core/browser/form_structure.h" diff --git a/components/autofill/content/renderer/password_generation_agent.h b/components/autofill/content/renderer/password_generation_agent.h index 959914f..90d480b 100644 --- a/components/autofill/content/renderer/password_generation_agent.h +++ b/components/autofill/content/renderer/password_generation_agent.h @@ -5,10 +5,13 @@ #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_GENERATION_AGENT_H_ #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_GENERATION_AGENT_H_ +#include <stddef.h> + #include <map> #include <utility> #include <vector> +#include "base/macros.h" #include "base/memory/linked_ptr.h" #include "base/memory/scoped_ptr.h" #include "content/public/renderer/render_frame_observer.h" diff --git a/components/autofill/content/renderer/renderer_save_password_progress_logger.h b/components/autofill/content/renderer/renderer_save_password_progress_logger.h index a636371..dd111b1 100644 --- a/components/autofill/content/renderer/renderer_save_password_progress_logger.h +++ b/components/autofill/content/renderer/renderer_save_password_progress_logger.h @@ -7,6 +7,7 @@ #include <string> +#include "base/macros.h" #include "components/autofill/core/common/save_password_progress_logger.h" class PasswordManagerClient; diff --git a/components/autofill/content/renderer/renderer_save_password_progress_logger_unittest.cc b/components/autofill/content/renderer/renderer_save_password_progress_logger_unittest.cc index e9fd7fd..22cd852 100644 --- a/components/autofill/content/renderer/renderer_save_password_progress_logger_unittest.cc +++ b/components/autofill/content/renderer/renderer_save_password_progress_logger_unittest.cc @@ -4,6 +4,8 @@ #include "components/autofill/content/renderer/renderer_save_password_progress_logger.h" +#include <stdint.h> + #include "components/autofill/content/common/autofill_messages.h" #include "ipc/ipc_test_sink.h" #include "testing/gtest/include/gtest/gtest.h" @@ -26,7 +28,7 @@ class TestLogger : public RendererSavePasswordProgressLogger { // fills the output parameter with the value of the message's parameter, and // clears the queue of sent messages. bool GetLogMessage(std::string* log) { - const uint32 kMsgID = AutofillHostMsg_RecordSavePasswordProgress::ID; + const uint32_t kMsgID = AutofillHostMsg_RecordSavePasswordProgress::ID; const IPC::Message* message = sink_.GetFirstMessageMatching(kMsgID); if (!message) return false; diff --git a/components/autofill/content/renderer/test_password_generation_agent.h b/components/autofill/content/renderer/test_password_generation_agent.h index f131a8f..1901dbc2 100644 --- a/components/autofill/content/renderer/test_password_generation_agent.h +++ b/components/autofill/content/renderer/test_password_generation_agent.h @@ -7,6 +7,7 @@ #include <vector> +#include "base/macros.h" #include "base/memory/scoped_vector.h" #include "components/autofill/content/renderer/password_generation_agent.h" #include "ipc/ipc_message.h" diff --git a/components/autofill/core/browser/address.cc b/components/autofill/core/browser/address.cc index e0c2a9c..5393c6b 100644 --- a/components/autofill/core/browser/address.cc +++ b/components/autofill/core/browser/address.cc @@ -7,7 +7,6 @@ #include <stddef.h> #include <algorithm> -#include "base/basictypes.h" #include "base/logging.h" #include "base/strings/string_split.h" #include "base/strings/string_util.h" diff --git a/components/autofill/core/browser/address_field.h b/components/autofill/core/browser/address_field.h index 721545e..5a4ae9c 100644 --- a/components/autofill/core/browser/address_field.h +++ b/components/autofill/core/browser/address_field.h @@ -7,9 +7,9 @@ #include <vector> -#include "base/basictypes.h" #include "base/compiler_specific.h" #include "base/gtest_prod_util.h" +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "base/strings/string16.h" #include "components/autofill/core/browser/autofill_type.h" diff --git a/components/autofill/core/browser/address_field_unittest.cc b/components/autofill/core/browser/address_field_unittest.cc index b8f27ad..7293f7a 100644 --- a/components/autofill/core/browser/address_field_unittest.cc +++ b/components/autofill/core/browser/address_field_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/memory/scoped_ptr.h" #include "base/memory/scoped_vector.h" #include "base/strings/string16.h" diff --git a/components/autofill/core/browser/address_i18n_unittest.cc b/components/autofill/core/browser/address_i18n_unittest.cc index d360b1d..288ea04 100644 --- a/components/autofill/core/browser/address_i18n_unittest.cc +++ b/components/autofill/core/browser/address_i18n_unittest.cc @@ -4,10 +4,13 @@ #include "components/autofill/core/browser/address_i18n.h" +#include <stddef.h> + #include <string> #include <vector> #include "base/guid.h" +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "components/autofill/core/browser/autofill_profile.h" #include "components/autofill/core/browser/autofill_test_utils.h" diff --git a/components/autofill/core/browser/address_unittest.cc b/components/autofill/core/browser/address_unittest.cc index 9a845e8..d728dbf 100644 --- a/components/autofill/core/browser/address_unittest.cc +++ b/components/autofill/core/browser/address_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 <string> +#include "base/macros.h" #include "base/strings/string16.h" #include "base/strings/utf_string_conversions.h" #include "components/autofill/core/browser/address.h" diff --git a/components/autofill/core/browser/autocomplete_history_manager.h b/components/autofill/core/browser/autocomplete_history_manager.h index 58012bb..b76f10a 100644 --- a/components/autofill/core/browser/autocomplete_history_manager.h +++ b/components/autofill/core/browser/autocomplete_history_manager.h @@ -7,6 +7,7 @@ #include <vector> +#include "base/macros.h" #include "base/prefs/pref_member.h" #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" #include "components/webdata/common/web_data_service_consumer.h" diff --git a/components/autofill/core/browser/autocomplete_history_manager_unittest.cc b/components/autofill/core/browser/autocomplete_history_manager_unittest.cc index 07aae3d..095f13a 100644 --- a/components/autofill/core/browser/autocomplete_history_manager_unittest.cc +++ b/components/autofill/core/browser/autocomplete_history_manager_unittest.cc @@ -4,6 +4,7 @@ #include <vector> +#include "base/macros.h" #include "base/memory/ref_counted.h" #include "base/prefs/pref_service.h" #include "base/run_loop.h" diff --git a/components/autofill/core/browser/autofill_cc_infobar_delegate.cc b/components/autofill/core/browser/autofill_cc_infobar_delegate.cc index c885143..69f2955 100644 --- a/components/autofill/core/browser/autofill_cc_infobar_delegate.cc +++ b/components/autofill/core/browser/autofill_cc_infobar_delegate.cc @@ -5,6 +5,7 @@ #include "components/autofill/core/browser/autofill_cc_infobar_delegate.h" #include "base/logging.h" +#include "build/build_config.h" #include "components/autofill/core/browser/credit_card.h" #include "components/autofill/core/browser/personal_data_manager.h" #include "components/autofill/core/common/autofill_constants.h" diff --git a/components/autofill/core/browser/autofill_cc_infobar_delegate.h b/components/autofill/core/browser/autofill_cc_infobar_delegate.h index 7283d9c6..55c6de0 100644 --- a/components/autofill/core/browser/autofill_cc_infobar_delegate.h +++ b/components/autofill/core/browser/autofill_cc_infobar_delegate.h @@ -5,9 +5,9 @@ #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CC_INFOBAR_DELEGATE_H_ #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CC_INFOBAR_DELEGATE_H_ -#include "base/basictypes.h" #include "base/callback.h" #include "base/gtest_prod_util.h" +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "base/strings/string16.h" #include "components/autofill/core/browser/autofill_metrics.h" diff --git a/components/autofill/core/browser/autofill_country.cc b/components/autofill/core/browser/autofill_country.cc index 303a9df..a346d1a 100644 --- a/components/autofill/core/browser/autofill_country.cc +++ b/components/autofill/core/browser/autofill_country.cc @@ -10,6 +10,7 @@ #include <utility> #include "base/logging.h" +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "base/memory/singleton.h" #include "base/stl_util.h" diff --git a/components/autofill/core/browser/autofill_country.h b/components/autofill/core/browser/autofill_country.h index 7b2414f..3489618 100644 --- a/components/autofill/core/browser/autofill_country.h +++ b/components/autofill/core/browser/autofill_country.h @@ -8,7 +8,7 @@ #include <string> #include <vector> -#include "base/basictypes.h" +#include "base/macros.h" #include "base/strings/string16.h" namespace autofill { diff --git a/components/autofill/core/browser/autofill_country_unittest.cc b/components/autofill/core/browser/autofill_country_unittest.cc index fcaf46f6..be24f95 100644 --- a/components/autofill/core/browser/autofill_country_unittest.cc +++ b/components/autofill/core/browser/autofill_country_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 <string> #include "base/strings/string16.h" diff --git a/components/autofill/core/browser/autofill_data_model.h b/components/autofill/core/browser/autofill_data_model.h index f6b727b..ee055ff 100644 --- a/components/autofill/core/browser/autofill_data_model.h +++ b/components/autofill/core/browser/autofill_data_model.h @@ -5,6 +5,8 @@ #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DATA_MODEL_H_ #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DATA_MODEL_H_ +#include <stddef.h> + #include <string> #include "base/strings/string16.h" diff --git a/components/autofill/core/browser/autofill_data_model_unittest.cc b/components/autofill/core/browser/autofill_data_model_unittest.cc index 0adfaa6..4434016 100644 --- a/components/autofill/core/browser/autofill_data_model_unittest.cc +++ b/components/autofill/core/browser/autofill_data_model_unittest.cc @@ -4,7 +4,10 @@ #include "components/autofill/core/browser/autofill_data_model.h" +#include <stddef.h> + #include "base/compiler_specific.h" +#include "base/macros.h" #include "base/time/time.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/components/autofill/core/browser/autofill_download_manager_unittest.cc b/components/autofill/core/browser/autofill_download_manager_unittest.cc index fc8831f..c9a27e6 100644 --- a/components/autofill/core/browser/autofill_download_manager_unittest.cc +++ b/components/autofill/core/browser/autofill_download_manager_unittest.cc @@ -4,6 +4,8 @@ #include "components/autofill/core/browser/autofill_download_manager.h" +#include <stddef.h> + #include <list> #include <utility> diff --git a/components/autofill/core/browser/autofill_experiments.cc b/components/autofill/core/browser/autofill_experiments.cc index 707fda4..7b4f563 100644 --- a/components/autofill/core/browser/autofill_experiments.cc +++ b/components/autofill/core/browser/autofill_experiments.cc @@ -8,6 +8,7 @@ #include "base/metrics/field_trial.h" #include "base/prefs/pref_service.h" #include "base/strings/string_util.h" +#include "build/build_config.h" #include "components/autofill/core/common/autofill_pref_names.h" #include "components/autofill/core/common/autofill_switches.h" #include "google_apis/gaia/gaia_auth_util.h" diff --git a/components/autofill/core/browser/autofill_external_delegate.cc b/components/autofill/core/browser/autofill_external_delegate.cc index bec7c5c..25ff585 100644 --- a/components/autofill/core/browser/autofill_external_delegate.cc +++ b/components/autofill/core/browser/autofill_external_delegate.cc @@ -4,6 +4,8 @@ #include "components/autofill/core/browser/autofill_external_delegate.h" +#include <stddef.h> + #include "base/bind.h" #include "base/command_line.h" #include "base/i18n/case_conversion.h" @@ -13,6 +15,7 @@ #include "base/stl_util.h" #include "base/strings/string_util.h" #include "base/strings/utf_string_conversions.h" +#include "build/build_config.h" #include "components/autofill/core/browser/autocomplete_history_manager.h" #include "components/autofill/core/browser/autofill_driver.h" #include "components/autofill/core/browser/autofill_manager.h" diff --git a/components/autofill/core/browser/autofill_external_delegate.h b/components/autofill/core/browser/autofill_external_delegate.h index 24bc816..f880c75 100644 --- a/components/autofill/core/browser/autofill_external_delegate.h +++ b/components/autofill/core/browser/autofill_external_delegate.h @@ -9,6 +9,7 @@ #include "base/compiler_specific.h" #include "base/gtest_prod_util.h" +#include "base/macros.h" #include "base/memory/weak_ptr.h" #include "base/strings/string16.h" #include "components/autofill/core/browser/autofill_popup_delegate.h" diff --git a/components/autofill/core/browser/autofill_external_delegate_unittest.cc b/components/autofill/core/browser/autofill_external_delegate_unittest.cc index 1803f34..ee4db91 100644 --- a/components/autofill/core/browser/autofill_external_delegate_unittest.cc +++ b/components/autofill/core/browser/autofill_external_delegate_unittest.cc @@ -6,10 +6,12 @@ #include "base/command_line.h" #include "base/compiler_specific.h" +#include "base/macros.h" #include "base/message_loop/message_loop.h" #include "base/strings/string16.h" #include "base/strings/utf_string_conversions.h" #include "base/test/histogram_tester.h" +#include "build/build_config.h" #include "components/autofill/core/browser/autofill_manager.h" #include "components/autofill/core/browser/autofill_metrics.h" #include "components/autofill/core/browser/popup_item_ids.h" diff --git a/components/autofill/core/browser/autofill_field.cc b/components/autofill/core/browser/autofill_field.cc index 5d7da9c..648f4cb 100644 --- a/components/autofill/core/browser/autofill_field.cc +++ b/components/autofill/core/browser/autofill_field.cc @@ -4,6 +4,8 @@ #include "components/autofill/core/browser/autofill_field.h" +#include <stdint.h> + #include "base/command_line.h" #include "base/i18n/string_search.h" #include "base/logging.h" @@ -403,10 +405,9 @@ std::string Hash32Bit(const std::string& str) { std::string hash_bin = base::SHA1HashString(str); DCHECK_EQ(base::kSHA1Length, hash_bin.length()); - uint32 hash32 = ((hash_bin[0] & 0xFF) << 24) | - ((hash_bin[1] & 0xFF) << 16) | - ((hash_bin[2] & 0xFF) << 8) | - (hash_bin[3] & 0xFF); + uint32_t hash32 = ((hash_bin[0] & 0xFF) << 24) | + ((hash_bin[1] & 0xFF) << 16) | ((hash_bin[2] & 0xFF) << 8) | + (hash_bin[3] & 0xFF); return base::UintToString(hash32); } diff --git a/components/autofill/core/browser/autofill_field.h b/components/autofill/core/browser/autofill_field.h index 0c1c81d..9aaf9fc 100644 --- a/components/autofill/core/browser/autofill_field.h +++ b/components/autofill/core/browser/autofill_field.h @@ -5,9 +5,11 @@ #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_FIELD_H_ #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_FIELD_H_ +#include <stddef.h> + #include <string> -#include "base/basictypes.h" +#include "base/macros.h" #include "base/strings/string16.h" #include "components/autofill/core/browser/field_types.h" #include "components/autofill/core/common/form_field_data.h" diff --git a/components/autofill/core/browser/autofill_field_unittest.cc b/components/autofill/core/browser/autofill_field_unittest.cc index f861d4e..9438532 100644 --- a/components/autofill/core/browser/autofill_field_unittest.cc +++ b/components/autofill/core/browser/autofill_field_unittest.cc @@ -4,6 +4,9 @@ #include "components/autofill/core/browser/autofill_field.h" +#include <stddef.h> + +#include "base/macros.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_util.h" #include "base/strings/utf_string_conversions.h" diff --git a/components/autofill/core/browser/autofill_ie_toolbar_import_win.cc b/components/autofill/core/browser/autofill_ie_toolbar_import_win.cc index 8ccf26c..15874af 100644 --- a/components/autofill/core/browser/autofill_ie_toolbar_import_win.cc +++ b/components/autofill/core/browser/autofill_ie_toolbar_import_win.cc @@ -5,13 +5,14 @@ #include "components/autofill/core/browser/autofill_ie_toolbar_import_win.h" #include <stddef.h> +#include <stdint.h> #include <map> #include <string> #include <vector> -#include "base/basictypes.h" #include "base/compiler_specific.h" #include "base/logging.h" +#include "base/macros.h" #include "base/strings/string16.h" #include "base/win/registry.h" #include "components/autofill/core/browser/autofill_country.h" @@ -147,7 +148,7 @@ bool ImportSingleFormGroup(const RegKey& key, bool has_non_empty_fields = false; - for (uint32 i = 0; i < key.GetValueCount(); ++i) { + for (uint32_t i = 0; i < key.GetValueCount(); ++i) { std::wstring value_name; if (key.GetValueNameAt(i, &value_name) != ERROR_SUCCESS) continue; diff --git a/components/autofill/core/browser/autofill_ie_toolbar_import_win_unittest.cc b/components/autofill/core/browser/autofill_ie_toolbar_import_win_unittest.cc index e4c90d7..29bf783 100644 --- a/components/autofill/core/browser/autofill_ie_toolbar_import_win_unittest.cc +++ b/components/autofill/core/browser/autofill_ie_toolbar_import_win_unittest.cc @@ -4,7 +4,9 @@ #include "components/autofill/core/browser/autofill_ie_toolbar_import_win.h" -#include "base/basictypes.h" +#include <stddef.h> + +#include "base/macros.h" #include "base/strings/string16.h" #include "base/win/registry.h" #include "components/autofill/core/browser/autofill_profile.h" diff --git a/components/autofill/core/browser/autofill_manager.cc b/components/autofill/core/browser/autofill_manager.cc index 63058ec..fa77803 100644 --- a/components/autofill/core/browser/autofill_manager.cc +++ b/components/autofill/core/browser/autofill_manager.cc @@ -5,6 +5,7 @@ #include "components/autofill/core/browser/autofill_manager.h" #include <stddef.h> +#include <stdint.h> #include <algorithm> #include <limits> @@ -28,6 +29,7 @@ #include "base/strings/utf_string_conversions.h" #include "base/threading/sequenced_worker_pool.h" #include "base/threading/thread_restrictions.h" +#include "build/build_config.h" #include "components/autofill/core/browser/autocomplete_history_manager.h" #include "components/autofill/core/browser/autofill_client.h" #include "components/autofill/core/browser/autofill_data_model.h" diff --git a/components/autofill/core/browser/autofill_manager.h b/components/autofill/core/browser/autofill_manager.h index bb015a3..d0c26d31 100644 --- a/components/autofill/core/browser/autofill_manager.h +++ b/components/autofill/core/browser/autofill_manager.h @@ -10,15 +10,16 @@ #include <string> #include <vector> -#include "base/basictypes.h" #include "base/callback_forward.h" #include "base/compiler_specific.h" #include "base/gtest_prod_util.h" +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "base/memory/scoped_vector.h" #include "base/memory/weak_ptr.h" #include "base/strings/string16.h" #include "base/time/time.h" +#include "build/build_config.h" #include "components/autofill/core/browser/autocomplete_history_manager.h" #include "components/autofill/core/browser/autofill_client.h" #include "components/autofill/core/browser/autofill_download_manager.h" diff --git a/components/autofill/core/browser/autofill_manager_unittest.cc b/components/autofill/core/browser/autofill_manager_unittest.cc index 7829c80..7a5f4a3 100644 --- a/components/autofill/core/browser/autofill_manager_unittest.cc +++ b/components/autofill/core/browser/autofill_manager_unittest.cc @@ -2,11 +2,14 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include <stddef.h> + #include <algorithm> #include <vector> #include "base/command_line.h" #include "base/format_macros.h" +#include "base/macros.h" #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" #include "base/memory/scoped_vector.h" @@ -20,6 +23,7 @@ #include "base/test/histogram_tester.h" #include "base/thread_task_runner_handle.h" #include "base/time/time.h" +#include "build/build_config.h" #include "components/autofill/core/browser/autocomplete_history_manager.h" #include "components/autofill/core/browser/autofill_download_manager.h" #include "components/autofill/core/browser/autofill_manager.h" diff --git a/components/autofill/core/browser/autofill_merge_unittest.cc b/components/autofill/core/browser/autofill_merge_unittest.cc index 44d9023..0592f95 100644 --- a/components/autofill/core/browser/autofill_merge_unittest.cc +++ b/components/autofill/core/browser/autofill_merge_unittest.cc @@ -2,11 +2,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include <stddef.h> + #include <map> #include <vector> -#include "base/basictypes.h" #include "base/files/file_path.h" +#include "base/macros.h" #include "base/path_service.h" #include "base/strings/string_split.h" #include "base/strings/string_util.h" diff --git a/components/autofill/core/browser/autofill_metrics.h b/components/autofill/core/browser/autofill_metrics.h index ddf0ef3..c94f730 100644 --- a/components/autofill/core/browser/autofill_metrics.h +++ b/components/autofill/core/browser/autofill_metrics.h @@ -8,7 +8,7 @@ #include <stddef.h> #include <string> -#include "base/basictypes.h" +#include "base/macros.h" #include "components/autofill/core/browser/autofill_client.h" #include "components/autofill/core/browser/autofill_download_manager.h" #include "components/autofill/core/browser/autofill_profile.h" diff --git a/components/autofill/core/browser/autofill_metrics_unittest.cc b/components/autofill/core/browser/autofill_metrics_unittest.cc index 395bcb2..7fa8faa 100644 --- a/components/autofill/core/browser/autofill_metrics_unittest.cc +++ b/components/autofill/core/browser/autofill_metrics_unittest.cc @@ -4,8 +4,11 @@ #include "components/autofill/core/browser/autofill_metrics.h" +#include <stddef.h> + #include <vector> +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "base/prefs/pref_service.h" #include "base/run_loop.h" diff --git a/components/autofill/core/browser/autofill_profile.cc b/components/autofill/core/browser/autofill_profile.cc index e68f124..b828bb6 100644 --- a/components/autofill/core/browser/autofill_profile.cc +++ b/components/autofill/core/browser/autofill_profile.cc @@ -10,11 +10,11 @@ #include <ostream> #include <set> -#include "base/basictypes.h" #include "base/guid.h" #include "base/i18n/case_conversion.h" #include "base/i18n/char_iterator.h" #include "base/logging.h" +#include "base/macros.h" #include "base/metrics/histogram_macros.h" #include "base/sha1.h" #include "base/strings/string_util.h" diff --git a/components/autofill/core/browser/autofill_profile_unittest.cc b/components/autofill/core/browser/autofill_profile_unittest.cc index b092feb..2e66768 100644 --- a/components/autofill/core/browser/autofill_profile_unittest.cc +++ b/components/autofill/core/browser/autofill_profile_unittest.cc @@ -2,9 +2,11 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "base/basictypes.h" +#include <stddef.h> + #include "base/format_macros.h" #include "base/guid.h" +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "base/memory/scoped_vector.h" #include "base/stl_util.h" diff --git a/components/autofill/core/browser/autofill_scanner.h b/components/autofill/core/browser/autofill_scanner.h index db3f3ba..8a2bceb0e 100644 --- a/components/autofill/core/browser/autofill_scanner.h +++ b/components/autofill/core/browser/autofill_scanner.h @@ -5,9 +5,11 @@ #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_SCANNER_H_ #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_SCANNER_H_ +#include <stddef.h> + #include <vector> -#include "base/basictypes.h" +#include "base/macros.h" #include "base/strings/string16.h" namespace autofill { diff --git a/components/autofill/core/browser/autofill_test_utils.cc b/components/autofill/core/browser/autofill_test_utils.cc index 60da1b8..1d16c24 100644 --- a/components/autofill/core/browser/autofill_test_utils.cc +++ b/components/autofill/core/browser/autofill_test_utils.cc @@ -9,6 +9,7 @@ #include "base/prefs/pref_service_factory.h" #include "base/prefs/testing_pref_store.h" #include "base/strings/utf_string_conversions.h" +#include "build/build_config.h" #include "components/autofill/core/browser/autofill_manager.h" #include "components/autofill/core/browser/autofill_profile.h" #include "components/autofill/core/browser/credit_card.h" diff --git a/components/autofill/core/browser/autofill_wallet_data_type_controller.h b/components/autofill/core/browser/autofill_wallet_data_type_controller.h index acc6b2c..2b890f8 100644 --- a/components/autofill/core/browser/autofill_wallet_data_type_controller.h +++ b/components/autofill/core/browser/autofill_wallet_data_type_controller.h @@ -5,7 +5,7 @@ #ifndef COMPONENTS_SYNC_DRIVER_GLUE_AUTOFILL_WALLET_DATA_TYPE_CONTROLLER_H_ #define COMPONENTS_SYNC_DRIVER_GLUE_AUTOFILL_WALLET_DATA_TYPE_CONTROLLER_H_ -#include "base/basictypes.h" +#include "base/macros.h" #include "base/prefs/pref_change_registrar.h" #include "components/sync_driver/non_ui_data_type_controller.h" diff --git a/components/autofill/core/browser/contact_info.cc b/components/autofill/core/browser/contact_info.cc index ccb45cc..9e793b9 100644 --- a/components/autofill/core/browser/contact_info.cc +++ b/components/autofill/core/browser/contact_info.cc @@ -8,8 +8,8 @@ #include <ostream> #include <string> -#include "base/basictypes.h" #include "base/logging.h" +#include "base/macros.h" #include "base/strings/string_split.h" #include "base/strings/string_util.h" #include "base/strings/utf_string_conversions.h" diff --git a/components/autofill/core/browser/contact_info_unittest.cc b/components/autofill/core/browser/contact_info_unittest.cc index 54e0be4..1330e53 100644 --- a/components/autofill/core/browser/contact_info_unittest.cc +++ b/components/autofill/core/browser/contact_info_unittest.cc @@ -4,8 +4,10 @@ #include "components/autofill/core/browser/contact_info.h" -#include "base/basictypes.h" +#include <stddef.h> + #include "base/format_macros.h" +#include "base/macros.h" #include "base/strings/string_util.h" #include "base/strings/stringprintf.h" #include "base/strings/utf_string_conversions.h" diff --git a/components/autofill/core/browser/credit_card.cc b/components/autofill/core/browser/credit_card.cc index 00593e7..232fca5 100644 --- a/components/autofill/core/browser/credit_card.cc +++ b/components/autofill/core/browser/credit_card.cc @@ -5,14 +5,15 @@ #include "components/autofill/core/browser/credit_card.h" #include <stddef.h> +#include <stdint.h> #include <algorithm> #include <ostream> #include <string> -#include "base/basictypes.h" #include "base/guid.h" #include "base/logging.h" +#include "base/macros.h" #include "base/metrics/histogram_macros.h" #include "base/strings/string16.h" #include "base/strings/string_number_conversions.h" @@ -20,6 +21,7 @@ #include "base/strings/string_util.h" #include "base/strings/utf_string_conversions.h" #include "base/time/time.h" +#include "build/build_config.h" #include "components/autofill/core/browser/autofill_field.h" #include "components/autofill/core/browser/autofill_type.h" #include "components/autofill/core/browser/validation.h" diff --git a/components/autofill/core/browser/credit_card.h b/components/autofill/core/browser/credit_card.h index 59c53a4..cb2ab21 100644 --- a/components/autofill/core/browser/credit_card.h +++ b/components/autofill/core/browser/credit_card.h @@ -12,6 +12,7 @@ #include "base/compiler_specific.h" #include "base/strings/string16.h" +#include "build/build_config.h" #include "components/autofill/core/browser/autofill_data_model.h" namespace autofill { diff --git a/components/autofill/core/browser/credit_card_field.h b/components/autofill/core/browser/credit_card_field.h index ddfd3159..ce4ee75 100644 --- a/components/autofill/core/browser/credit_card_field.h +++ b/components/autofill/core/browser/credit_card_field.h @@ -7,8 +7,8 @@ #include <vector> -#include "base/basictypes.h" #include "base/compiler_specific.h" +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "components/autofill/core/browser/autofill_type.h" #include "components/autofill/core/browser/form_field.h" diff --git a/components/autofill/core/browser/credit_card_field_unittest.cc b/components/autofill/core/browser/credit_card_field_unittest.cc index 1297175..83d23c7 100644 --- a/components/autofill/core/browser/credit_card_field_unittest.cc +++ b/components/autofill/core/browser/credit_card_field_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/memory/scoped_ptr.h" #include "base/memory/scoped_vector.h" #include "base/strings/utf_string_conversions.h" diff --git a/components/autofill/core/browser/credit_card_unittest.cc b/components/autofill/core/browser/credit_card_unittest.cc index ae0a296..135d487 100644 --- a/components/autofill/core/browser/credit_card_unittest.cc +++ b/components/autofill/core/browser/credit_card_unittest.cc @@ -2,10 +2,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "base/basictypes.h" +#include <stddef.h> + #include "base/guid.h" +#include "base/macros.h" #include "base/strings/string_number_conversions.h" #include "base/strings/utf_string_conversions.h" +#include "build/build_config.h" #include "components/autofill/core/browser/autofill_test_utils.h" #include "components/autofill/core/browser/autofill_type.h" #include "components/autofill/core/browser/credit_card.h" diff --git a/components/autofill/core/browser/crypto/rc4_decryptor.h b/components/autofill/core/browser/crypto/rc4_decryptor.h index 095413a..3d24bca 100644 --- a/components/autofill/core/browser/crypto/rc4_decryptor.h +++ b/components/autofill/core/browser/crypto/rc4_decryptor.h @@ -5,8 +5,10 @@ #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_CRYPTO_RC4_DECRYPTOR_H_ #define COMPONENTS_AUTOFILL_CORE_BROWSER_CRYPTO_RC4_DECRYPTOR_H_ +#include <stdint.h> +#include <string.h> + #include <string> -#include "base/basictypes.h" #include "base/memory/scoped_ptr.h" namespace autofill { @@ -24,7 +26,7 @@ namespace autofill { class RC4Decryptor { public: explicit RC4Decryptor(wchar_t const* password) { - PrepareKey(reinterpret_cast<const uint8 *>(password), + PrepareKey(reinterpret_cast<const uint8_t*>(password), wcslen(password) * sizeof(wchar_t)); std::wstring data; // First 128 bytes should be spaces. @@ -40,7 +42,7 @@ class RC4Decryptor { memset(buffer.get(), 0, (data.length() + 1) * sizeof(wchar_t)); memcpy(buffer.get(), data.c_str(), data_size); - RunInternal(reinterpret_cast<uint8 *>(buffer.get()), data_size); + RunInternal(reinterpret_cast<uint8_t*>(buffer.get()), data_size); std::wstring result(buffer.get()); @@ -52,26 +54,26 @@ class RC4Decryptor { private: static const int kKeyDataSize = 256; struct Rc4Key { - uint8 state[kKeyDataSize]; - uint8 x; - uint8 y; + uint8_t state[kKeyDataSize]; + uint8_t x; + uint8_t y; }; - void SwapByte(uint8* byte1, uint8* byte2) { - uint8 temp = *byte1; + void SwapByte(uint8_t* byte1, uint8_t* byte2) { + uint8_t temp = *byte1; *byte1 = *byte2; *byte2 = temp; } - void PrepareKey(const uint8 *key_data, int key_data_len) { - uint8 index1 = 0; - uint8 index2 = 0; - uint8* state; + void PrepareKey(const uint8_t* key_data, int key_data_len) { + uint8_t index1 = 0; + uint8_t index2 = 0; + uint8_t* state; short counter; state = &key_.state[0]; for (counter = 0; counter < kKeyDataSize; ++counter) - state[counter] = static_cast<uint8>(counter); + state[counter] = static_cast<uint8_t>(counter); key_.x = key_.y = 0; @@ -82,10 +84,10 @@ class RC4Decryptor { } } - void RunInternal(uint8 *buffer, int buffer_len) { - uint8 x, y; - uint8 xor_index = 0; - uint8* state; + void RunInternal(uint8_t* buffer, int buffer_len) { + uint8_t x, y; + uint8_t xor_index = 0; + uint8_t* state; int counter; x = key_.x; diff --git a/components/autofill/core/browser/data_driven_test.h b/components/autofill/core/browser/data_driven_test.h index de44554..8249916 100644 --- a/components/autofill/core/browser/data_driven_test.h +++ b/components/autofill/core/browser/data_driven_test.h @@ -8,6 +8,7 @@ #include <string> #include "base/files/file_path.h" +#include "base/macros.h" #include "base/strings/string16.h" namespace autofill { diff --git a/components/autofill/core/browser/email_field.h b/components/autofill/core/browser/email_field.h index 5525550..df76387 100644 --- a/components/autofill/core/browser/email_field.h +++ b/components/autofill/core/browser/email_field.h @@ -5,8 +5,8 @@ #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_EMAIL_FIELD_H_ #define COMPONENTS_AUTOFILL_CORE_BROWSER_EMAIL_FIELD_H_ -#include "base/basictypes.h" #include "base/compiler_specific.h" +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "components/autofill/core/browser/form_field.h" diff --git a/components/autofill/core/browser/form_field.h b/components/autofill/core/browser/form_field.h index c27dc08..e56f0ae 100644 --- a/components/autofill/core/browser/form_field.h +++ b/components/autofill/core/browser/form_field.h @@ -7,8 +7,8 @@ #include <vector> -#include "base/basictypes.h" #include "base/gtest_prod_util.h" +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "base/strings/string16.h" #include "components/autofill/core/browser/field_types.h" diff --git a/components/autofill/core/browser/form_structure.cc b/components/autofill/core/browser/form_structure.cc index 3232b82..5dbcde1 100644 --- a/components/autofill/core/browser/form_structure.cc +++ b/components/autofill/core/browser/form_structure.cc @@ -4,10 +4,11 @@ #include "components/autofill/core/browser/form_structure.h" +#include <stdint.h> + #include <map> #include <utility> -#include "base/basictypes.h" #include "base/command_line.h" #include "base/i18n/case_conversion.h" #include "base/logging.h" @@ -91,7 +92,7 @@ std::string EncodeFieldTypes(const ServerFieldTypeSet& available_field_types) { const size_t kNumBytes = (MAX_VALID_FIELD_TYPE + 0x7) / 8; // Pack the types in |available_field_types| into |bit_field|. - std::vector<uint8> bit_field(kNumBytes, 0); + std::vector<uint8_t> bit_field(kNumBytes, 0); for (const auto& field_type : available_field_types) { // Set the appropriate bit in the field. The bit we set is the one // |field_type| % 8 from the left of the byte. @@ -1060,14 +1061,14 @@ std::string FormStructure::Hash64Bit(const std::string& str) { std::string hash_bin = base::SHA1HashString(str); DCHECK_EQ(base::kSHA1Length, hash_bin.length()); - uint64 hash64 = (((static_cast<uint64>(hash_bin[0])) & 0xFF) << 56) | - (((static_cast<uint64>(hash_bin[1])) & 0xFF) << 48) | - (((static_cast<uint64>(hash_bin[2])) & 0xFF) << 40) | - (((static_cast<uint64>(hash_bin[3])) & 0xFF) << 32) | - (((static_cast<uint64>(hash_bin[4])) & 0xFF) << 24) | - (((static_cast<uint64>(hash_bin[5])) & 0xFF) << 16) | - (((static_cast<uint64>(hash_bin[6])) & 0xFF) << 8) | - ((static_cast<uint64>(hash_bin[7])) & 0xFF); + uint64_t hash64 = (((static_cast<uint64_t>(hash_bin[0])) & 0xFF) << 56) | + (((static_cast<uint64_t>(hash_bin[1])) & 0xFF) << 48) | + (((static_cast<uint64_t>(hash_bin[2])) & 0xFF) << 40) | + (((static_cast<uint64_t>(hash_bin[3])) & 0xFF) << 32) | + (((static_cast<uint64_t>(hash_bin[4])) & 0xFF) << 24) | + (((static_cast<uint64_t>(hash_bin[5])) & 0xFF) << 16) | + (((static_cast<uint64_t>(hash_bin[6])) & 0xFF) << 8) | + ((static_cast<uint64_t>(hash_bin[7])) & 0xFF); return base::Uint64ToString(hash64); } diff --git a/components/autofill/core/browser/form_structure.h b/components/autofill/core/browser/form_structure.h index e96dae8..a646777 100644 --- a/components/autofill/core/browser/form_structure.h +++ b/components/autofill/core/browser/form_structure.h @@ -5,12 +5,15 @@ #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_STRUCTURE_H_ #define COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_STRUCTURE_H_ +#include <stddef.h> + #include <set> #include <string> #include <vector> #include "base/callback.h" #include "base/gtest_prod_util.h" +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "base/memory/scoped_vector.h" #include "base/strings/string16.h" diff --git a/components/autofill/core/browser/form_structure_unittest.cc b/components/autofill/core/browser/form_structure_unittest.cc index 15e94e0..b424c1a 100644 --- a/components/autofill/core/browser/form_structure_unittest.cc +++ b/components/autofill/core/browser/form_structure_unittest.cc @@ -4,6 +4,8 @@ #include "components/autofill/core/browser/form_structure.h" +#include <stddef.h> + #include "base/command_line.h" #include "base/memory/scoped_ptr.h" #include "base/metrics/field_trial.h" diff --git a/components/autofill/core/browser/keyboard_accessory_metrics_logger.h b/components/autofill/core/browser/keyboard_accessory_metrics_logger.h index 50f704c..763a164 100644 --- a/components/autofill/core/browser/keyboard_accessory_metrics_logger.h +++ b/components/autofill/core/browser/keyboard_accessory_metrics_logger.h @@ -5,7 +5,6 @@ #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_KEYBOARD_ACCESSORY_METRICS_LOGGER_H_ #define COMPONENTS_AUTOFILL_CORE_BROWSER_KEYBOARD_ACCESSORY_METRICS_LOGGER_H_ -#include "base/basictypes.h" namespace autofill { diff --git a/components/autofill/core/browser/name_field.cc b/components/autofill/core/browser/name_field.cc index 8532de1..27cba7b7 100644 --- a/components/autofill/core/browser/name_field.cc +++ b/components/autofill/core/browser/name_field.cc @@ -4,6 +4,7 @@ #include "components/autofill/core/browser/name_field.h" +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "base/strings/string_util.h" #include "base/strings/utf_string_conversions.h" diff --git a/components/autofill/core/browser/name_field.h b/components/autofill/core/browser/name_field.h index cb82cbb..7fddca6 100644 --- a/components/autofill/core/browser/name_field.h +++ b/components/autofill/core/browser/name_field.h @@ -9,6 +9,7 @@ #include "base/compiler_specific.h" #include "base/gtest_prod_util.h" +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "components/autofill/core/browser/autofill_field.h" #include "components/autofill/core/browser/form_field.h" diff --git a/components/autofill/core/browser/name_field_unittest.cc b/components/autofill/core/browser/name_field_unittest.cc index 1c34048..f16add0 100644 --- a/components/autofill/core/browser/name_field_unittest.cc +++ b/components/autofill/core/browser/name_field_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/memory/scoped_ptr.h" #include "base/memory/scoped_vector.h" #include "base/strings/utf_string_conversions.h" diff --git a/components/autofill/core/browser/password_generator.cc b/components/autofill/core/browser/password_generator.cc index da4b386..86877fb 100644 --- a/components/autofill/core/browser/password_generator.cc +++ b/components/autofill/core/browser/password_generator.cc @@ -4,10 +4,11 @@ #include "components/autofill/core/browser/password_generator.h" +#include <stddef.h> + #include <algorithm> #include <vector> -#include "base/basictypes.h" #include "base/rand_util.h" #include "base/strings/string_util.h" #include "third_party/fips181/fips181.h" diff --git a/components/autofill/core/browser/password_generator.h b/components/autofill/core/browser/password_generator.h index 4a1f87f..e24058f 100644 --- a/components/autofill/core/browser/password_generator.h +++ b/components/autofill/core/browser/password_generator.h @@ -7,8 +7,8 @@ #include <string> -#include "base/basictypes.h" #include "base/gtest_prod_util.h" +#include "base/macros.h" namespace autofill { diff --git a/components/autofill/core/browser/password_generator_unittest.cc b/components/autofill/core/browser/password_generator_unittest.cc index 6360f8d..eb041a0 100644 --- a/components/autofill/core/browser/password_generator_unittest.cc +++ b/components/autofill/core/browser/password_generator_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 <locale> #include "components/autofill/core/browser/password_generator.h" diff --git a/components/autofill/core/browser/payments/payments_client.cc b/components/autofill/core/browser/payments/payments_client.cc index a45b374..2101865 100644 --- a/components/autofill/core/browser/payments/payments_client.cc +++ b/components/autofill/core/browser/payments/payments_client.cc @@ -13,6 +13,7 @@ #include "base/strings/stringprintf.h" #include "base/strings/utf_string_conversions.h" #include "base/values.h" +#include "build/build_config.h" #include "components/autofill/core/browser/autofill_type.h" #include "components/autofill/core/browser/credit_card.h" #include "components/autofill/core/browser/payments/payments_request.h" diff --git a/components/autofill/core/browser/personal_data_manager.cc b/components/autofill/core/browser/personal_data_manager.cc index 588382a..bca5e2a 100644 --- a/components/autofill/core/browser/personal_data_manager.cc +++ b/components/autofill/core/browser/personal_data_manager.cc @@ -4,6 +4,8 @@ #include "components/autofill/core/browser/personal_data_manager.h" +#include <stddef.h> + #include <algorithm> #include "base/i18n/case_conversion.h" @@ -13,6 +15,7 @@ #include "base/strings/string_number_conversions.h" #include "base/strings/string_util.h" #include "base/strings/utf_string_conversions.h" +#include "build/build_config.h" #include "components/autofill/core/browser/address_i18n.h" #include "components/autofill/core/browser/autofill-inl.h" #include "components/autofill/core/browser/autofill_country.h" diff --git a/components/autofill/core/browser/personal_data_manager.h b/components/autofill/core/browser/personal_data_manager.h index 5fe9c4a..c18cf33 100644 --- a/components/autofill/core/browser/personal_data_manager.h +++ b/components/autofill/core/browser/personal_data_manager.h @@ -9,13 +9,14 @@ #include <set> #include <vector> -#include "base/basictypes.h" #include "base/gtest_prod_util.h" +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "base/memory/scoped_vector.h" #include "base/observer_list.h" #include "base/prefs/pref_member.h" #include "base/strings/string16.h" +#include "build/build_config.h" #include "components/autofill/core/browser/autofill_profile.h" #include "components/autofill/core/browser/credit_card.h" #include "components/autofill/core/browser/field_types.h" diff --git a/components/autofill/core/browser/personal_data_manager_unittest.cc b/components/autofill/core/browser/personal_data_manager_unittest.cc index 3182299..a1eb7ae 100644 --- a/components/autofill/core/browser/personal_data_manager_unittest.cc +++ b/components/autofill/core/browser/personal_data_manager_unittest.cc @@ -2,11 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include <stddef.h> + #include <algorithm> #include <string> #include <vector> -#include "base/basictypes.h" #include "base/command_line.h" #include "base/files/scoped_temp_dir.h" #include "base/guid.h" @@ -17,6 +18,7 @@ #include "base/synchronization/waitable_event.h" #include "base/thread_task_runner_handle.h" #include "base/time/time.h" +#include "build/build_config.h" #include "components/autofill/core/browser/autofill_experiments.h" #include "components/autofill/core/browser/autofill_profile.h" #include "components/autofill/core/browser/autofill_test_utils.h" diff --git a/components/autofill/core/browser/phone_field.cc b/components/autofill/core/browser/phone_field.cc index 77a8d9f..05e5704 100644 --- a/components/autofill/core/browser/phone_field.cc +++ b/components/autofill/core/browser/phone_field.cc @@ -4,7 +4,10 @@ #include "components/autofill/core/browser/phone_field.h" +#include <string.h> + #include "base/logging.h" +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "base/strings/string16.h" #include "base/strings/string_util.h" diff --git a/components/autofill/core/browser/phone_field.h b/components/autofill/core/browser/phone_field.h index d1024a8..03dc4a9 100644 --- a/components/autofill/core/browser/phone_field.h +++ b/components/autofill/core/browser/phone_field.h @@ -5,10 +5,13 @@ #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_PHONE_FIELD_H_ #define COMPONENTS_AUTOFILL_CORE_BROWSER_PHONE_FIELD_H_ +#include <stddef.h> + #include <vector> #include "base/compiler_specific.h" #include "base/gtest_prod_util.h" +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "components/autofill/core/browser/autofill_type.h" #include "components/autofill/core/browser/form_field.h" diff --git a/components/autofill/core/browser/phone_field_unittest.cc b/components/autofill/core/browser/phone_field_unittest.cc index 5b5991b8..200d381 100644 --- a/components/autofill/core/browser/phone_field_unittest.cc +++ b/components/autofill/core/browser/phone_field_unittest.cc @@ -2,6 +2,9 @@ // 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/macros.h" #include "base/memory/scoped_ptr.h" #include "base/memory/scoped_vector.h" #include "base/strings/utf_string_conversions.h" diff --git a/components/autofill/core/browser/phone_number.cc b/components/autofill/core/browser/phone_number.cc index 6783677..1952e58 100644 --- a/components/autofill/core/browser/phone_number.cc +++ b/components/autofill/core/browser/phone_number.cc @@ -4,7 +4,6 @@ #include "components/autofill/core/browser/phone_number.h" -#include "base/basictypes.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_util.h" #include "base/strings/utf_string_conversions.h" diff --git a/components/autofill/core/browser/phone_number.h b/components/autofill/core/browser/phone_number.h index 128b2f6..8d50d47 100644 --- a/components/autofill/core/browser/phone_number.h +++ b/components/autofill/core/browser/phone_number.h @@ -5,6 +5,8 @@ #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_PHONE_NUMBER_H_ #define COMPONENTS_AUTOFILL_CORE_BROWSER_PHONE_NUMBER_H_ +#include <stddef.h> + #include <string> #include <vector> diff --git a/components/autofill/core/browser/phone_number_i18n.cc b/components/autofill/core/browser/phone_number_i18n.cc index 60cfadd..46f99a5 100644 --- a/components/autofill/core/browser/phone_number_i18n.cc +++ b/components/autofill/core/browser/phone_number_i18n.cc @@ -4,7 +4,6 @@ #include "components/autofill/core/browser/phone_number_i18n.h" -#include "base/basictypes.h" #include "base/logging.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_util.h" diff --git a/components/autofill/core/browser/phone_number_i18n_unittest.cc b/components/autofill/core/browser/phone_number_i18n_unittest.cc index 2c463cc..3e2ff0a 100644 --- a/components/autofill/core/browser/phone_number_i18n_unittest.cc +++ b/components/autofill/core/browser/phone_number_i18n_unittest.cc @@ -2,6 +2,9 @@ // 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/macros.h" #include "base/message_loop/message_loop.h" #include "base/strings/string16.h" #include "base/strings/utf_string_conversions.h" diff --git a/components/autofill/core/browser/server_field_types_util.h b/components/autofill/core/browser/server_field_types_util.h index 4f62f51..73cc363 100644 --- a/components/autofill/core/browser/server_field_types_util.h +++ b/components/autofill/core/browser/server_field_types_util.h @@ -5,6 +5,8 @@ #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_SERVER_FIELD_TYPES_UTIL_H_ #define COMPONENTS_AUTOFILL_CORE_BROWSER_SERVER_FIELD_TYPES_UTIL_H_ +#include <stddef.h> + #include <vector> #include "components/autofill/core/browser/detail_input.h" diff --git a/components/autofill/core/browser/state_names.cc b/components/autofill/core/browser/state_names.cc index de65924..c537041 100644 --- a/components/autofill/core/browser/state_names.cc +++ b/components/autofill/core/browser/state_names.cc @@ -4,7 +4,9 @@ #include "components/autofill/core/browser/state_names.h" -#include "base/basictypes.h" +#include <stddef.h> + +#include "base/macros.h" #include "base/strings/string_util.h" #include "base/strings/utf_string_conversions.h" diff --git a/components/autofill/core/browser/test_autofill_client.h b/components/autofill/core/browser/test_autofill_client.h index 11bebc8..8bba3eb 100644 --- a/components/autofill/core/browser/test_autofill_client.h +++ b/components/autofill/core/browser/test_autofill_client.h @@ -7,6 +7,7 @@ #include "base/compiler_specific.h" #include "base/i18n/rtl.h" +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "base/prefs/pref_service.h" #include "components/autofill/core/browser/autofill_client.h" diff --git a/components/autofill/core/browser/test_autofill_driver.h b/components/autofill/core/browser/test_autofill_driver.h index e4598199..6282fa5 100644 --- a/components/autofill/core/browser/test_autofill_driver.h +++ b/components/autofill/core/browser/test_autofill_driver.h @@ -5,8 +5,8 @@ #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_ #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_ -#include "base/basictypes.h" #include "base/compiler_specific.h" +#include "base/macros.h" #include "base/memory/ref_counted.h" #include "components/autofill/core/browser/autofill_driver.h" diff --git a/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc b/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc index 1ac9687..da0fe37 100644 --- a/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc +++ b/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc @@ -4,11 +4,14 @@ #include "components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.h" +#include <stddef.h> + #include "base/bind.h" #include "base/prefs/pref_service.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_util.h" #include "base/strings/utf_string_conversions.h" +#include "build/build_config.h" #include "components/autofill/core/browser/autofill_experiments.h" #include "components/autofill/core/browser/autofill_metrics.h" #include "components/autofill/core/browser/ui/card_unmask_prompt_view.h" diff --git a/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.h b/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.h index df2b8c3..25d8565 100644 --- a/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.h +++ b/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.h @@ -8,6 +8,7 @@ #include <string> #include "base/callback.h" +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "base/memory/weak_ptr.h" #include "components/autofill/core/browser/autofill_client.h" diff --git a/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl_unittest.cc b/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl_unittest.cc index e0ff1ea..2850629 100644 --- a/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl_unittest.cc +++ b/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl_unittest.cc @@ -4,7 +4,10 @@ #include "components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.h" +#include <stddef.h> + #include "base/bind.h" +#include "base/macros.h" #include "base/prefs/pref_registry_simple.h" #include "base/prefs/testing_pref_service.h" #include "base/strings/utf_string_conversions.h" diff --git a/components/autofill/core/browser/ui/card_unmask_prompt_view.h b/components/autofill/core/browser/ui/card_unmask_prompt_view.h index 92c8ae5..dbedeab 100644 --- a/components/autofill/core/browser/ui/card_unmask_prompt_view.h +++ b/components/autofill/core/browser/ui/card_unmask_prompt_view.h @@ -5,6 +5,7 @@ #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_UI_CARD_UNMASK_PROMPT_VIEW_H_ #define COMPONENTS_AUTOFILL_CORE_BROWSER_UI_CARD_UNMASK_PROMPT_VIEW_H_ +#include "base/macros.h" #include "base/strings/string16.h" namespace autofill { diff --git a/components/autofill/core/browser/validation.cc b/components/autofill/core/browser/validation.cc index b4c9567..debe053 100644 --- a/components/autofill/core/browser/validation.cc +++ b/components/autofill/core/browser/validation.cc @@ -4,6 +4,8 @@ #include "components/autofill/core/browser/validation.h" +#include <stddef.h> + #include "base/strings/string_number_conversions.h" #include "base/strings/string_piece.h" #include "base/strings/string_util.h" diff --git a/components/autofill/core/browser/validation_unittest.cc b/components/autofill/core/browser/validation_unittest.cc index 92e9515..49037f4 100644 --- a/components/autofill/core/browser/validation_unittest.cc +++ b/components/autofill/core/browser/validation_unittest.cc @@ -2,6 +2,9 @@ // 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/macros.h" #include "base/strings/utf_string_conversions.h" #include "base/time/time.h" #include "components/autofill/core/browser/validation.h" diff --git a/components/autofill/core/browser/webdata/autocomplete_syncable_service.cc b/components/autofill/core/browser/webdata/autocomplete_syncable_service.cc index 9fae65a..9f41f96 100644 --- a/components/autofill/core/browser/webdata/autocomplete_syncable_service.cc +++ b/components/autofill/core/browser/webdata/autocomplete_syncable_service.cc @@ -4,6 +4,8 @@ #include "components/autofill/core/browser/webdata/autocomplete_syncable_service.h" +#include <stdint.h> + #include "base/location.h" #include "base/logging.h" #include "base/strings/utf_string_conversions.h" diff --git a/components/autofill/core/browser/webdata/autocomplete_syncable_service.h b/components/autofill/core/browser/webdata/autocomplete_syncable_service.h index 257cee3..240d3db 100644 --- a/components/autofill/core/browser/webdata/autocomplete_syncable_service.h +++ b/components/autofill/core/browser/webdata/autocomplete_syncable_service.h @@ -10,7 +10,7 @@ #include <utility> #include <vector> -#include "base/basictypes.h" +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "base/scoped_observer.h" #include "base/supports_user_data.h" diff --git a/components/autofill/core/browser/webdata/autofill_data_type_controller_unittest.cc b/components/autofill/core/browser/webdata/autofill_data_type_controller_unittest.cc index c14c7e3..f811771 100644 --- a/components/autofill/core/browser/webdata/autofill_data_type_controller_unittest.cc +++ b/components/autofill/core/browser/webdata/autofill_data_type_controller_unittest.cc @@ -7,6 +7,7 @@ #include "base/bind.h" #include "base/callback.h" #include "base/compiler_specific.h" +#include "base/macros.h" #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" #include "base/memory/weak_ptr.h" diff --git a/components/autofill/core/browser/webdata/autofill_profile_data_type_controller.h b/components/autofill/core/browser/webdata/autofill_profile_data_type_controller.h index 3158511..5e13080 100644 --- a/components/autofill/core/browser/webdata/autofill_profile_data_type_controller.h +++ b/components/autofill/core/browser/webdata/autofill_profile_data_type_controller.h @@ -6,6 +6,7 @@ #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_DATA_TYPE_CONTROLLER_H_ #include "base/compiler_specific.h" +#include "base/macros.h" #include "base/memory/ref_counted.h" #include "base/scoped_observer.h" #include "components/autofill/core/browser/personal_data_manager_observer.h" diff --git a/components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc b/components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc index a149657..e6fccfe 100644 --- a/components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc +++ b/components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc @@ -4,6 +4,8 @@ #include "components/autofill/core/browser/webdata/autofill_profile_syncable_service.h" +#include <stddef.h> + #include "base/guid.h" #include "base/location.h" #include "base/logging.h" diff --git a/components/autofill/core/browser/webdata/autofill_profile_syncable_service.h b/components/autofill/core/browser/webdata/autofill_profile_syncable_service.h index f95b879..3c069d9 100644 --- a/components/autofill/core/browser/webdata/autofill_profile_syncable_service.h +++ b/components/autofill/core/browser/webdata/autofill_profile_syncable_service.h @@ -8,8 +8,8 @@ #include <string> #include <vector> -#include "base/basictypes.h" #include "base/gtest_prod_util.h" +#include "base/macros.h" #include "base/memory/scoped_vector.h" #include "base/scoped_observer.h" #include "base/supports_user_data.h" diff --git a/components/autofill/core/browser/webdata/autofill_profile_syncable_service_unittest.cc b/components/autofill/core/browser/webdata/autofill_profile_syncable_service_unittest.cc index 43286aa..2fb3bd6 100644 --- a/components/autofill/core/browser/webdata/autofill_profile_syncable_service_unittest.cc +++ b/components/autofill/core/browser/webdata/autofill_profile_syncable_service_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 "base/location.h" #include "base/message_loop/message_loop.h" #include "base/strings/utf_string_conversions.h" diff --git a/components/autofill/core/browser/webdata/autofill_table.cc b/components/autofill/core/browser/webdata/autofill_table.cc index 3e400e1..381b5b6 100644 --- a/components/autofill/core/browser/webdata/autofill_table.cc +++ b/components/autofill/core/browser/webdata/autofill_table.cc @@ -4,6 +4,8 @@ #include "components/autofill/core/browser/webdata/autofill_table.h" +#include <stdint.h> + #include <algorithm> #include <cmath> #include <limits> @@ -46,7 +48,7 @@ namespace autofill { namespace { // The period after which autocomplete entries should expire in days. -const int64 kExpirationPeriodInDays = 60; +const int64_t kExpirationPeriodInDays = 60; // Helper struct for AutofillTable::RemoveFormElementsAddedBetween(). // Contains all the necessary fields to update a row in the 'autofill' table. diff --git a/components/autofill/core/browser/webdata/autofill_table.h b/components/autofill/core/browser/webdata/autofill_table.h index 73fcb16..f7cd14b 100644 --- a/components/autofill/core/browser/webdata/autofill_table.h +++ b/components/autofill/core/browser/webdata/autofill_table.h @@ -5,9 +5,12 @@ #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ +#include <stddef.h> + #include <vector> #include "base/gtest_prod_util.h" +#include "base/macros.h" #include "base/memory/scoped_vector.h" #include "base/strings/string16.h" #include "components/webdata/common/web_database_table.h" diff --git a/components/autofill/core/browser/webdata/autofill_table_unittest.cc b/components/autofill/core/browser/webdata/autofill_table_unittest.cc index 9341d5d..8d36d58 100644 --- a/components/autofill/core/browser/webdata/autofill_table_unittest.cc +++ b/components/autofill/core/browser/webdata/autofill_table_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 <tuple> #include <utility> #include <vector> @@ -10,12 +12,14 @@ #include "base/files/file_util.h" #include "base/files/scoped_temp_dir.h" #include "base/guid.h" +#include "base/macros.h" #include "base/memory/scoped_vector.h" #include "base/stl_util.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_util.h" #include "base/strings/utf_string_conversions.h" #include "base/time/time.h" +#include "build/build_config.h" #include "components/autofill/core/browser/autofill_profile.h" #include "components/autofill/core/browser/autofill_test_utils.h" #include "components/autofill/core/browser/autofill_type.h" diff --git a/components/autofill/core/browser/webdata/autofill_wallet_metadata_syncable_service.cc b/components/autofill/core/browser/webdata/autofill_wallet_metadata_syncable_service.cc index 1eb673f..11e47dd 100644 --- a/components/autofill/core/browser/webdata/autofill_wallet_metadata_syncable_service.cc +++ b/components/autofill/core/browser/webdata/autofill_wallet_metadata_syncable_service.cc @@ -4,6 +4,8 @@ #include "components/autofill/core/browser/webdata/autofill_wallet_metadata_syncable_service.h" +#include <stddef.h> + #include "base/base64.h" #include "base/bind.h" #include "base/containers/scoped_ptr_hash_map.h" diff --git a/components/autofill/core/browser/webdata/autofill_wallet_metadata_syncable_service_unittest.cc b/components/autofill/core/browser/webdata/autofill_wallet_metadata_syncable_service_unittest.cc index abc84e0..596d061 100644 --- a/components/autofill/core/browser/webdata/autofill_wallet_metadata_syncable_service_unittest.cc +++ b/components/autofill/core/browser/webdata/autofill_wallet_metadata_syncable_service_unittest.cc @@ -4,12 +4,15 @@ #include "components/autofill/core/browser/webdata/autofill_wallet_metadata_syncable_service.h" +#include <stddef.h> +#include <stdint.h> + #include <vector> #include "base/base64.h" -#include "base/basictypes.h" #include "base/containers/scoped_ptr_hash_map.h" #include "base/location.h" +#include "base/macros.h" #include "base/numerics/safe_conversions.h" #include "base/time/time.h" #include "components/autofill/core/browser/autofill_profile.h" @@ -177,8 +180,8 @@ TEST_F(AutofillWalletMetadataSyncableServiceTest, NoMetadataToReturn) { } AutofillProfile BuildAddress(const std::string& server_id, - int64 use_count, - int64 use_date) { + int64_t use_count, + int64_t use_date) { AutofillProfile profile(AutofillProfile::SERVER_PROFILE, server_id); profile.set_use_count(use_count); profile.set_use_date(base::Time::FromInternalValue(use_date)); @@ -186,8 +189,8 @@ AutofillProfile BuildAddress(const std::string& server_id, } CreditCard BuildCard(const std::string& server_id, - int64 use_count, - int64 use_date) { + int64_t use_count, + int64_t use_date) { CreditCard card(CreditCard::MASKED_SERVER_CARD, server_id); card.set_use_count(use_count); card.set_use_date(base::Time::FromInternalValue(use_date)); @@ -559,8 +562,8 @@ syncer::SyncChange BuildChange( const std::string& sync_tag, sync_pb::WalletMetadataSpecifics::Type metadata_type, const std::string& server_id, - int64 use_count, - int64 use_date) { + int64_t use_count, + int64_t use_date) { sync_pb::EntitySpecifics entity; entity.mutable_wallet_metadata()->set_type(metadata_type); entity.mutable_wallet_metadata()->set_id(server_id); diff --git a/components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc b/components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc index 3fed7f6..4b55c28 100644 --- a/components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc +++ b/components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc @@ -4,6 +4,8 @@ #include "components/autofill/core/browser/webdata/autofill_wallet_syncable_service.h" +#include <stddef.h> + #include <set> #include "base/logging.h" diff --git a/components/autofill/core/browser/webdata/autofill_wallet_syncable_service.h b/components/autofill/core/browser/webdata/autofill_wallet_syncable_service.h index 1939564..3a156ac 100644 --- a/components/autofill/core/browser/webdata/autofill_wallet_syncable_service.h +++ b/components/autofill/core/browser/webdata/autofill_wallet_syncable_service.h @@ -5,7 +5,7 @@ #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WALLET_SYNCABLE_SERVICE_H_ #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WALLET_SYNCABLE_SERVICE_H_ -#include "base/basictypes.h" +#include "base/macros.h" #include "base/supports_user_data.h" #include "base/threading/thread_checker.h" #include "sync/api/syncable_service.h" diff --git a/components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h b/components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h index 86932b3..f0bcb63 100644 --- a/components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h +++ b/components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h @@ -5,6 +5,7 @@ #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_BACKEND_IMPL_H_ #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_BACKEND_IMPL_H_ +#include "base/macros.h" #include "base/memory/ref_counted.h" #include "base/memory/ref_counted_delete_on_message_loop.h" #include "base/memory/scoped_ptr.h" diff --git a/components/autofill/core/browser/webdata/autofill_webdata_service.h b/components/autofill/core/browser/webdata/autofill_webdata_service.h index fc2761a..a59a35e 100644 --- a/components/autofill/core/browser/webdata/autofill_webdata_service.h +++ b/components/autofill/core/browser/webdata/autofill_webdata_service.h @@ -7,6 +7,7 @@ #include <vector> +#include "base/macros.h" #include "base/memory/ref_counted.h" #include "base/memory/weak_ptr.h" #include "base/observer_list.h" diff --git a/components/autofill/core/browser/webdata/web_data_service_unittest.cc b/components/autofill/core/browser/webdata/web_data_service_unittest.cc index 5f3d80b..26c5b64 100644 --- a/components/autofill/core/browser/webdata/web_data_service_unittest.cc +++ b/components/autofill/core/browser/webdata/web_data_service_unittest.cc @@ -5,10 +5,10 @@ #include <string> #include <vector> -#include "base/basictypes.h" #include "base/bind.h" #include "base/files/scoped_temp_dir.h" #include "base/location.h" +#include "base/macros.h" #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" #include "base/single_thread_task_runner.h" diff --git a/components/autofill/core/common/autofill_data_validation.h b/components/autofill/core/common/autofill_data_validation.h index fd5e521..98dc5eb7 100644 --- a/components/autofill/core/common/autofill_data_validation.h +++ b/components/autofill/core/common/autofill_data_validation.h @@ -5,6 +5,8 @@ #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_DATA_VALIDATION_H_ #define COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_DATA_VALIDATION_H_ +#include <stddef.h> + #include <string> #include <vector> diff --git a/components/autofill/core/common/autofill_l10n_util.h b/components/autofill/core/common/autofill_l10n_util.h index a2a2ca8..27c7247 100644 --- a/components/autofill/core/common/autofill_l10n_util.h +++ b/components/autofill/core/common/autofill_l10n_util.h @@ -5,6 +5,7 @@ #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_L10N_UTIL_H_ #define COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_L10N_UTIL_H_ +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "base/strings/string16.h" #include "third_party/icu/source/common/unicode/locid.h" diff --git a/components/autofill/core/common/autofill_regexes.cc b/components/autofill/core/common/autofill_regexes.cc index cdea63c..7bc8ed0 100644 --- a/components/autofill/core/common/autofill_regexes.cc +++ b/components/autofill/core/common/autofill_regexes.cc @@ -6,6 +6,7 @@ #include "base/containers/scoped_ptr_hash_map.h" #include "base/logging.h" +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "base/memory/singleton.h" #include "base/strings/string16.h" diff --git a/components/autofill/core/common/autofill_regexes_unittest.cc b/components/autofill/core/common/autofill_regexes_unittest.cc index 05895c7..ff8cbd1 100644 --- a/components/autofill/core/common/autofill_regexes_unittest.cc +++ b/components/autofill/core/common/autofill_regexes_unittest.cc @@ -4,6 +4,9 @@ #include "components/autofill/core/common/autofill_regexes.h" +#include <stddef.h> + +#include "base/macros.h" #include "base/strings/string16.h" #include "base/strings/utf_string_conversions.h" #include "components/autofill/core/browser/autofill_regex_constants.h" diff --git a/components/autofill/core/common/autofill_switches.cc b/components/autofill/core/common/autofill_switches.cc index e7c1ff6..b0078e6 100644 --- a/components/autofill/core/common/autofill_switches.cc +++ b/components/autofill/core/common/autofill_switches.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 "components/autofill/core/common/autofill_switches.h" namespace autofill { diff --git a/components/autofill/core/common/autofill_util.cc b/components/autofill/core/common/autofill_util.cc index 1359816..28fc6c5 100644 --- a/components/autofill/core/common/autofill_util.cc +++ b/components/autofill/core/common/autofill_util.cc @@ -14,6 +14,7 @@ #include "base/strings/string_split.h" #include "base/strings/string_util.h" #include "base/strings/utf_string_conversions.h" +#include "build/build_config.h" #include "components/autofill/core/common/autofill_switches.h" namespace autofill { diff --git a/components/autofill/core/common/autofill_util.h b/components/autofill/core/common/autofill_util.h index e29318d..34a2b02 100644 --- a/components/autofill/core/common/autofill_util.h +++ b/components/autofill/core/common/autofill_util.h @@ -5,6 +5,8 @@ #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_UTIL_H_ #define COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_UTIL_H_ +#include <stddef.h> + #include "base/strings/string16.h" namespace autofill { diff --git a/components/autofill/core/common/autofill_util_unittest.cc b/components/autofill/core/common/autofill_util_unittest.cc index e625900..823be3d4 100644 --- a/components/autofill/core/common/autofill_util_unittest.cc +++ b/components/autofill/core/common/autofill_util_unittest.cc @@ -4,7 +4,10 @@ #include "components/autofill/core/common/autofill_util.h" +#include <stddef.h> + #include "base/command_line.h" +#include "base/macros.h" #include "base/strings/utf_string_conversions.h" #include "components/autofill/core/common/autofill_switches.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/components/autofill/core/common/form_data.cc b/components/autofill/core/common/form_data.cc index 3d68639..e093083 100644 --- a/components/autofill/core/common/form_data.cc +++ b/components/autofill/core/common/form_data.cc @@ -4,6 +4,8 @@ #include "components/autofill/core/common/form_data.h" +#include <stddef.h> + #include <tuple> #include "base/base64.h" diff --git a/components/autofill/core/common/form_data_unittest.cc b/components/autofill/core/common/form_data_unittest.cc index 930ead3..d775081 100644 --- a/components/autofill/core/common/form_data_unittest.cc +++ b/components/autofill/core/common/form_data_unittest.cc @@ -4,6 +4,8 @@ #include "components/autofill/core/common/form_data.h" +#include <stddef.h> + #include "base/pickle.h" #include "base/strings/utf_string_conversions.h" #include "components/autofill/core/common/form_field_data.h" diff --git a/components/autofill/core/common/form_field_data.h b/components/autofill/core/common/form_field_data.h index 2fa3ac5..f711b77 100644 --- a/components/autofill/core/common/form_field_data.h +++ b/components/autofill/core/common/form_field_data.h @@ -5,6 +5,8 @@ #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_FORM_FIELD_DATA_H_ #define COMPONENTS_AUTOFILL_CORE_COMMON_FORM_FIELD_DATA_H_ +#include <stddef.h> + #include <vector> #include "base/i18n/rtl.h" diff --git a/components/autofill/core/common/save_password_progress_logger.h b/components/autofill/core/common/save_password_progress_logger.h index c68925b..4fc3a92 100644 --- a/components/autofill/core/common/save_password_progress_logger.h +++ b/components/autofill/core/common/save_password_progress_logger.h @@ -5,8 +5,11 @@ #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_SAVE_PASSWORD_PROGRESS_LOGGER_H_ #define COMPONENTS_AUTOFILL_CORE_COMMON_SAVE_PASSWORD_PROGRESS_LOGGER_H_ +#include <stddef.h> + #include <string> +#include "base/macros.h" #include "url/gurl.h" namespace base { diff --git a/components/autofill/core/common/save_password_progress_logger_unittest.cc b/components/autofill/core/common/save_password_progress_logger_unittest.cc index 601c7e5..41e4f55 100644 --- a/components/autofill/core/common/save_password_progress_logger_unittest.cc +++ b/components/autofill/core/common/save_password_progress_logger_unittest.cc @@ -4,6 +4,8 @@ #include "components/autofill/core/common/save_password_progress_logger.h" +#include <stddef.h> + #include <limits> #include "base/bind.h" diff --git a/components/autofill/ios/browser/autofill_driver_ios_bridge.h b/components/autofill/ios/browser/autofill_driver_ios_bridge.h index 332c40e..c60388f 100644 --- a/components/autofill/ios/browser/autofill_driver_ios_bridge.h +++ b/components/autofill/ios/browser/autofill_driver_ios_bridge.h @@ -5,9 +5,9 @@ #ifndef COMPONENTS_AUTOFILL_IOS_BROWSER_AUTOFILL_DRIVER_IOS_BRIDGE_H_ #define COMPONENTS_AUTOFILL_IOS_BROWSER_AUTOFILL_DRIVER_IOS_BRIDGE_H_ -#include <vector> +#include <stdint.h> -#include "base/basictypes.h" +#include <vector> namespace autofill { struct FormData; @@ -16,7 +16,7 @@ class FormStructure; @protocol AutofillDriverIOSBridge -- (void)onFormDataFilled:(uint16)query_id +- (void)onFormDataFilled:(uint16_t)query_id result:(const autofill::FormData&)result; - (void)sendAutofillTypePredictionsToRenderer: |