Chromium Code Reviews

Unified Diff: chrome/browser/utility_process_host.cc

Issue 337041: Fix bug where many extensions don't install due to sandbox. (Closed)
Patch Set: Attempt to fix a deps issue Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: chrome/browser/utility_process_host.cc
diff --git a/chrome/browser/utility_process_host.cc b/chrome/browser/utility_process_host.cc
index 0e446883f55ac36b3d859d8c4685d8f1770edba0..95729b0da568c26494931d5a6c90116b57f716d0 100644
--- a/chrome/browser/utility_process_host.cc
+++ b/chrome/browser/utility_process_host.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/utility_process_host.h"
+#include "app/app_switches.h"
+#include "app/l10n_util.h"
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/message_loop.h"
@@ -89,6 +91,10 @@ bool UtilityProcessHost::StartProcess(const FilePath& exposed_dir) {
switches::kUtilityProcess);
cmd_line.AppendSwitchWithValue(switches::kProcessChannelID,
ASCIIToWide(channel_id()));
+ // Pass on the browser locale.
+ std::string locale = l10n_util::GetApplicationLocale(L"");
+ cmd_line.AppendSwitchWithValue(switches::kLang, ASCIIToWide(locale));
+
SetCrashReporterCommandLine(&cmd_line);
base::ProcessHandle process;

Powered by Google App Engine