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

Issue 2695113002: [Webview, Child Accounts] Automatically sign in to Chrome if needed. (Closed)

Created:
3 years, 10 months ago by aberent
Modified:
3 years, 10 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, pam+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Webview, Child Accounts] Automatically sign in to Chrome if needed. Webview gets its URL filtering information from Chrome; however it can't do so until Chrome has signed in, which in a child account environment it does automatically on first run. This CL checks for the case where Chrome has never been run, and attempts to force sign in Chrome. If it fails (as far as I know this should only happen if GMSCore is out of date) it generates a message asking the user to start Chrome. BUG=686732 Review-Url: https://codereview.chromium.org/2695113002 Cr-Commit-Position: refs/heads/master@{#450961} Committed: https://chromium.googlesource.com/chromium/src/+/5fdb85e384dd972552e22622350d12ff8492c686

Patch Set 1 #

Total comments: 12

Patch Set 2 : Respond to comments #

Total comments: 2

Patch Set 3 : Fix nit and non-Android builds #

Patch Set 4 : Fix instrumentation tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+375 lines, -118 lines) Patch
M chrome/android/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/childaccounts/ChildAccountService.java View 1 2 chunks +21 lines, -7 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/firstrun/ForcedSigninProcessor.java View 5 chunks +14 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/init/ChromeBrowserInitializer.java View 1 3 chunks +12 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/init/ProcessInitializationHandler.java View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProvider.java View 1 2 3 7 chunks +111 lines, -49 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProviderTest.java View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/superviseduser/SupervisedUserContentProviderUnitTest.java View 1 6 chunks +147 lines, -42 lines 0 comments Download
M chrome/browser/supervised_user/child_accounts/child_account_service_android.cc View 1 2 2 chunks +21 lines, -0 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_content_provider_android.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_resource_throttle.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/supervised_user_internals_message_handler.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M components/supervised_user_error_page/BUILD.gn View 1 2 2 chunks +12 lines, -0 lines 0 comments Download
M components/supervised_user_error_page/supervised_user_error_page.h View 1 1 chunk +8 lines, -5 lines 0 comments Download
M components/supervised_user_error_page/supervised_user_error_page.cc View 2 chunks +6 lines, -1 line 0 comments Download
M components/supervised_user_error_page_strings.grdp View 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (15 generated)
aberent
bauerb@ - please review. Not yet tested end-to-end due to Unicorn sync problems etc.
3 years, 10 months ago (2017-02-15 14:10:26 UTC) #2
Bernhard Bauer
https://codereview.chromium.org/2695113002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/childaccounts/ChildAccountService.java File chrome/android/java/src/org/chromium/chrome/browser/childaccounts/ChildAccountService.java (right): https://codereview.chromium.org/2695113002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/childaccounts/ChildAccountService.java#newcode65 chrome/android/java/src/org/chromium/chrome/browser/childaccounts/ChildAccountService.java:65: public static void listenForStatusChange(Runnable callback) { Javadoc for public ...
3 years, 10 months ago (2017-02-15 15:09:38 UTC) #3
aberent
https://codereview.chromium.org/2695113002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/childaccounts/ChildAccountService.java File chrome/android/java/src/org/chromium/chrome/browser/childaccounts/ChildAccountService.java (right): https://codereview.chromium.org/2695113002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/childaccounts/ChildAccountService.java#newcode65 chrome/android/java/src/org/chromium/chrome/browser/childaccounts/ChildAccountService.java:65: public static void listenForStatusChange(Runnable callback) { On 2017/02/15 15:09:37, ...
3 years, 10 months ago (2017-02-15 18:34:46 UTC) #5
Bernhard Bauer
LGTM with a nit: https://codereview.chromium.org/2695113002/diff/20001/chrome/browser/supervised_user/child_accounts/child_account_service_android.cc File chrome/browser/supervised_user/child_accounts/child_account_service_android.cc (right): https://codereview.chromium.org/2695113002/diff/20001/chrome/browser/supervised_user/child_accounts/child_account_service_android.cc#newcode38 chrome/browser/supervised_user/child_accounts/child_account_service_android.cc:38: // TODO(http://crbug/692591) Should use base::BindOnce, ...
3 years, 10 months ago (2017-02-15 18:40:09 UTC) #8
aberent
https://codereview.chromium.org/2695113002/diff/20001/chrome/browser/supervised_user/child_accounts/child_account_service_android.cc File chrome/browser/supervised_user/child_accounts/child_account_service_android.cc (right): https://codereview.chromium.org/2695113002/diff/20001/chrome/browser/supervised_user/child_accounts/child_account_service_android.cc#newcode38 chrome/browser/supervised_user/child_accounts/child_account_service_android.cc:38: // TODO(http://crbug/692591) Should use base::BindOnce, but On 2017/02/15 18:40:09, ...
3 years, 10 months ago (2017-02-15 18:56:25 UTC) #11
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/2695113002/40001
3 years, 10 months ago (2017-02-15 18:57:47 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/233156)
3 years, 10 months ago (2017-02-15 21:38:50 UTC) #16
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/2695113002/60001
3 years, 10 months ago (2017-02-16 11:01:53 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/367804)
3 years, 10 months ago (2017-02-16 12:16:37 UTC) #21
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/2695113002/60001
3 years, 10 months ago (2017-02-16 12:40:39 UTC) #23
commit-bot: I haz the power
3 years, 10 months ago (2017-02-16 14:53:51 UTC) #26
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/5fdb85e384dd972552e22622350d...

Powered by Google App Engine
This is Rietveld 408576698