Index: chrome/browser/BUILD.gn |
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn |
index 84342d1a1a7a5e56a4d7de32378453835bee58f9..38caebe2470e3c40cbb597493f3606d5189a3770 100644 |
--- a/chrome/browser/BUILD.gn |
+++ b/chrome/browser/BUILD.gn |
@@ -3442,8 +3442,6 @@ split_static_library("browser") { |
"media/webrtc/window_icon_util_x11.cc", |
"password_manager/native_backend_kwallet_x.cc", |
"password_manager/native_backend_kwallet_x.h", |
- "password_manager/native_backend_libsecret.cc", |
- "password_manager/native_backend_libsecret.h", |
"platform_util_linux.cc", |
"shell_integration_linux.cc", |
"shell_integration_linux.h", |
@@ -3452,8 +3450,14 @@ split_static_library("browser") { |
"themes/theme_service_aurax11.h", |
"web_applications/web_app_linux.cc", |
] |
- defines += [ "USE_LIBSECRET" ] |
- deps += [ "//third_party/libsecret" ] |
+ if (!use_ozone) { |
+ sources += [ |
+ "password_manager/native_backend_libsecret.cc", |
+ "password_manager/native_backend_libsecret.h", |
+ ] |
+ defines += [ "USE_LIBSECRET" ] |
+ deps += [ "//third_party/libsecret" ] |
+ } |
} |
if (enable_plugin_installation) { |