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

Unified Diff: services/shell/runner/host/native_application_support.cc

Issue 2276133002: mojo_runner: Use prefer_own_symbols when loading DSOs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@native-library-local-symbols
Patch Set: rebase Created 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/runner/host/native_application_support.cc
diff --git a/services/shell/runner/host/native_application_support.cc b/services/shell/runner/host/native_application_support.cc
index 829adf13c0e0a34a49a99fab2e05e335168aa987..f6ce0ecb47d974b743170be4c8744dcbd45b761a 100644
--- a/services/shell/runner/host/native_application_support.cc
+++ b/services/shell/runner/host/native_application_support.cc
@@ -41,8 +41,12 @@ bool SetThunks(Thunks (*make_thunks)(),
base::NativeLibrary LoadNativeApplication(const base::FilePath& app_path) {
DVLOG(2) << "Loading Mojo app in process from library: " << app_path.value();
+ base::NativeLibraryOptions options;
+ options.prefer_own_symbols = true;
+
base::NativeLibraryLoadError error;
- base::NativeLibrary app_library = base::LoadNativeLibrary(app_path, &error);
+ base::NativeLibrary app_library = base::LoadNativeLibraryWithOptions(
+ app_path, options, &error);
LOG_IF(ERROR, !app_library)
<< "Failed to load app library (path: " << app_path.value()
<< " reason: " << error.ToString() << ")";
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698