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

Unified Diff: content/browser/plugin_process_host.cc

Issue 22750002: Move AlterEnvironment to base/environment.h, implement on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win Created 7 years, 4 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 | « content/browser/gpu/gpu_process_host.cc ('k') | content/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/plugin_process_host.cc
diff --git a/content/browser/plugin_process_host.cc b/content/browser/plugin_process_host.cc
index bffd16ef50e60bec71898606cc116a8cf003b91c..0e7dffbce57208fb0091a98e493efda4d61c9794 100644
--- a/content/browser/plugin_process_host.cc
+++ b/content/browser/plugin_process_host.cc
@@ -220,7 +220,7 @@ bool PluginProcessHost::Init(const WebPluginInfo& info) {
cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id);
#if defined(OS_POSIX)
- base::EnvironmentVector env;
+ base::EnvironmentMap env;
#if defined(OS_MACOSX) && !defined(__LP64__)
if (!browser_command_line.HasSwitch(switches::kDisableCarbonInterposing)) {
std::string interpose_list = GetContentClient()->GetCarbonInterposePath();
@@ -233,8 +233,7 @@ bool PluginProcessHost::Init(const WebPluginInfo& info) {
interpose_list.insert(0, existing_list);
}
}
- env.push_back(std::pair<std::string, std::string>(
- kDYLDInsertLibrariesKey, interpose_list));
+ env[kDYLDInsertLibrariesKey] = interpose_list;
}
#endif
#endif
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698