summaryrefslogtreecommitdiffstats
path: root/build/android/java_cpp_template.gypi
diff options
context:
space:
mode:
authoryfriedman@chromium.org <yfriedman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-07 04:12:13 +0000
committeryfriedman@chromium.org <yfriedman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-07 04:12:13 +0000
commitf804551d543ddbe59a1d216a30b217a90ca5a910 (patch)
treecc6df91b8cfb6be51cf73ff5c47a3760317aeb82 /build/android/java_cpp_template.gypi
parent2362015c5ba54deae8e362ed55aa3aa2ecb3a449 (diff)
downloadchromium_src-f804551d543ddbe59a1d216a30b217a90ca5a910.zip
chromium_src-f804551d543ddbe59a1d216a30b217a90ca5a910.tar.gz
chromium_src-f804551d543ddbe59a1d216a30b217a90ca5a910.tar.bz2
Handle LibraryLoader error from the renderer process.
If we fail to load the library in the renderer process, just abort early. This prevents an extra user-visible dialog that Chrome has crashed. Note that we currently assume the browser process hits the same error and will prompt the user. If this only happens for the renderer process we'd end up with a hung tab, but it's not clear how that would happen. As part of this, convert the RESULT_CODES enum to be generated from a template so that we can re-use the same values for C++ and Java BUG=180054 Review URL: https://chromiumcodereview.appspot.com/12464004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186610 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/android/java_cpp_template.gypi')
-rw-r--r--build/android/java_cpp_template.gypi1
1 files changed, 1 insertions, 0 deletions
diff --git a/build/android/java_cpp_template.gypi b/build/android/java_cpp_template.gypi
index 22b7214..c55b100 100644
--- a/build/android/java_cpp_template.gypi
+++ b/build/android/java_cpp_template.gypi
@@ -56,6 +56,7 @@
'action': [
'gcc', # invoke host gcc.
'-E', # stop after preprocessing.
+ '-D', 'ANDROID', # Specify ANDROID define for pre-processor.
'-x', 'c-header', # treat sources as C header files
'-P', # disable line markers, i.e. '#line 309'
'-I', '<(DEPTH)', # Add project top-level to include path