| Index: chrome/browser/chrome_browser_main.cc
|
| diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
|
| index b509e20670fb4fb623f76565cb0a90dbb08056be..e957db2e8ac09efa1cd141e0c3db3cb106753229 100644
|
| --- a/chrome/browser/chrome_browser_main.cc
|
| +++ b/chrome/browser/chrome_browser_main.cc
|
| @@ -108,6 +108,7 @@
|
| #include "components/rappor/rappor_service.h"
|
| #include "components/signin/core/common/profile_management_switches.h"
|
| #include "components/startup_metric_utils/startup_metric_utils.h"
|
| +#include "components/translate/content/browser/browser_cld_utils.h"
|
| #include "components/translate/content/common/cld_data_source.h"
|
| #include "components/translate/core/browser/translate_download_manager.h"
|
| #include "components/variations/variations_http_header_provider.h"
|
| @@ -407,7 +408,7 @@ void RegisterComponentsForUpdate() {
|
| #endif
|
| #endif
|
|
|
| - if (translate::CldDataSource::ShouldRegisterForComponentUpdates()) {
|
| + if (translate::CldDataSource::Get()->ShouldRegisterForComponentUpdates()) {
|
| RegisterCldComponent(cus);
|
| }
|
|
|
| @@ -1465,6 +1466,10 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() {
|
| // http://crbug.com/105065.
|
| browser_process_->notification_ui_manager();
|
|
|
| + // This must be called prior to RegisterComponentsForUpdate, in case the CLD
|
| + // data source is based on the Component Updater.
|
| + translate::BrowserCldUtils::ConfigureDefaultDataProvider();
|
| +
|
| if (!parsed_command_line().HasSwitch(switches::kDisableComponentUpdate))
|
| RegisterComponentsForUpdate();
|
|
|
|
|