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

Unified Diff: content/public/android/java/templates/native_libraries_array.h

Issue 59533009: Check library version and handle library load errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix BrowserStartupControllerTest Created 7 years, 1 month 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: content/public/android/java/templates/native_libraries_array.h
diff --git a/content/public/android/java/templates/native_libraries_array.h b/content/public/android/java/templates/native_libraries_array.h
index a86c574c6089ce4e1ef62cf47430cad4ef9f4e81..19d14f946a20a8a5a9baf0464175e144b8bf275d 100644
--- a/content/public/android/java/templates/native_libraries_array.h
+++ b/content/public/android/java/templates/native_libraries_array.h
@@ -6,3 +6,15 @@
// is compiled with no array defined, and then the build system creates a
// version of the file with the real list of libraries required (which changes
// based upon which .apk is being built).
+
+// The result of including this template in the NativeLibraries.template has to
+// compile. Since LIBRARIES is final in NativeLibraries.template we have to
+// initalize it with something to allow the resulting Java file to compile.
+// By including this file we will get:
+//
+// public static final String[] LIBRARIES
+// ={}
+// ;
+//
+// Which does compile.
+={}

Powered by Google App Engine
This is Rietveld 408576698