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

Unified Diff: device/battery/android/BUILD.gn

Issue 592153002: Replace Chrome IPC with Mojo IPC for querying BatteryStatus service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Tim's comments. Created 6 years, 3 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
Index: device/battery/android/BUILD.gn
diff --git a/third_party/instrumented_libraries/scripts/pulseaudio.sh b/device/battery/android/BUILD.gn
old mode 100755
new mode 100644
similarity index 51%
copy from third_party/instrumented_libraries/scripts/pulseaudio.sh
copy to device/battery/android/BUILD.gn
index da9aa667a349a51f9253fe4d6079a130979ae5e6..f88cfc0b3deee30d6e91850be43bee8cc5a8f7c6
--- a/third_party/instrumented_libraries/scripts/pulseaudio.sh
+++ b/device/battery/android/BUILD.gn
@@ -1,9 +1,13 @@
-#!/bin/bash
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-# This script does some preparations before build of instrumented pulseaudio.
+import("//build/config/android/config.gni")
+import("//build/config/android/rules.gni")
-# The configure script enforces FORTIFY_SOURCE=2, but we can't live with that.
-sed -i "s/-D_FORTIFY_SOURCE=2/-U_FORTIFY_SOURCE/g" ./configure
+generate_jni("battery_jni_headers") {
+ jni_package = "battery"
+ sources = [
+ "java/src/org/chromium/device/battery/BatteryStatusManager.java",
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698