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

Issue 1828193002: DCHECK that jstring to C++ string conversions don't pass in null. (Closed)

Created:
4 years, 9 months ago by Bernhard Bauer
Modified:
4 years, 8 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DCHECK that jstring to C++ string conversions don't pass in null. Also, update existing callers to avoid the call if they would otherwise trip the DCHECK now. BUG=597564 Committed: https://crrev.com/f6d2732a2b81694b3d7ee47affaa6a22ee405cf9 Cr-Commit-Position: refs/heads/master@{#384010}

Patch Set 1 #

Patch Set 2 : fixes? #

Patch Set 3 : fix #

Patch Set 4 : fix #

Patch Set 5 : fix all the things #

Total comments: 4

Patch Set 6 : braces #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -72 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M base/android/content_uri_utils.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M base/android/jni_string.cc View 2 chunks +2 lines, -10 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuHelper.java View 1 2 3 4 3 chunks +2 lines, -6 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/android/data_usage/data_use_tab_ui_manager_android.cc View 1 2 3 5 chunks +48 lines, -34 lines 0 comments Download
M chrome/browser/android/tab_android.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/prerender/external_prerender_handler_android.cc View 1 2 3 4 5 7 chunks +19 lines, -10 lines 0 comments Download
M chrome/browser/ui/android/context_menu_helper.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/android/context_menu_helper.cc View 1 2 3 4 2 chunks +11 lines, -8 lines 0 comments Download
M components/gcm_driver/gcm_driver_android.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M ui/android/java/src/org/chromium/ui/base/LocalizationUtils.java View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 27 (12 generated)
Bernhard Bauer
Please review. Thanks!
4 years, 9 months ago (2016-03-24 12:13:05 UTC) #3
Torne
Making this a DCHECK and then not handling it at all means we'll be crashing ...
4 years, 9 months ago (2016-03-24 14:25:47 UTC) #4
Bernhard Bauer
On 2016/03/24 14:25:47, Torne wrote: > Making this a DCHECK and then not handling it ...
4 years, 9 months ago (2016-03-24 14:46:10 UTC) #5
Torne
lgtm
4 years, 9 months ago (2016-03-24 14:51:40 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1828193002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1828193002/1
4 years, 9 months ago (2016-03-24 14:53:40 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/43012)
4 years, 9 months ago (2016-03-24 18:18:26 UTC) #10
Bernhard Bauer
Miguel: Please review (/chrome/browser)/ui/android changes. Matt: Please review prerender changes. Peter: Please review GCM changes. ...
4 years, 8 months ago (2016-03-30 13:45:19 UTC) #13
Peter Beverloo
On 2016/03/30 13:45:19, Bernhard Bauer wrote: > Miguel: Please review (/chrome/browser)/ui/android changes. > Matt: Please ...
4 years, 8 months ago (2016-03-30 13:47:26 UTC) #14
Miguel Garcia
chrome/browser/ui/android/ lgtm https://codereview.chromium.org/1828193002/diff/80001/chrome/browser/ui/android/context_menu_helper.cc File chrome/browser/ui/android/context_menu_helper.cc (right): https://codereview.chromium.org/1828193002/diff/80001/chrome/browser/ui/android/context_menu_helper.cc#newcode33 chrome/browser/ui/android/context_menu_helper.cc:33: const char kDataReductionProxyPassthroughHeader[] = can you at ...
4 years, 8 months ago (2016-03-30 14:30:12 UTC) #15
Bernhard Bauer
https://codereview.chromium.org/1828193002/diff/80001/chrome/browser/ui/android/context_menu_helper.cc File chrome/browser/ui/android/context_menu_helper.cc (right): https://codereview.chromium.org/1828193002/diff/80001/chrome/browser/ui/android/context_menu_helper.cc#newcode33 chrome/browser/ui/android/context_menu_helper.cc:33: const char kDataReductionProxyPassthroughHeader[] = On 2016/03/30 14:30:12, Miguel Garcia ...
4 years, 8 months ago (2016-03-30 14:43:45 UTC) #16
mmenke
LGTM, modulo comment. https://codereview.chromium.org/1828193002/diff/80001/chrome/browser/prerender/external_prerender_handler_android.cc File chrome/browser/prerender/external_prerender_handler_android.cc (right): https://codereview.chromium.org/1828193002/diff/80001/chrome/browser/prerender/external_prerender_handler_android.cc#newcode71 chrome/browser/prerender/external_prerender_handler_android.cc:71: if (!jreferrer.is_null()) { None of these ...
4 years, 8 months ago (2016-03-30 14:52:58 UTC) #17
Bernhard Bauer
https://codereview.chromium.org/1828193002/diff/80001/chrome/browser/prerender/external_prerender_handler_android.cc File chrome/browser/prerender/external_prerender_handler_android.cc (right): https://codereview.chromium.org/1828193002/diff/80001/chrome/browser/prerender/external_prerender_handler_android.cc#newcode71 chrome/browser/prerender/external_prerender_handler_android.cc:71: if (!jreferrer.is_null()) { On 2016/03/30 14:52:57, mmenke wrote: > ...
4 years, 8 months ago (2016-03-30 15:52:09 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1828193002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1828193002/100001
4 years, 8 months ago (2016-03-30 15:53:43 UTC) #23
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 8 months ago (2016-03-30 17:03:03 UTC) #25
commit-bot: I haz the power
4 years, 8 months ago (2016-03-30 17:04:14 UTC) #27
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/f6d2732a2b81694b3d7ee47affaa6a22ee405cf9
Cr-Commit-Position: refs/heads/master@{#384010}

Powered by Google App Engine
This is Rietveld 408576698