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

Unified Diff: chrome/utility/importer/firefox_importer_unittest_utils_mac.cc

Issue 2950153002: Improve process launch handle sharing API. (Closed)
Patch Set: Fix Created 3 years, 6 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: chrome/utility/importer/firefox_importer_unittest_utils_mac.cc
diff --git a/chrome/utility/importer/firefox_importer_unittest_utils_mac.cc b/chrome/utility/importer/firefox_importer_unittest_utils_mac.cc
index 53f3a7718d8bd6ad8e82231b253ce8cad5249fcd..cff0a8cfe8f321b18c65ede9465e1840ad25b936 100644
--- a/chrome/utility/importer/firefox_importer_unittest_utils_mac.cc
+++ b/chrome/utility/importer/firefox_importer_unittest_utils_mac.cc
@@ -55,13 +55,10 @@ base::Process LaunchNSSDecrypterChildProcess(
// why we need this.
base::LaunchOptions options;
options.environ["DYLD_FALLBACK_LIBRARY_PATH"] = nss_path.value();
-
- base::FileHandleMappingVector fds_to_map;
- fds_to_map.push_back(std::pair<int, int>(
+ options.fds_to_remap.push_back(std::pair<int, int>(
mojo_handle.get().handle,
kMojoIPCChannel + base::GlobalDescriptors::kBaseDescriptor));
- options.fds_to_remap = &fds_to_map;
return base::LaunchProcess(cl.argv(), options);
}

Powered by Google App Engine
This is Rietveld 408576698