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

Issue 2809293005: android: assert runningOnLauncherThread (Closed)

Created:
3 years, 8 months ago by boliu
Modified:
3 years, 8 months ago
Reviewers:
Maria
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, Peter Beverloo, jam, darin-cc_chromium.org, agrieve+watch_chromium.org, jochen+watch_chromium.org, Jay Civelli
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

android: assert runningOnLauncherThread This change is meant to have no production impact. Add assert to methods that already only running on launcher thread in production. This involves a lot of changes in tests though since test often assume things are thread safe. This includes moving some helper methods from ChildProcessLauncherTest to ChildProcessLauncherTestHelperService so they can be shared. Also take this opportunity to move a bunch of ForTesting methods from ChildProcessLauncher to actual test file. This does involve exposing other things and marking them as @VisibleForTesting, but imo removing stuff from ChildProcessLauncher is a good thing. BUG=689758 Review-Url: https://codereview.chromium.org/2809293005 Cr-Commit-Position: refs/heads/master@{#464498} Committed: https://chromium.googlesource.com/chromium/src/+/06114d78b56a1f73eeede3514c06bcb0aa33a942

Patch Set 1 #

Patch Set 2 : one more assert #

Patch Set 3 : assert #

Total comments: 1

Messages

Total messages: 10 (6 generated)
boliu
ptal can't land this yet, because the asserts in this CL made clear that native ...
3 years, 8 months ago (2017-04-12 23:00:17 UTC) #3
Maria
lgtm https://codereview.chromium.org/2809293005/diff/40001/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java File content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java (left): https://codereview.chromium.org/2809293005/diff/40001/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java#oldcode556 content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java:556: } yay for these things not being here!
3 years, 8 months ago (2017-04-12 23:38:15 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2809293005/40001
3 years, 8 months ago (2017-04-13 18:36:47 UTC) #7
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 19:22:31 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/06114d78b56a1f73eeede3514c06...

Powered by Google App Engine
This is Rietveld 408576698