|
|
Chromium Code Reviews|
Created:
3 years, 10 months ago by Marton Hunyady Modified:
3 years, 9 months ago CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, yusukes+watch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org, KayC Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionSave Play user id when ARC user gets a Managed Google Play account
Chrome OS stores the user id it receives from DM Server in order to
later be able to use it for reporting the account activity.
BUG=694304
Review-Url: https://codereview.chromium.org/2704113003
Cr-Commit-Position: refs/heads/master@{#455065}
Committed: https://chromium.googlesource.com/chromium/src/+/d1d249ede7fe09c9d6fd2aacccec764987c323a0
Patch Set 1 #
Total comments: 2
Patch Set 2 : Move include to be Chrome OS only #Patch Set 3 : Remove ActiveDirectoryPlayUserId when ARC is disabled #Patch Set 4 : Rebase #Patch Set 5 : Remove double preference registration #Patch Set 6 : Fix browsertest failure #
Total comments: 2
Patch Set 7 : Fix browsertest again #Patch Set 8 : Move pref from policy_pref_names to chrome/common/pref_names #
Total comments: 2
Patch Set 9 : Rebase #
Messages
Total messages: 60 (41 generated)
hunyadym@chromium.org changed reviewers: + achuith@chromium.org, battre@chromium.org, lhchavez@chromium.org, tnagel@chromium.org
tnagel@chromium.org: Please review changes in components/policy/core/common/policy_pref_names.* battre@chromium.org: Please review changes in chrome/browser/prefs/browser_prefs.cc lhchavez@chromium.org: Please review changes in chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token_fetcher* achuith@chromium.org: Please review changes in chrome/browser/chromeos/profiles/profile_helper.h Thanks!
On 2017/02/20 17:48:11, Marton Hunyady wrote: > mailto:tnagel@chromium.org: Please review changes in > components/policy/core/common/policy_pref_names.* > > mailto:battre@chromium.org: Please review changes in > chrome/browser/prefs/browser_prefs.cc > > mailto:lhchavez@chromium.org: Please review changes in > chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token_fetcher* > > mailto:achuith@chromium.org: Please review changes in > chrome/browser/chromeos/profiles/profile_helper.h rubberstamp lgtm for profile_helper.h
The CQ bit was checked by achuith@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
battre@chromium.org changed reviewers: + glevin@chromium.org
Hi. What about clearing the ID when the user disables ARC++? +glevin for Chrome OS privacy review. Please reach out to your PCounsel to get guidance on whether the privacy notice needs to be updated. Please make sure the Cros PDD gets updated. Best regards, Dominic
NOTE: I'm having an email conversation with hunyadym@ to get some background on the feature and Chromad environment. https://codereview.chromium.org/2704113003/diff/1/chrome/browser/prefs/browse... File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/2704113003/diff/1/chrome/browser/prefs/browse... chrome/browser/prefs/browser_prefs.cc:18: #include "chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token_fetcher.h" This should be moved down to the "#if defined(OS_CHROMEOS)" section of includes (starting on line 175).
On 2017/02/21 16:03:18, battre wrote: > What about clearing the ID when the user disables ARC++? Done.
https://codereview.chromium.org/2704113003/diff/1/chrome/browser/prefs/browse... File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/2704113003/diff/1/chrome/browser/prefs/browse... chrome/browser/prefs/browser_prefs.cc:18: #include "chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token_fetcher.h" On 2017/02/21 17:35:47, Greg Levin wrote: > This should be moved down to the "#if defined(OS_CHROMEOS)" section of includes > (starting on line 175). Done.
The CQ bit was checked by hunyadym@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
LGTM battre@ - I've included you on an email thread that includes a more detailed summary of this feature and its context, if you want to take a look.
The CQ bit was checked by hunyadym@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by hunyadym@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
Description was changed from ========== Save Play user id when ARC user gets a Managed Google Play account Chrome OS stores the user id it receives from DM Server in order to later be able to use it for reporting the account activity. BUG=694304 ========== to ========== Save Play user id when ARC user gets a Managed Google Play account Chrome OS stores the user id it receives from DM Server in order to later be able to use it for reporting the account activity. BUG=694304 ==========
hunyadym@chromium.org changed reviewers: + pastarmovj@chromium.org - tnagel@chromium.org
The CQ bit was checked by hunyadym@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
lgtm https://codereview.chromium.org/2704113003/diff/100001/components/policy/core... File components/policy/core/common/policy_pref_names.cc (right): https://codereview.chromium.org/2704113003/diff/100001/components/policy/core... components/policy/core/common/policy_pref_names.cc:13: const char kActiveDirectoryPlayUserId[] = nit: please move this closer to the code that needs it. Maybe chrome/common?
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by hunyadym@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by hunyadym@chromium.org to run a CQ dry run
https://codereview.chromium.org/2704113003/diff/100001/components/policy/core... File components/policy/core/common/policy_pref_names.cc (right): https://codereview.chromium.org/2704113003/diff/100001/components/policy/core... components/policy/core/common/policy_pref_names.cc:13: const char kActiveDirectoryPlayUserId[] = On 2017/03/02 12:28:08, pastarmovj wrote: > nit: please move this closer to the code that needs it. Maybe chrome/common? Done.
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2704113003/diff/140001/chrome/browser/chromeo... File chrome/browser/chromeos/arc/arc_session_manager.cc (right): https://codereview.chromium.org/2704113003/diff/140001/chrome/browser/chromeo... chrome/browser/chromeos/arc/arc_session_manager.cc:119: std::string()); nit: "" is more concise https://codereview.chromium.org/2704113003/diff/140001/chrome/browser/chromeo... File chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token_fetcher.cc (right): https://codereview.chromium.org/2704113003/diff/140001/chrome/browser/chromeo... chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token_fetcher.cc:89: Profile* GetProfile() { You're replicating GetPrimaryUserProfile here: https://cs.chromium.org/chromium/src/chrome/browser/profiles/profile_manager.... The comment suggests that you should not be using GetPrimaryUserProfile, but there's no hint of a replacement. Perhaps you can ask skuhne@? I don't think writing your own function here is desirable?
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
On 2017/03/02 14:41:01, achuithb wrote: > https://codereview.chromium.org/2704113003/diff/140001/chrome/browser/chromeo... > File chrome/browser/chromeos/arc/arc_session_manager.cc (right): > > https://codereview.chromium.org/2704113003/diff/140001/chrome/browser/chromeo... > chrome/browser/chromeos/arc/arc_session_manager.cc:119: std::string()); > nit: "" is more concise > > https://codereview.chromium.org/2704113003/diff/140001/chrome/browser/chromeo... > File > chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token_fetcher.cc > (right): > > https://codereview.chromium.org/2704113003/diff/140001/chrome/browser/chromeo... > chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token_fetcher.cc:89: > Profile* GetProfile() { > You're replicating GetPrimaryUserProfile here: > https://cs.chromium.org/chromium/src/chrome/browser/profiles/profile_manager.... > > The comment suggests that you should not be using GetPrimaryUserProfile, but > there's no hint of a replacement. Perhaps you can ask skuhne@? > > I don't think writing your own function here is desirable? Thanks, after talking to you in person, I'm submitting this.
The CQ bit was checked by hunyadym@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from achuith@chromium.org, glevin@chromium.org, pastarmovj@chromium.org Link to the patchset: https://codereview.chromium.org/2704113003/#ps140001 (title: "Move pref from policy_pref_names to chrome/common/pref_names")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
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_...)
The CQ bit was checked by hunyadym@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by hunyadym@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Failed to apply patch for chrome/browser/chromeos/profiles/profile_helper.h: While running git apply --index -p1; error: patch failed: chrome/browser/chromeos/profiles/profile_helper.h:18 error: chrome/browser/chromeos/profiles/profile_helper.h: patch does not apply Patch: chrome/browser/chromeos/profiles/profile_helper.h Index: chrome/browser/chromeos/profiles/profile_helper.h diff --git a/chrome/browser/chromeos/profiles/profile_helper.h b/chrome/browser/chromeos/profiles/profile_helper.h index 2104e1e187eb12d1715e6da67f8796d71d4f5457..858406614f0e9a2326dbc3db563b4007b0862b03 100644 --- a/chrome/browser/chromeos/profiles/profile_helper.h +++ b/chrome/browser/chromeos/profiles/profile_helper.h @@ -18,6 +18,7 @@ #include "chrome/browser/chromeos/login/signin/oauth2_login_manager.h" #include "components/user_manager/user_manager.h" +class ArcActiveDirectoryEnrollmentTokenFetcherBrowserTest; class ArcAppTest; class Profile; @@ -171,6 +172,7 @@ class ProfileHelper friend class SystemTrayDelegateChromeOSTest; friend class arc::SyncArcPackageHelper; friend class ash::test::MultiUserWindowManagerChromeOSTest; + friend class ::ArcActiveDirectoryEnrollmentTokenFetcherBrowserTest; friend class ::ArcAppTest; friend class ::test::BrowserFinderChromeOSTest;
The CQ bit was checked by hunyadym@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from glevin@chromium.org, pastarmovj@chromium.org, achuith@chromium.org Link to the patchset: https://codereview.chromium.org/2704113003/#ps160001 (title: "Rebase")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 160001, "attempt_start_ts": 1488892634257360,
"parent_rev": "46d0c110e7c68b484bfc292cf030d599c9bb8251", "commit_rev":
"d1d249ede7fe09c9d6fd2aacccec764987c323a0"}
Message was sent while issue was closed.
Description was changed from ========== Save Play user id when ARC user gets a Managed Google Play account Chrome OS stores the user id it receives from DM Server in order to later be able to use it for reporting the account activity. BUG=694304 ========== to ========== Save Play user id when ARC user gets a Managed Google Play account Chrome OS stores the user id it receives from DM Server in order to later be able to use it for reporting the account activity. BUG=694304 Review-Url: https://codereview.chromium.org/2704113003 Cr-Commit-Position: refs/heads/master@{#455065} Committed: https://chromium.googlesource.com/chromium/src/+/d1d249ede7fe09c9d6fd2aacccec... ==========
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as https://chromium.googlesource.com/chromium/src/+/d1d249ede7fe09c9d6fd2aacccec... |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
