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

Unified Diff: content/browser/plugin_process_host.cc

Issue 9150016: Move creation and ownership of ResourceDispatcherHost and PluginService to content. This gives a ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix chromeos ui_tests Created 8 years, 11 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
Index: content/browser/plugin_process_host.cc
===================================================================
--- content/browser/plugin_process_host.cc (revision 117096)
+++ content/browser/plugin_process_host.cc (working copy)
@@ -164,8 +164,7 @@
CancelRequests();
}
-bool PluginProcessHost::Init(const webkit::WebPluginInfo& info,
- const std::string& locale) {
+bool PluginProcessHost::Init(const webkit::WebPluginInfo& info) {
info_ = info;
set_name(info_.name);
@@ -231,6 +230,8 @@
if (!plugin_launcher.empty())
cmd_line->PrependWrapper(plugin_launcher);
+ std::string locale =
+ content::GetContentClient()->browser()->GetApplicationLocale();
if (!locale.empty()) {
// Pass on the locale so the null plugin will use the right language in the
// prompt to install the desired plugin.

Powered by Google App Engine
This is Rietveld 408576698