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

Issue 12464004: Handle LibraryLoader error from the renderer process. (Closed)

Created:
7 years, 9 months ago by Yaron
Modified:
7 years, 9 months ago
Reviewers:
Ted C, michaelbai, joth, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186610

Patch Set 1 #

Patch Set 2 : change to use ProcessInitException #

Total comments: 6

Patch Set 3 : define ANDROID #

Patch Set 4 : #

Patch Set 5 : rebase gypi #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -42 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M build/android/java_cpp_template.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/content.gyp View 1 2 chunks +13 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/app/LibraryLoader.java View 1 2 chunks +14 lines, -11 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/app/SandboxedProcessService.java View 1 2 3 4 2 chunks +9 lines, -4 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/common/ResultCodes.template View 1 3 1 chunk +13 lines, -0 lines 0 comments Download
M content/public/common/result_codes.h View 1 1 chunk +3 lines, -25 lines 0 comments Download
A content/public/common/result_codes_list.h View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Yaron
7 years, 9 months ago (2013-03-05 18:38:45 UTC) #1
Ted C
lgtm
7 years, 9 months ago (2013-03-05 18:41:04 UTC) #2
Yaron
joth: aw jam: content/public changes (for making ResultCodes available to Java) Updated based on Michael ...
7 years, 9 months ago (2013-03-05 21:30:19 UTC) #3
michaelbai
https://codereview.chromium.org/12464004/diff/3001/content/public/common/result_codes_list.h File content/public/common/result_codes_list.h (right): https://codereview.chromium.org/12464004/diff/3001/content/public/common/result_codes_list.h#newcode30 content/public/common/result_codes_list.h:30: // Failed to register JNI methods. (Android) Did you ...
7 years, 9 months ago (2013-03-05 21:44:59 UTC) #4
joth
aw/ lgtm with small comment... https://codereview.chromium.org/12464004/diff/3001/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java File android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java (right): https://codereview.chromium.org/12464004/diff/3001/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java#newcode40 android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java:40: throw new RuntimeException("Cannot initialize ...
7 years, 9 months ago (2013-03-05 21:49:53 UTC) #5
Yaron
https://codereview.chromium.org/12464004/diff/3001/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java File android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java (right): https://codereview.chromium.org/12464004/diff/3001/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java#newcode40 android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java:40: throw new RuntimeException("Cannot initialize WebView", e); On 2013/03/05 21:49:53, ...
7 years, 9 months ago (2013-03-05 22:05:04 UTC) #6
michaelbai
lgtm https://codereview.chromium.org/12464004/diff/3001/content/public/common/result_codes_list.h File content/public/common/result_codes_list.h (right): https://codereview.chromium.org/12464004/diff/3001/content/public/common/result_codes_list.h#newcode30 content/public/common/result_codes_list.h:30: // Failed to register JNI methods. (Android) Thanks ...
7 years, 9 months ago (2013-03-05 22:07:48 UTC) #7
michaelbai
Just realize another issue, you need put result_codes_list.h in template_deps, otherwise the java file wouldn't ...
7 years, 9 months ago (2013-03-05 22:16:44 UTC) #8
michaelbai
On 2013/03/05 22:16:44, michaelbai wrote: > Just realize another issue, you need put result_codes_list.h in ...
7 years, 9 months ago (2013-03-05 22:21:05 UTC) #9
jam
ugh, this doesn't look nice in the content api...
7 years, 9 months ago (2013-03-06 17:23:33 UTC) #10
Yaron
On 2013/03/06 17:23:33, jam wrote: > ugh, this doesn't look nice in the content api... ...
7 years, 9 months ago (2013-03-06 18:09:29 UTC) #11
jam
On 2013/03/06 18:09:29, Yaron wrote: > On 2013/03/06 17:23:33, jam wrote: > > ugh, this ...
7 years, 9 months ago (2013-03-06 23:54:23 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yfriedman@chromium.org/12464004/14002
7 years, 9 months ago (2013-03-07 00:47:12 UTC) #13
commit-bot: I haz the power
Failed to apply patch for build/android/java_cpp_template.gypi: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 9 months ago (2013-03-07 00:47:14 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yfriedman@chromium.org/12464004/21001
7 years, 9 months ago (2013-03-07 01:10:23 UTC) #15
commit-bot: I haz the power
7 years, 9 months ago (2013-03-07 04:12:19 UTC) #16
Message was sent while issue was closed.
Change committed as 186610

Powered by Google App Engine
This is Rietveld 408576698