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

Issue 1552333002: Resubmit Supervised user web restrictions content provider (Closed)

Created:
4 years, 11 months ago by aberent
Modified:
4 years, 11 months ago
CC:
chromium-reviews, pam+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Resubmit Supervised user web restrictions content provider This resubmits https://codereview.chromium.org/1452603002/ which was reverted by https://codereview.chromium.org/1539653002/ The previous version of SupervisedUserContentProviderUnitTest was using Java Thread objects, which seems to confuse Robolectric. I have now removed this, which slightly reduces the coverage of the tests (it no longer tests that the threading is correct) but allows them to run. TBR=jochen@chromium.org BUG=570768 Committed: https://crrev.com/ec7d1d143650ceef3969c9181b8e7fe4f9d6b820 Cr-Commit-Position: refs/heads/master@{#367512}

Patch Set 1 : Copy of original CL (base for comparison) #

Total comments: 2

Patch Set 2 : Update tests to avoid Robolectric issues #

Total comments: 2

Patch Set 3 : Remove incorrect TODO #

Patch Set 4 : Manual rebase to fix merge problem #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1001 lines, -19 lines) Patch
M chrome/android/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/android/java/AndroidManifest.xml View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/android/java/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java View 3 chunks +7 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java View 1 2 1 chunk +178 lines, -0 lines 0 comments Download
M chrome/android/javatests/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProviderTest.java View 1 chunk +112 lines, -0 lines 0 comments Download
A chrome/android/junit/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProviderUnitTest.java View 1 1 chunk +132 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/android/preferences/pref_service_bridge.cc View 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/browser/supervised_user/supervised_user_content_provider_android.h View 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/browser/supervised_user/supervised_user_content_provider_android.cc View 1 chunk +141 lines, -0 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_interstitial.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_interstitial.cc View 1 2 3 3 chunks +16 lines, -10 lines 0 comments Download
M chrome/chrome.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M components/components.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 2 chunks +3 lines, -1 line 0 comments Download
A + components/web_restriction.gypi View 1 chunk +8 lines, -7 lines 0 comments Download
A components/web_restriction/BUILD.gn View 1 chunk +20 lines, -0 lines 0 comments Download
A + components/web_restriction/OWNERS View 1 chunk +1 line, -1 line 0 comments Download
A components/web_restriction/java/src/org/chromium/components/webrestriction/WebRestrictionsContentProvider.java View 1 chunk +178 lines, -0 lines 0 comments Download
A components/web_restriction/junit/src/org/chromium/components/webrestriction/WebRestrictionsContentProviderTest.java View 1 chunk +121 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (10 generated)
aberent
bauerb@chromium.org: Please review changes to SupervisedUserContentProviderUnitTest and SupervisedUserContentProvider. Everything else is identical to the previous ...
4 years, 11 months ago (2016-01-04 20:03:45 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1552333002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1552333002/20001
4 years, 11 months ago (2016-01-04 20:07:18 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-05 00:40:43 UTC) #6
Bernhard Bauer
https://codereview.chromium.org/1552333002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java File chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java (right): https://codereview.chromium.org/1552333002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java#newcode69 chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java:69: assert !ThreadUtils.runningOnUiThread(); Actually... if everything but this works without ...
4 years, 11 months ago (2016-01-05 10:22:32 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1552333002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1552333002/40001
4 years, 11 months ago (2016-01-05 10:48:26 UTC) #9
aberent
https://codereview.chromium.org/1552333002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java File chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java (right): https://codereview.chromium.org/1552333002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java#newcode69 chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java:69: assert !ThreadUtils.runningOnUiThread(); On 2016/01/05 10:22:32, bauerb catching up on ...
4 years, 11 months ago (2016-01-05 10:48:38 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/97916) chromeos_daisy_chromium_compile_only_ng on ...
4 years, 11 months ago (2016-01-05 10:50:42 UTC) #12
Bernhard Bauer
LGTM!
4 years, 11 months ago (2016-01-05 10:51:01 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1552333002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1552333002/60001
4 years, 11 months ago (2016-01-05 11:21:47 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 11 months ago (2016-01-05 13:04:55 UTC) #19
commit-bot: I haz the power
4 years, 11 months ago (2016-01-05 13:05:44 UTC) #21
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ec7d1d143650ceef3969c9181b8e7fe4f9d6b820
Cr-Commit-Position: refs/heads/master@{#367512}

Powered by Google App Engine
This is Rietveld 408576698