Commit f81b7c52 authored by Xing Liu's avatar Xing Liu Committed by Commit Bot

Chime DFM: Select the downstream DFM hook if possible.

The actual Chime implementation glue code lives in downstream. The
public Chrome apk or app bundle only builds an empty one. We use
enable_chrome_android_internal to select the correct build target.

Bug: 1013386
Change-Id: Iddde5fa2c466724c94bee504abc72b0facd39b1d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1872721Reviewed-by: default avatarDavid Trainor <dtrainor@chromium.org>
Reviewed-by: default avatarHesen Zhang <hesen@chromium.org>
Commit-Queue: Xing Liu <xingliu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#708468}
parent 492a7f00
...@@ -2,15 +2,22 @@ ...@@ -2,15 +2,22 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
import("//build/config/android/config.gni")
declare_args() { declare_args() {
# Whether to integrate Chime notification SDK into Chrome.
use_chime_android_sdk = false use_chime_android_sdk = false
} }
# TODO(xingliu): Use enable_chrome_android_internal to select the downstream impl.
chime_module_desc = { chime_module_desc = {
name = "chime" name = "chime"
android_manifest = android_manifest =
"//chrome/android/modules/chime/internal/java/AndroidManifest.xml" "//chrome/android/modules/chime/internal/java/AndroidManifest.xml"
java_deps = [ "//chrome/android/modules/chime/internal:java" ] # The actual SDK lives in a DFM in downstream.
if (enable_chrome_android_internal) {
java_deps = [ "//clank/features/chime:chime_dfm_java" ]
} else {
java_deps = [ "//chrome/android/modules/chime/internal:java" ]
}
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment