Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Unified Diff: chrome/browser/browser_main.cc

Issue 7282054: Remove more unnecessary ChromeURLRequestContext members. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix copyright and chormeos tests. Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/browsing_data_appcache_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
« no previous file with comments | « no previous file | chrome/browser/browsing_data_appcache_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698