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

Issue 1452603002: Supervised user web restrictions content provider (Closed)

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

Description

Supervised user web restrictions content provider The web restrictions content provider lets other apps query web restrictions. In particular it lets apps using WebView query Chrome's supervised user web restrictions. BUG=569879 Committed: https://crrev.com/d501894251559fe547bda9381bdeb98d229f6e7c Cr-Commit-Position: refs/heads/master@{#365834}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Update FYI - now added supervised user content provider implementation, but so far totally untested. #

Patch Set 3 : Add some tests #

Patch Set 4 : Snapshot (fails presubmit) for knn@'s testing. #

Patch Set 5 : Add instrumentation tests, and fix bugs found by them #

Patch Set 6 : Fix non-android builds #

Patch Set 7 : Add GN build #

Total comments: 1

Patch Set 8 : Add OWNERS file to new component #

Patch Set 9 : Add GN build of junit tests. #

Total comments: 31

Patch Set 10 : Respond to comments #

Total comments: 22

Patch Set 11 : Reply to more comments including changing interthread communication #

Total comments: 11

Patch Set 12 : Respond to more comments #

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

Messages

Total messages: 47 (20 generated)
aberent
Uploaded simply to make my proposed detailed interface visible. Only contains the abstract class so ...
5 years, 1 month ago (2015-11-16 15:52:16 UTC) #2
Bernhard Bauer
Drive-by nits! 😃 https://codereview.chromium.org/1452603002/diff/1/components/web_restrictions/android/java/src/org/chromium/components/web_restrictions/WebRestrictionsContentProvider.java File components/web_restrictions/android/java/src/org/chromium/components/web_restrictions/WebRestrictionsContentProvider.java (right): https://codereview.chromium.org/1452603002/diff/1/components/web_restrictions/android/java/src/org/chromium/components/web_restrictions/WebRestrictionsContentProvider.java#newcode5 components/web_restrictions/android/java/src/org/chromium/components/web_restrictions/WebRestrictionsContentProvider.java:5: package org.chromium.components.web_restrictions; Nit: Underscores in package ...
5 years, 1 month ago (2015-11-18 14:32:24 UTC) #4
aberent
https://codereview.chromium.org/1452603002/diff/1/components/web_restrictions/android/java/src/org/chromium/components/web_restrictions/WebRestrictionsContentProvider.java File components/web_restrictions/android/java/src/org/chromium/components/web_restrictions/WebRestrictionsContentProvider.java (right): https://codereview.chromium.org/1452603002/diff/1/components/web_restrictions/android/java/src/org/chromium/components/web_restrictions/WebRestrictionsContentProvider.java#newcode5 components/web_restrictions/android/java/src/org/chromium/components/web_restrictions/WebRestrictionsContentProvider.java:5: package org.chromium.components.web_restrictions; On 2015/11/18 14:32:24, Bernhard Bauer wrote: > ...
5 years, 1 month ago (2015-11-18 15:49:04 UTC) #5
Bernhard Bauer
https://codereview.chromium.org/1452603002/diff/1/components/web_restrictions/android/java/src/org/chromium/components/web_restrictions/WebRestrictionsContentProvider.java File components/web_restrictions/android/java/src/org/chromium/components/web_restrictions/WebRestrictionsContentProvider.java (right): https://codereview.chromium.org/1452603002/diff/1/components/web_restrictions/android/java/src/org/chromium/components/web_restrictions/WebRestrictionsContentProvider.java#newcode5 components/web_restrictions/android/java/src/org/chromium/components/web_restrictions/WebRestrictionsContentProvider.java:5: package org.chromium.components.web_restrictions; On 2015/11/18 15:49:04, aberent wrote: > On ...
5 years, 1 month ago (2015-11-18 16:40:51 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1452603002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1452603002/80001
5 years ago (2015-12-03 19:13:35 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/139220)
5 years ago (2015-12-03 19:22:01 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1452603002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1452603002/100001
5 years ago (2015-12-14 12:43:01 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/153430) android_chromium_gn_compile_rel on ...
5 years ago (2015-12-14 12:48:55 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1452603002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1452603002/120001
5 years ago (2015-12-14 16:05:59 UTC) #18
aberent
bauerb@chromium.org: now ready for full review. PTAL. jochen@chromium.org: Please review changes, as owner, in chrome.gyp, ...
5 years ago (2015-12-14 16:14:35 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1452603002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1452603002/160001
5 years ago (2015-12-14 17:29:48 UTC) #22
Bernhard Bauer
Woo-hoo! Can you add a BUG= ID for this? https://codereview.chromium.org/1452603002/diff/160001/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/1452603002/diff/160001/chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java#newcode26 chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java:26: ...
5 years ago (2015-12-14 17:58:38 UTC) #23
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/159360)
5 years ago (2015-12-14 18:29:21 UTC) #25
jochen (gone - plz use gerrit)
gyp stuff and such lgtm
5 years ago (2015-12-16 09:00:37 UTC) #27
aberent
https://codereview.chromium.org/1452603002/diff/160001/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/1452603002/diff/160001/chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java#newcode26 chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java:26: private SynchronousQueue<Pair<Boolean, String>> mResultQueue; On 2015/12/14 17:58:37, Bernhard Bauer ...
5 years ago (2015-12-16 15:20:37 UTC) #29
aberent
https://codereview.chromium.org/1452603002/diff/160001/chrome/browser/supervised_user/supervised_user_content_provider_android.cc File chrome/browser/supervised_user/supervised_user_content_provider_android.cc (right): https://codereview.chromium.org/1452603002/diff/160001/chrome/browser/supervised_user/supervised_user_content_provider_android.cc#newcode39 chrome/browser/supervised_user/supervised_user_content_provider_android.cc:39: void DoNothingCallback(bool /*b*/) {} On 2015/12/16 15:20:37, aberent wrote: ...
5 years ago (2015-12-16 15:22:54 UTC) #30
Bernhard Bauer
Mostly nits, but also a couple of issues that I hadn't found on my first ...
5 years ago (2015-12-16 17:52:10 UTC) #31
aberent
PTAL https://codereview.chromium.org/1452603002/diff/180001/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/1452603002/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java#newcode56 chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java:56: // See http://developer.android.com/guide/components/processes-and-threads.html#ThreadSafe. On 2015/12/16 17:52:09, Bernhard Bauer ...
5 years ago (2015-12-16 22:15:18 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1452603002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1452603002/200001
5 years ago (2015-12-16 22:16:26 UTC) #34
commit-bot: I haz the power
Dry run: 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/257)
5 years ago (2015-12-17 02:44:21 UTC) #36
Bernhard Bauer
https://codereview.chromium.org/1452603002/diff/180001/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/1452603002/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java#newcode131 chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java:131: mQueryResultQueue.add(new Pair<Boolean, String>(result, errorMessage)); On 2015/12/16 22:15:17, aberent wrote: ...
5 years ago (2015-12-17 11:13:21 UTC) #37
aberent
https://codereview.chromium.org/1452603002/diff/180001/chrome/browser/supervised_user/supervised_user_content_provider_android.h File chrome/browser/supervised_user/supervised_user_content_provider_android.h (right): https://codereview.chromium.org/1452603002/diff/180001/chrome/browser/supervised_user/supervised_user_content_provider_android.h#newcode38 chrome/browser/supervised_user/supervised_user_content_provider_android.h:38: void OnInsertRequestSendComplete(bool sentOk); On 2015/12/17 11:13:21, Bernhard Bauer wrote: ...
5 years ago (2015-12-17 14:59:09 UTC) #38
Bernhard Bauer
LGTM https://codereview.chromium.org/1452603002/diff/200001/chrome/android/junit/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProviderUnitTest.java File chrome/android/junit/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProviderUnitTest.java (right): https://codereview.chromium.org/1452603002/diff/200001/chrome/android/junit/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProviderUnitTest.java#newcode107 chrome/android/junit/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProviderUnitTest.java:107: // on the main thread. On 2015/12/17 14:59:08, ...
5 years ago (2015-12-17 15:18:51 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1452603002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1452603002/220001
5 years ago (2015-12-17 15:28:58 UTC) #42
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years ago (2015-12-17 16:12:35 UTC) #44
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/d501894251559fe547bda9381bdeb98d229f6e7c Cr-Commit-Position: refs/heads/master@{#365834}
5 years ago (2015-12-17 16:13:23 UTC) #46
jam
5 years ago (2015-12-17 19:57:16 UTC) #47
Message was sent while issue was closed.
A revert of this CL (patchset #12 id:220001) has been created in
https://codereview.chromium.org/1539653002/ by jam@chromium.org.

The reason for reverting is: The new test is failing on CQ

BUG=570768.

Powered by Google App Engine
This is Rietveld 408576698