From 0ffeb598304f119e2d3df70d47a592d2dbc722da Mon Sep 17 00:00:00 2001 From: "sanjeevr@chromium.org" Date: Thu, 20 Jan 2011 23:19:33 +0000 Subject: Code to send diagnostic messages about cloud print proxy. Currently diagnostic messages are sent if the print system fails to initialize (this can happen on Windows if the XPS Framework is not installed on XP) as well when printer registration fails because we could not get the capabilities for the printer. BUG=None TEST=None Review URL: http://codereview.chromium.org/6245005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72037 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/service/service_process_control.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chrome/browser/service') diff --git a/chrome/browser/service/service_process_control.cc b/chrome/browser/service/service_process_control.cc index 0ca4729..756c919 100644 --- a/chrome/browser/service/service_process_control.cc +++ b/chrome/browser/service/service_process_control.cc @@ -4,6 +4,7 @@ #include "chrome/browser/service/service_process_control.h" +#include "app/app_switches.h" #include "base/command_line.h" #include "base/file_path.h" #include "base/process_util.h" @@ -215,6 +216,9 @@ void ServiceProcessControl::Launch(Task* success_task, Task* failure_task) { cmd_line->AppendSwitch(switches::kWaitForDebugger); } + std::string locale = g_browser_process->GetApplicationLocale(); + cmd_line->AppendSwitchASCII(switches::kLang, locale); + // And then start the process asynchronously. launcher_ = new Launcher(this, cmd_line); launcher_->Run( -- cgit v1.1