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

Unified Diff: components/autofill/core/browser/BUILD.gn

Issue 1129293003: Sync defines with the GYP build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « components/autofill/content/browser/BUILD.gn ('k') | third_party/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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" ]
« no previous file with comments | « components/autofill/content/browser/BUILD.gn ('k') | third_party/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698