Index: components/autofill/core/browser/BUILD.gn |
diff --git a/components/autofill/core/browser/BUILD.gn b/components/autofill/core/browser/BUILD.gn |
index 2d4c79e61efd753ecca4efbf6997077f7901cdb1..342d0aa6a62f9123b258ccede2f4c404068bdbda 100644 |
--- a/components/autofill/core/browser/BUILD.gn |
+++ b/components/autofill/core/browser/BUILD.gn |
@@ -2,6 +2,17 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+import("//build/config/chrome_build.gni") |
+ |
+# This config sets the define that controls which Wallet service to contact |
+# for features using Wallet integration. Unofficial builds won't have the |
+# proper API keys so it uses the "sandbox" test servers instead. |
+config("wallet_service") { |
+ if (is_official_build) { |
+ defines = [ "ENABLE_PROD_WALLET_SERVICE=1" ] |
+ } |
+} |
+ |
# GYP version: components/autofill.gyp:autofill_core_browser |
static_library("browser") { |
sources = [ |
@@ -148,7 +159,10 @@ static_library("browser") { |
"//url", |
] |
- configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
+ configs += [ |
+ ":wallet_service", |
+ "//build/config/compiler:no_size_t_to_int_warning", |
+ ] |
if (is_mac) { |
libs = [ "AddressBook.framework" ] |