Index: chrome/android/BUILD.gn |
diff --git a/chrome/android/BUILD.gn b/chrome/android/BUILD.gn |
index f28cb920f3413b9f8138ae688748c4d506600dbb..98e2856ac492180e1390c25e5b03987d0ebd4f66 100644 |
--- a/chrome/android/BUILD.gn |
+++ b/chrome/android/BUILD.gn |
@@ -198,6 +198,13 @@ shared_library("chrome_shell") { |
deps = [ |
":chrome_shell_base", |
] |
+ # GYP: via base/files/protect_file_posix.gypi |
+ # TODO(pasko): Remove this non-trivial linker wrapping as soon as |
+ # crbug.com/424562 is fixed. |
+ if (!is_component_build) { |
+ ldflags = [ "-Wl,--wrap=close" ] |
+ deps += [ "//base:protect_file_posix" ] |
+ } |
} |
# GYP: //chrome/chrome_shell.gypi:libchromesyncshell |