diff options
| author | avi <avi@chromium.org> | 2015-12-25 18:10:43 -0800 |
|---|---|---|
| committer | Commit bot <commit-bot@chromium.org> | 2015-12-26 02:11:32 +0000 |
| commit | b896c715dd14ec1f7ac800350b40eeb6de2ba868 (patch) | |
| tree | acc471478046a775c3492046a40c2ea84e8ea88a /chrome/browser/policy/cloud | |
| parent | f5b61be8a18b07a2a928f10bf1f8f0e8a5358f13 (diff) | |
| download | chromium_src-b896c715dd14ec1f7ac800350b40eeb6de2ba868.zip chromium_src-b896c715dd14ec1f7ac800350b40eeb6de2ba868.tar.gz chromium_src-b896c715dd14ec1f7ac800350b40eeb6de2ba868.tar.bz2 | |
Switch to standard integer types in chrome/browser/, part 3 of 4.
BUG=138542
TBR=thakis@chromium.org
Review URL: https://codereview.chromium.org/1548133002
Cr-Commit-Position: refs/heads/master@{#366883}
Diffstat (limited to 'chrome/browser/policy/cloud')
26 files changed, 73 insertions, 49 deletions
diff --git a/chrome/browser/policy/cloud/cloud_policy_browsertest.cc b/chrome/browser/policy/cloud/cloud_policy_browsertest.cc index 5f454cc..b06aeb7 100644 --- a/chrome/browser/policy/cloud/cloud_policy_browsertest.cc +++ b/chrome/browser/policy/cloud/cloud_policy_browsertest.cc @@ -13,6 +13,7 @@ #include "base/run_loop.h" #include "base/strings/stringprintf.h" #include "base/time/time.h" +#include "build/build_config.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/chrome_notification_types.h" #include "chrome/browser/invalidation/fake_invalidation_service.h" diff --git a/chrome/browser/policy/cloud/cloud_policy_invalidator.cc b/chrome/browser/policy/cloud/cloud_policy_invalidator.cc index 0947a24..97bf3e0 100644 --- a/chrome/browser/policy/cloud/cloud_policy_invalidator.cc +++ b/chrome/browser/policy/cloud/cloud_policy_invalidator.cc @@ -35,7 +35,7 @@ CloudPolicyInvalidator::CloudPolicyInvalidator( CloudPolicyCore* core, const scoped_refptr<base::SequencedTaskRunner>& task_runner, scoped_ptr<base::Clock> clock, - int64 highest_handled_invalidation_version) + int64_t highest_handled_invalidation_version) : state_(UNINITIALIZED), type_(type), core_(core), @@ -167,7 +167,7 @@ void CloudPolicyInvalidator::OnStoreLoaded(CloudPolicyStore* store) { METRIC_POLICY_REFRESH_SIZE); } - const int64 store_invalidation_version = store->invalidation_version(); + const int64_t store_invalidation_version = store->invalidation_version(); // If the policy was invalid and the version stored matches the latest // invalidation version, acknowledge the latest invalidation. @@ -212,7 +212,7 @@ void CloudPolicyInvalidator::HandleInvalidation( // numbers based on the number of such invalidations received. This // ensures that the version numbers do not collide with "real" versions // (which are positive) or previous invalidations with unknown version. - int64 version; + int64_t version; std::string payload; if (invalidation.is_unknown_version()) { version = -(++unknown_version_invalidation_count_); @@ -380,7 +380,7 @@ bool CloudPolicyInvalidator::IsPolicyChanged( const enterprise_management::PolicyData* policy) { // Determine if the policy changed by comparing its hash value to the // previous policy's hash value. - uint32 new_hash_value = 0; + uint32_t new_hash_value = 0; if (policy && policy->has_policy_value()) new_hash_value = base::Hash(policy->policy_value()); bool changed = new_hash_value != policy_hash_value_; @@ -388,7 +388,7 @@ bool CloudPolicyInvalidator::IsPolicyChanged( return changed; } -bool CloudPolicyInvalidator::IsInvalidationExpired(int64 version) { +bool CloudPolicyInvalidator::IsInvalidationExpired(int64_t version) { base::Time last_fetch_time = base::Time::UnixEpoch() + base::TimeDelta::FromMilliseconds(core_->store()->policy()->timestamp()); diff --git a/chrome/browser/policy/cloud/cloud_policy_invalidator.h b/chrome/browser/policy/cloud/cloud_policy_invalidator.h index fa89d12..8932c4e 100644 --- a/chrome/browser/policy/cloud/cloud_policy_invalidator.h +++ b/chrome/browser/policy/cloud/cloud_policy_invalidator.h @@ -5,12 +5,14 @@ #ifndef CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_INVALIDATOR_H_ #define CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_INVALIDATOR_H_ +#include <stdint.h> + #include <string> -#include "base/basictypes.h" #include "base/callback.h" #include "base/compiler_specific.h" #include "base/logging.h" +#include "base/macros.h" #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" #include "base/memory/weak_ptr.h" @@ -72,7 +74,7 @@ class CloudPolicyInvalidator : public syncer::InvalidationHandler, CloudPolicyCore* core, const scoped_refptr<base::SequencedTaskRunner>& task_runner, scoped_ptr<base::Clock> clock, - int64 highest_handled_invalidation_version); + int64_t highest_handled_invalidation_version); ~CloudPolicyInvalidator() override; // Initializes the invalidator. No invalidations will be generated before this @@ -91,7 +93,7 @@ class CloudPolicyInvalidator : public syncer::InvalidationHandler, } // The highest invalidation version that was handled already. - int64 highest_handled_invalidation_version() const { + int64_t highest_handled_invalidation_version() const { return highest_handled_invalidation_version_; } @@ -150,7 +152,7 @@ class CloudPolicyInvalidator : public syncer::InvalidationHandler, // Determine if an invalidation has expired. // |version| is the version of the invalidation, or zero for unknown. - bool IsInvalidationExpired(int64 version); + bool IsInvalidationExpired(int64_t version); // Get the kMetricPolicyRefresh histogram metric which should be incremented // when a policy is stored. @@ -212,7 +214,7 @@ class CloudPolicyInvalidator : public syncer::InvalidationHandler, // The version of the latest invalidation received. This is compared to // the invalidation version of policy stored to determine when the // invalidated policy is up-to-date. - int64 invalidation_version_; + int64_t invalidation_version_; // The number of invalidations with unknown version received. Since such // invalidations do not provide a version number, this count is used to set @@ -220,7 +222,7 @@ class CloudPolicyInvalidator : public syncer::InvalidationHandler, int unknown_version_invalidation_count_; // The highest invalidation version that was handled already. - int64 highest_handled_invalidation_version_; + int64_t highest_handled_invalidation_version_; // The most up to date invalidation. scoped_ptr<syncer::Invalidation> invalidation_; @@ -231,7 +233,7 @@ class CloudPolicyInvalidator : public syncer::InvalidationHandler, // The hash value of the current policy. This is used to determine if a new // policy is different from the current one. - uint32 policy_hash_value_; + uint32_t policy_hash_value_; // A thread checker to make sure that callbacks are invoked on the correct // thread. diff --git a/chrome/browser/policy/cloud/cloud_policy_invalidator_unittest.cc b/chrome/browser/policy/cloud/cloud_policy_invalidator_unittest.cc index d741b97..a83962a 100644 --- a/chrome/browser/policy/cloud/cloud_policy_invalidator_unittest.cc +++ b/chrome/browser/policy/cloud/cloud_policy_invalidator_unittest.cc @@ -2,10 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include <stdint.h> + #include <string> -#include "base/basictypes.h" #include "base/bind.h" +#include "base/macros.h" #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" #include "base/metrics/histogram.h" @@ -17,6 +19,7 @@ #include "base/test/test_simple_task_runner.h" #include "base/time/time.h" #include "base/values.h" +#include "build/build_config.h" #include "chrome/browser/invalidation/fake_invalidation_service.h" #include "chrome/browser/policy/cloud/cloud_policy_invalidator.h" #include "chrome/browser/policy/cloud/user_cloud_policy_invalidator.h" @@ -56,7 +59,7 @@ class CloudPolicyInvalidatorTest : public testing::Test { // that was handled already before this invalidator was created. void StartInvalidator(bool initialize, bool start_refresh_scheduler, - int64 highest_handled_invalidation_version); + int64_t highest_handled_invalidation_version); void StartInvalidator() { StartInvalidator(true, /* initialize */ true, /* start_refresh_scheduler */ @@ -89,21 +92,19 @@ class CloudPolicyInvalidatorTest : public testing::Test { // |policy_changed| determines whether a policy value different from the // current value will be stored. // |time| determines the timestamp the store will report. - void StorePolicy( - PolicyObject object, - int64 invalidation_version, - bool policy_changed, - const base::Time& time); - void StorePolicy( - PolicyObject object, - int64 invalidation_version, - bool policy_changed) { + void StorePolicy(PolicyObject object, + int64_t invalidation_version, + bool policy_changed, + const base::Time& time); + void StorePolicy(PolicyObject object, + int64_t invalidation_version, + bool policy_changed) { StorePolicy(object, invalidation_version, policy_changed, Now() - base::TimeDelta::FromMinutes(5)); } - void StorePolicy(PolicyObject object, int64 invalidation_version) { + void StorePolicy(PolicyObject object, int64_t invalidation_version) { StorePolicy(object, invalidation_version, false); } void StorePolicy(PolicyObject object) { @@ -117,17 +118,16 @@ class CloudPolicyInvalidatorTest : public testing::Test { void EnableInvalidationService(); // Causes the invalidation service to fire an invalidation. - syncer::Invalidation FireInvalidation( - PolicyObject object, - int64 version, - const std::string& payload); + syncer::Invalidation FireInvalidation(PolicyObject object, + int64_t version, + const std::string& payload); // Causes the invalidation service to fire an invalidation with unknown // version. syncer::Invalidation FireUnknownVersionInvalidation(PolicyObject object); // Checks the expected value of the currently set invalidation info. - bool CheckInvalidationInfo(int64 version, const std::string& payload); + bool CheckInvalidationInfo(int64_t version, const std::string& payload); // Checks that the policy was not refreshed due to an invalidation. bool CheckPolicyNotRefreshed(); @@ -154,7 +154,7 @@ class CloudPolicyInvalidatorTest : public testing::Test { // Returns the highest invalidation version that was handled already according // to the |invalidator_|. - int64 GetHighestHandledInvalidationVersion() const; + int64_t GetHighestHandledInvalidationVersion() const; // Advance the test clock. void AdvanceClock(base::TimeDelta delta); @@ -164,10 +164,10 @@ class CloudPolicyInvalidatorTest : public testing::Test { // Translate a version number into an appropriate invalidation version (which // is based on the current time). - int64 V(int version); + int64_t V(int version); // Get an invalidation version for the given time. - int64 GetVersion(base::Time time); + int64_t GetVersion(base::Time time); // Get the policy type that the |invalidator_| is responsible for. virtual em::DeviceRegisterRequest::Type GetPolicyType() const; @@ -235,7 +235,7 @@ void CloudPolicyInvalidatorTest::TearDown() { void CloudPolicyInvalidatorTest::StartInvalidator( bool initialize, bool start_refresh_scheduler, - int64 highest_handled_invalidation_version) { + int64_t highest_handled_invalidation_version) { invalidator_.reset(new CloudPolicyInvalidator( GetPolicyType(), &core_, @@ -277,11 +277,10 @@ void CloudPolicyInvalidatorTest::DisconnectCore() { core_.Disconnect(); } -void CloudPolicyInvalidatorTest::StorePolicy( - PolicyObject object, - int64 invalidation_version, - bool policy_changed, - const base::Time& time) { +void CloudPolicyInvalidatorTest::StorePolicy(PolicyObject object, + int64_t invalidation_version, + bool policy_changed, + const base::Time& time) { em::PolicyData* data = new em::PolicyData(); if (object != POLICY_OBJECT_NONE) { data->set_invalidation_source(GetPolicyObjectId(object).source()); @@ -318,7 +317,7 @@ void CloudPolicyInvalidatorTest::EnableInvalidationService() { syncer::Invalidation CloudPolicyInvalidatorTest::FireInvalidation( PolicyObject object, - int64 version, + int64_t version, const std::string& payload) { syncer::Invalidation invalidation = syncer::Invalidation::Init( GetPolicyObjectId(object), @@ -337,7 +336,7 @@ syncer::Invalidation CloudPolicyInvalidatorTest::FireUnknownVersionInvalidation( } bool CloudPolicyInvalidatorTest::CheckInvalidationInfo( - int64 version, + int64_t version, const std::string& payload) { MockCloudPolicyClient* client = static_cast<MockCloudPolicyClient*>(core_.client()); @@ -383,7 +382,8 @@ bool CloudPolicyInvalidatorTest::IsInvalidatorRegistered() { .GetRegisteredIds(invalidator_.get()).empty(); } -int64 CloudPolicyInvalidatorTest::GetHighestHandledInvalidationVersion() const { +int64_t CloudPolicyInvalidatorTest::GetHighestHandledInvalidationVersion() + const { return invalidator_->highest_handled_invalidation_version(); } @@ -395,11 +395,11 @@ base::Time CloudPolicyInvalidatorTest::Now() { return clock_->Now(); } -int64 CloudPolicyInvalidatorTest::V(int version) { +int64_t CloudPolicyInvalidatorTest::V(int version) { return GetVersion(Now()) + version; } -int64 CloudPolicyInvalidatorTest::GetVersion(base::Time time) { +int64_t CloudPolicyInvalidatorTest::GetVersion(base::Time time) { return (time - base::Time::UnixEpoch()).InMicroseconds(); } diff --git a/chrome/browser/policy/cloud/cloud_policy_manager_browsertest.cc b/chrome/browser/policy/cloud/cloud_policy_manager_browsertest.cc index 9c63d1a..26bb250 100644 --- a/chrome/browser/policy/cloud/cloud_policy_manager_browsertest.cc +++ b/chrome/browser/policy/cloud/cloud_policy_manager_browsertest.cc @@ -5,6 +5,7 @@ #include "base/command_line.h" #include "base/memory/scoped_ptr.h" #include "base/run_loop.h" +#include "build/build_config.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/policy/cloud/test_request_interceptor.h" #include "chrome/browser/profiles/profile.h" diff --git a/chrome/browser/policy/cloud/component_cloud_policy_browsertest.cc b/chrome/browser/policy/cloud/component_cloud_policy_browsertest.cc index e7dc335..24558f5 100644 --- a/chrome/browser/policy/cloud/component_cloud_policy_browsertest.cc +++ b/chrome/browser/policy/cloud/component_cloud_policy_browsertest.cc @@ -11,6 +11,7 @@ #include "base/memory/ref_counted.h" #include "base/path_service.h" #include "base/run_loop.h" +#include "build/build_config.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/extensions/extension_browsertest.h" #include "chrome/browser/policy/profile_policy_connector.h" diff --git a/chrome/browser/policy/cloud/device_management_service_browsertest.cc b/chrome/browser/policy/cloud/device_management_service_browsertest.cc index cfe06fd..cee468e 100644 --- a/chrome/browser/policy/cloud/device_management_service_browsertest.cc +++ b/chrome/browser/policy/cloud/device_management_service_browsertest.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 "base/bind.h" #include "base/bind_helpers.h" #include "base/memory/scoped_ptr.h" @@ -39,7 +41,7 @@ namespace { // Parses the DeviceManagementRequest in |request_data| and writes a serialized // DeviceManagementResponse to |response_data|. void ConstructResponse(const char* request_data, - uint64 request_data_length, + uint64_t request_data_length, std::string* response_data) { em::DeviceManagementRequest request; ASSERT_TRUE(request.ParseFromArray(request_data, request_data_length)); diff --git a/chrome/browser/policy/cloud/policy_header_service_factory.cc b/chrome/browser/policy/cloud/policy_header_service_factory.cc index 86cbb37..759faff 100644 --- a/chrome/browser/policy/cloud/policy_header_service_factory.cc +++ b/chrome/browser/policy/cloud/policy_header_service_factory.cc @@ -5,6 +5,7 @@ #include "chrome/browser/policy/cloud/policy_header_service_factory.h" #include "base/memory/scoped_ptr.h" +#include "build/build_config.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/profiles/profile.h" #include "components/keyed_service/content/browser_context_dependency_manager.h" diff --git a/chrome/browser/policy/cloud/policy_header_service_factory.h b/chrome/browser/policy/cloud/policy_header_service_factory.h index f81ec93..22bee05 100644 --- a/chrome/browser/policy/cloud/policy_header_service_factory.h +++ b/chrome/browser/policy/cloud/policy_header_service_factory.h @@ -5,6 +5,7 @@ #ifndef CHROME_BROWSER_POLICY_CLOUD_POLICY_HEADER_SERVICE_FACTORY_H_ #define CHROME_BROWSER_POLICY_CLOUD_POLICY_HEADER_SERVICE_FACTORY_H_ +#include "base/macros.h" #include "base/memory/singleton.h" #include "components/keyed_service/content/browser_context_keyed_service_factory.h" diff --git a/chrome/browser/policy/cloud/remote_commands_invalidator_unittest.cc b/chrome/browser/policy/cloud/remote_commands_invalidator_unittest.cc index e1da6ef..b18930b 100644 --- a/chrome/browser/policy/cloud/remote_commands_invalidator_unittest.cc +++ b/chrome/browser/policy/cloud/remote_commands_invalidator_unittest.cc @@ -4,6 +4,7 @@ #include "chrome/browser/policy/cloud/remote_commands_invalidator.h" +#include "base/macros.h" #include "base/message_loop/message_loop.h" #include "base/run_loop.h" #include "chrome/browser/invalidation/fake_invalidation_service.h" diff --git a/chrome/browser/policy/cloud/test_request_interceptor.cc b/chrome/browser/policy/cloud/test_request_interceptor.cc index 458fc06..d1da15a 100644 --- a/chrome/browser/policy/cloud/test_request_interceptor.cc +++ b/chrome/browser/policy/cloud/test_request_interceptor.cc @@ -10,6 +10,7 @@ #include "base/bind.h" #include "base/bind_helpers.h" +#include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "base/run_loop.h" #include "base/sequenced_task_runner.h" diff --git a/chrome/browser/policy/cloud/test_request_interceptor.h b/chrome/browser/policy/cloud/test_request_interceptor.h index 858af64..e3539e2 100644 --- a/chrome/browser/policy/cloud/test_request_interceptor.h +++ b/chrome/browser/policy/cloud/test_request_interceptor.h @@ -5,10 +5,12 @@ #ifndef CHROME_BROWSER_POLICY_CLOUD_TEST_REQUEST_INTERCEPTOR_H_ #define CHROME_BROWSER_POLICY_CLOUD_TEST_REQUEST_INTERCEPTOR_H_ +#include <stddef.h> + #include <string> -#include "base/basictypes.h" #include "base/callback.h" +#include "base/macros.h" #include "base/memory/ref_counted.h" #include "policy/proto/device_management_backend.pb.h" diff --git a/chrome/browser/policy/cloud/user_cloud_policy_invalidator.cc b/chrome/browser/policy/cloud/user_cloud_policy_invalidator.cc index 76953a4..95784b642 100644 --- a/chrome/browser/policy/cloud/user_cloud_policy_invalidator.cc +++ b/chrome/browser/policy/cloud/user_cloud_policy_invalidator.cc @@ -8,6 +8,7 @@ #include "base/memory/scoped_ptr.h" #include "base/thread_task_runner_handle.h" #include "base/time/default_clock.h" +#include "build/build_config.h" #include "chrome/browser/chrome_notification_types.h" #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" #include "components/invalidation/impl/profile_invalidation_provider.h" diff --git a/chrome/browser/policy/cloud/user_cloud_policy_invalidator.h b/chrome/browser/policy/cloud/user_cloud_policy_invalidator.h index 82e19ed..eb1de93 100644 --- a/chrome/browser/policy/cloud/user_cloud_policy_invalidator.h +++ b/chrome/browser/policy/cloud/user_cloud_policy_invalidator.h @@ -5,6 +5,7 @@ #ifndef CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_INVALIDATOR_H_ #define CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_INVALIDATOR_H_ +#include "base/macros.h" #include "chrome/browser/policy/cloud/cloud_policy_invalidator.h" #include "components/keyed_service/core/keyed_service.h" #include "content/public/browser/notification_observer.h" diff --git a/chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.cc b/chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.cc index 9ef12e4..93c608a 100644 --- a/chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.cc +++ b/chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.cc @@ -4,6 +4,7 @@ #include "chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.h" +#include "build/build_config.h" #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" #include "chrome/browser/policy/cloud/user_cloud_policy_invalidator.h" #include "chrome/browser/profiles/profile.h" diff --git a/chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.h b/chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.h index bbb9004..7ea3d27 100644 --- a/chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.h +++ b/chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.h @@ -5,6 +5,7 @@ #ifndef CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_INVALIDATOR_FACTORY_H_ #define CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_INVALIDATOR_FACTORY_H_ +#include "base/macros.h" #include "base/memory/singleton.h" #include "components/keyed_service/content/browser_context_keyed_service_factory.h" diff --git a/chrome/browser/policy/cloud/user_cloud_policy_manager_factory.cc b/chrome/browser/policy/cloud/user_cloud_policy_manager_factory.cc index e2bec6f..867e06b 100644 --- a/chrome/browser/policy/cloud/user_cloud_policy_manager_factory.cc +++ b/chrome/browser/policy/cloud/user_cloud_policy_manager_factory.cc @@ -6,6 +6,7 @@ #include "base/files/file_path.h" #include "base/logging.h" +#include "base/macros.h" #include "base/sequenced_task_runner.h" #include "base/thread_task_runner_handle.h" #include "chrome/browser/policy/schema_registry_service.h" diff --git a/chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h b/chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h index 3ae0414..0f85de9 100644 --- a/chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h +++ b/chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h @@ -7,7 +7,7 @@ #include <map> -#include "base/basictypes.h" +#include "base/macros.h" #include "base/memory/ref_counted.h" #include "base/memory/singleton.h" #include "components/keyed_service/content/browser_context_keyed_base_factory.h" diff --git a/chrome/browser/policy/cloud/user_policy_signin_service.h b/chrome/browser/policy/cloud/user_policy_signin_service.h index 6c0b0e3..fea47f9 100644 --- a/chrome/browser/policy/cloud/user_policy_signin_service.h +++ b/chrome/browser/policy/cloud/user_policy_signin_service.h @@ -7,8 +7,8 @@ #include <string> -#include "base/basictypes.h" #include "base/compiler_specific.h" +#include "base/macros.h" #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" #include "chrome/browser/policy/cloud/user_policy_signin_service_base.h" diff --git a/chrome/browser/policy/cloud/user_policy_signin_service_base.cc b/chrome/browser/policy/cloud/user_policy_signin_service_base.cc index df3abca..ce937c2 100644 --- a/chrome/browser/policy/cloud/user_policy_signin_service_base.cc +++ b/chrome/browser/policy/cloud/user_policy_signin_service_base.cc @@ -8,6 +8,7 @@ #include "base/location.h" #include "base/single_thread_task_runner.h" #include "base/thread_task_runner_handle.h" +#include "build/build_config.h" #include "chrome/browser/chrome_notification_types.h" #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" #include "chrome/browser/profiles/profile.h" diff --git a/chrome/browser/policy/cloud/user_policy_signin_service_base.h b/chrome/browser/policy/cloud/user_policy_signin_service_base.h index 2248d9c..9e0cf6c2 100644 --- a/chrome/browser/policy/cloud/user_policy_signin_service_base.h +++ b/chrome/browser/policy/cloud/user_policy_signin_service_base.h @@ -7,9 +7,9 @@ #include <string> -#include "base/basictypes.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/chrome/browser/policy/cloud/user_policy_signin_service_factory.cc b/chrome/browser/policy/cloud/user_policy_signin_service_factory.cc index 40e831e..70c580b 100644 --- a/chrome/browser/policy/cloud/user_policy_signin_service_factory.cc +++ b/chrome/browser/policy/cloud/user_policy_signin_service_factory.cc @@ -6,6 +6,7 @@ #include "base/memory/ref_counted.h" #include "base/prefs/pref_service.h" +#include "build/build_config.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" #include "chrome/browser/profiles/profile.h" diff --git a/chrome/browser/policy/cloud/user_policy_signin_service_factory.h b/chrome/browser/policy/cloud/user_policy_signin_service_factory.h index 4801b49..dcef00d 100644 --- a/chrome/browser/policy/cloud/user_policy_signin_service_factory.h +++ b/chrome/browser/policy/cloud/user_policy_signin_service_factory.h @@ -5,6 +5,7 @@ #ifndef CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_FACTORY_H_ #define CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_FACTORY_H_ +#include "base/macros.h" #include "base/memory/singleton.h" #include "components/keyed_service/content/browser_context_keyed_service_factory.h" diff --git a/chrome/browser/policy/cloud/user_policy_signin_service_mobile.cc b/chrome/browser/policy/cloud/user_policy_signin_service_mobile.cc index ae35fd9..dec573e 100644 --- a/chrome/browser/policy/cloud/user_policy_signin_service_mobile.cc +++ b/chrome/browser/policy/cloud/user_policy_signin_service_mobile.cc @@ -11,6 +11,7 @@ #include "base/message_loop/message_loop.h" #include "base/prefs/pref_service.h" #include "base/time/time.h" +#include "build/build_config.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" #include "chrome/common/pref_names.h" diff --git a/chrome/browser/policy/cloud/user_policy_signin_service_mobile.h b/chrome/browser/policy/cloud/user_policy_signin_service_mobile.h index 56d6958..5828540 100644 --- a/chrome/browser/policy/cloud/user_policy_signin_service_mobile.h +++ b/chrome/browser/policy/cloud/user_policy_signin_service_mobile.h @@ -8,11 +8,12 @@ #include <string> #include <vector> -#include "base/basictypes.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" +#include "build/build_config.h" #include "chrome/browser/policy/cloud/user_policy_signin_service_base.h" class ProfileOAuth2TokenService; diff --git a/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc b/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc index 3295fc7..54628c2 100644 --- a/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc +++ b/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc @@ -8,6 +8,7 @@ #include "base/run_loop.h" #include "base/thread_task_runner_handle.h" #include "base/time/time.h" +#include "build/build_config.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/chrome_notification_types.h" #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" |
