Index: chrome/test/base/chrome_unit_test_suite.cc |
diff --git a/chrome/test/base/chrome_unit_test_suite.cc b/chrome/test/base/chrome_unit_test_suite.cc |
index d2911472c2d663da69f10cec6584ce0d48953164..2a886e2c7e9f59c6c8e61b67265af042788d09cf 100644 |
--- a/chrome/test/base/chrome_unit_test_suite.cc |
+++ b/chrome/test/base/chrome_unit_test_suite.cc |
@@ -15,6 +15,8 @@ |
#include "chrome/utility/chrome_content_utility_client.h" |
#include "components/component_updater/component_updater_paths.h" |
#include "components/omaha_query_params/omaha_query_params.h" |
+#include "components/translate/content/browser/browser_cld_data_provider_factory.h" |
+#include "components/translate/content/common/cld_data_source.h" |
#include "content/public/common/content_paths.h" |
#include "testing/gtest/include/gtest/gtest.h" |
#include "ui/base/resource/resource_bundle.h" |
@@ -124,6 +126,10 @@ void ChromeUnitTestSuite::InitializeProviders() { |
chrome::RegisterPathProvider(); |
content::RegisterPathProvider(); |
ui::RegisterPathProvider(); |
+ translate::BrowserCldDataProviderFactory::SetDefault( |
+ new translate::BrowserCldDataProviderFactory()); |
+ translate::CldDataSource::SetDefault( |
+ translate::CldDataSource::GetStaticDataSource()); |
component_updater::RegisterPathProvider(chrome::DIR_USER_DATA); |
#if defined(OS_CHROMEOS) |