Index: chrome/browser/ui/sync/profile_signin_confirmation_helper_unittest.cc |
diff --git a/chrome/browser/ui/sync/profile_signin_confirmation_helper_unittest.cc b/chrome/browser/ui/sync/profile_signin_confirmation_helper_unittest.cc |
index 895fa7b4d312a8c4d2834d208efefbca1c14f52d..177966ae54ff284a4377eb97d005a6d28ac2319e 100644 |
--- a/chrome/browser/ui/sync/profile_signin_confirmation_helper_unittest.cc |
+++ b/chrome/browser/ui/sync/profile_signin_confirmation_helper_unittest.cc |
@@ -33,6 +33,7 @@ |
#include "components/sync_preferences/testing_pref_service_syncable.h" |
#include "content/public/test/test_browser_thread_bundle.h" |
#include "content/public/test/test_utils.h" |
+#include "extensions/features/features.h" |
#include "testing/gmock/include/gmock/gmock.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -42,7 +43,7 @@ |
#include "chrome/browser/chromeos/settings/device_settings_service.h" |
#endif |
-#if defined(ENABLE_EXTENSIONS) |
+#if BUILDFLAG(ENABLE_EXTENSIONS) |
#include "chrome/browser/extensions/extension_service.h" |
#include "chrome/browser/extensions/test_extension_system.h" |
#include "chrome/common/extensions/extension_constants.h" |
@@ -91,7 +92,7 @@ class TestingPrefStoreWithCustomReadError : public TestingPrefStore { |
PrefReadError read_error_; |
}; |
-#if defined(ENABLE_EXTENSIONS) |
+#if BUILDFLAG(ENABLE_EXTENSIONS) |
#if defined(OS_WIN) |
const base::FilePath::CharType kExtensionFilePath[] = |
FILE_PATH_LITERAL("c:\\foo"); |
@@ -147,7 +148,7 @@ class ProfileSigninConfirmationHelperTest : public testing::Test { |
model_ = BookmarkModelFactory::GetForBrowserContext(profile_.get()); |
bookmarks::test::WaitForBookmarkModelToLoad(model_); |
ASSERT_TRUE(profile_->CreateHistoryService(true, false)); |
-#if defined(ENABLE_EXTENSIONS) |
+#if BUILDFLAG(ENABLE_EXTENSIONS) |
extensions::TestExtensionSystem* system = |
static_cast<extensions::TestExtensionSystem*>( |
extensions::ExtensionSystem::Get(profile_.get())); |
@@ -202,7 +203,7 @@ TEST_F(ProfileSigninConfirmationHelperTest, PromptForNewProfile_Bookmarks) { |
profile_.get()))); |
} |
-#if defined(ENABLE_EXTENSIONS) |
+#if BUILDFLAG(ENABLE_EXTENSIONS) |
TEST_F(ProfileSigninConfirmationHelperTest, PromptForNewProfile_Extensions) { |
ExtensionService* extensions = |
extensions::ExtensionSystem::Get(profile_.get())->extension_service(); |