Chromium Code Reviews| Index: chrome/browser/browser_main.cc |
| diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc |
| index 4615c720792ccf3d1f23975f9f4b87d8d136ffb9..e580e035403d792081c2205ec2777e31d1c3c2e1 100644 |
| --- a/chrome/browser/browser_main.cc |
| +++ b/chrome/browser/browser_main.cc |
| @@ -2008,8 +2008,14 @@ int BrowserMain(const MainFunctionParams& parameters) { |
| // If we're running tests (ui_task is non-null), then we don't want to |
| // call FetchLanguageListFromTranslateServer |
| - if (parameters.ui_task == NULL && translate_manager != NULL) |
| + if (parameters.ui_task == NULL && translate_manager != NULL) { |
| + // TODO(willchan): Get rid of this after TranslateManager doesn't use |
| + // the default request context. http://crbug.com/89396. |
| + // This is necessary to force |default_request_context_| to be |
| + // initialized. |
| + profile->GetRequestContext(); |
|
Dmitry Polukhin
2011/07/18 08:47:23
It looks like removing this line broke Chrome on C
Dmitry Polukhin
2011/07/18 09:06:12
This line is not guilty. But CL that broke Chrome
willchan no longer on Chromium
2011/07/18 10:20:32
I had encountered that stacktrace earlier in the C
|
| translate_manager->FetchLanguageListFromTranslateServer(user_prefs); |
| + } |
| RunUIMessageLoop(browser_process.get()); |
| } |