Index: chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc |
diff --git a/chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc b/chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc |
index 430c311c4562214b312fd23303ab9372d03e0691..ad55fa3e8e812b370ddefa39f471a0cd66072848 100644 |
--- a/chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc |
+++ b/chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc |
@@ -18,6 +18,7 @@ |
#include "components/sync_driver/data_type_controller.h" |
#include "content/public/test/test_browser_thread.h" |
#include "testing/gtest/include/gtest/gtest.h" |
+#include "ui/app_list/app_list_switches.h" |
using browser_sync::DataTypeController; |
using content::BrowserThread; |
@@ -38,7 +39,8 @@ class ProfileSyncComponentsFactoryImplTest : public testing::Test { |
std::vector<syncer::ModelType> datatypes; |
datatypes.push_back(syncer::APPS); |
#if defined(ENABLE_APP_LIST) |
- datatypes.push_back(syncer::APP_LIST); |
+ if (app_list::switches::IsAppListSyncEnabled()) |
+ datatypes.push_back(syncer::APP_LIST); |
#endif |
datatypes.push_back(syncer::APP_SETTINGS); |
datatypes.push_back(syncer::AUTOFILL); |