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

Issue 2127113002: Policy to control ARC Backup&Restore. (Closed)

Created:
4 years, 5 months ago by Sergey Poromov
Modified:
4 years, 5 months ago
CC:
vkuzkokov, Yusuke Sato, elijahtaylor1, chromium-reviews, elijahtaylor+arcwatch_chromium.org, yusukes+watch_chromium.org, hidehiko+watch_chromium.org, asvitkine+watch_chromium.org, lhchavez+watch_chromium.org, oshima+watch_chromium.org, tnagel+watch_chromium.org, davemoore+watch_chromium.org, Thiemo Nagel
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Policy to control ARC Backup&Restore. Design doc: https://docs.google.com/document/d/1kOi7GBYwsXNehL7S6LT78mDHZRrU1MGrmyf8h9LFWpY/edit Buganizer bug: b/29813045 BUG=627101 Committed: https://crrev.com/1df20035a88b32610597f0bf915ddcbb674e9720 Cr-Commit-Position: refs/heads/master@{#407458}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Policy to control ARC Backup&Restore. #

Patch Set 3 : Fix build. #

Total comments: 10

Patch Set 4 : Remove unnecessary arc_backup_restore_managed pref. #

Patch Set 5 : Remove unnecessary arc_backup_restore_managed pref. #

Total comments: 8

Patch Set 6 : Remove default_for_enterprise_users #

Patch Set 7 : Remove default_for_enterprise_users #

Total comments: 4

Patch Set 8 : lhchavez comments. #

Patch Set 9 : lhchavez comments. #

Total comments: 12

Patch Set 10 : bartfab comments. #

Total comments: 5

Patch Set 11 : bartfab nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -1 line) Patch
M chrome/browser/policy/configuration_policy_handler_list_factory.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +30 lines, -0 lines 0 comments Download
M chrome/test/data/policy/policy_test_cases.json View 1 chunk +9 lines, -0 lines 0 comments Download
M components/policy/resources/policy_templates.json View 1 2 3 4 5 6 7 8 9 10 2 chunks +23 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 62 (34 generated)
Yusuke Sato
https://codereview.chromium.org/2127113002/diff/1/chrome/browser/chromeos/arc/arc_backup_restore_policy_handler.cc File chrome/browser/chromeos/arc/arc_backup_restore_policy_handler.cc (right): https://codereview.chromium.org/2127113002/diff/1/chrome/browser/chromeos/arc/arc_backup_restore_policy_handler.cc#newcode17 chrome/browser/chromeos/arc/arc_backup_restore_policy_handler.cc:17: base::Value::TYPE_BOOLEAN) {} nit: s/{}/= default;/ https://codereview.chromium.org/2127113002/diff/1/chrome/browser/chromeos/arc/arc_backup_restore_policy_handler.cc#newcode19 chrome/browser/chromeos/arc/arc_backup_restore_policy_handler.cc:19: ArcBackupRestorePolicyHandler::~ArcBackupRestorePolicyHandler() {} ...
4 years, 5 months ago (2016-07-11 03:01:06 UTC) #3
Yusuke Sato
https://codereview.chromium.org/2127113002/diff/1/chrome/browser/chromeos/arc/arc_backup_restore_policy_handler.h File chrome/browser/chromeos/arc/arc_backup_restore_policy_handler.h (right): https://codereview.chromium.org/2127113002/diff/1/chrome/browser/chromeos/arc/arc_backup_restore_policy_handler.h#newcode1 chrome/browser/chromeos/arc/arc_backup_restore_policy_handler.h:1: // Copyright 2016 The Chromium Authors. All rights reserved. ...
4 years, 5 months ago (2016-07-11 03:03:40 UTC) #4
Sergey Poromov
https://codereview.chromium.org/2127113002/diff/1/chrome/browser/chromeos/arc/arc_backup_restore_policy_handler.cc File chrome/browser/chromeos/arc/arc_backup_restore_policy_handler.cc (right): https://codereview.chromium.org/2127113002/diff/1/chrome/browser/chromeos/arc/arc_backup_restore_policy_handler.cc#newcode17 chrome/browser/chromeos/arc/arc_backup_restore_policy_handler.cc:17: base::Value::TYPE_BOOLEAN) {} On 2016/07/11 03:01:06, Yusuke Sato wrote: > ...
4 years, 5 months ago (2016-07-11 14:35:14 UTC) #7
Thiemo Nagel
Sergey, I'd suggest to minimize the redundancy between reviewers. Adding atwilson, bartfab, bartfab1 and myself ...
4 years, 5 months ago (2016-07-12 14:12:27 UTC) #9
Thiemo Nagel
https://codereview.chromium.org/2127113002/diff/40001/chrome/browser/policy/configuration_policy_handler_list_factory.cc File chrome/browser/policy/configuration_policy_handler_list_factory.cc (right): https://codereview.chromium.org/2127113002/diff/40001/chrome/browser/policy/configuration_policy_handler_list_factory.cc#newcode864 chrome/browser/policy/configuration_policy_handler_list_factory.cc:864: handlers->AddHandler(base::WrapUnique( Do you really need a handler here? Why ...
4 years, 5 months ago (2016-07-12 15:02:40 UTC) #11
Sergey Poromov
https://codereview.chromium.org/2127113002/diff/40001/chrome/browser/policy/configuration_policy_handler_list_factory.cc File chrome/browser/policy/configuration_policy_handler_list_factory.cc (right): https://codereview.chromium.org/2127113002/diff/40001/chrome/browser/policy/configuration_policy_handler_list_factory.cc#newcode864 chrome/browser/policy/configuration_policy_handler_list_factory.cc:864: handlers->AddHandler(base::WrapUnique( On 2016/07/12 15:02:40, Thiemo Nagel wrote: > Do ...
4 years, 5 months ago (2016-07-12 16:18:12 UTC) #12
Thiemo Nagel
Polina, could you please do a pass over this CL?
4 years, 5 months ago (2016-07-15 12:09:21 UTC) #15
Polina Bondarenko
https://codereview.chromium.org/2127113002/diff/80001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/2127113002/diff/80001/components/policy/resources/policy_templates.json#newcode8756 components/policy/resources/policy_templates.json:8756: 'id': 337, 'default_for_enterprise_users' set means that it's mandatory policy ...
4 years, 5 months ago (2016-07-15 12:36:51 UTC) #16
Thiemo Nagel
https://codereview.chromium.org/2127113002/diff/80001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/2127113002/diff/80001/components/policy/resources/policy_templates.json#newcode8767 components/policy/resources/policy_templates.json:8767: Backup Service on and off in Android Settings app.''', ...
4 years, 5 months ago (2016-07-15 13:01:39 UTC) #17
Sergey Poromov
https://codereview.chromium.org/2127113002/diff/80001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/2127113002/diff/80001/components/policy/resources/policy_templates.json#newcode8756 components/policy/resources/policy_templates.json:8756: 'id': 337, On 2016/07/15 12:36:50, Polina Bondarenko wrote: > ...
4 years, 5 months ago (2016-07-18 10:10:56 UTC) #18
vkuzkokov
https://codereview.chromium.org/2127113002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2127113002/diff/80001/tools/metrics/histograms/histograms.xml#newcode72466 tools/metrics/histograms/histograms.xml:72466: + label="Disable Certificate Transparency enforcement for a list of ...
4 years, 5 months ago (2016-07-18 10:26:01 UTC) #19
Sergey Poromov
https://codereview.chromium.org/2127113002/diff/80001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/2127113002/diff/80001/components/policy/resources/policy_templates.json#newcode8756 components/policy/resources/policy_templates.json:8756: 'id': 337, On 2016/07/18 10:10:56, Sergey Poromov wrote: > ...
4 years, 5 months ago (2016-07-18 14:08:34 UTC) #20
Sergey Poromov
Friendly ping on this change. We would like to merge it also into M-53 as ...
4 years, 5 months ago (2016-07-18 15:58:23 UTC) #21
Luis Héctor Chávez
chrome/browser/chromeos/arc/arc_support_host.cc lgtm (on-behalf-of elijahtaylor1, yusukes) https://codereview.chromium.org/2127113002/diff/120001/chrome/browser/chromeos/arc/arc_support_host.cc File chrome/browser/chromeos/arc/arc_support_host.cc (right): https://codereview.chromium.org/2127113002/diff/120001/chrome/browser/chromeos/arc/arc_support_host.cc#newcode253 chrome/browser/chromeos/arc/arc_support_host.cc:253: if (!pref_service->IsManagedPreference(prefs::kArcBackupRestoreEnabled)) nit: if ...
4 years, 5 months ago (2016-07-18 16:15:14 UTC) #23
Sergey Poromov
https://codereview.chromium.org/2127113002/diff/120001/chrome/browser/chromeos/arc/arc_support_host.cc File chrome/browser/chromeos/arc/arc_support_host.cc (right): https://codereview.chromium.org/2127113002/diff/120001/chrome/browser/chromeos/arc/arc_support_host.cc#newcode253 chrome/browser/chromeos/arc/arc_support_host.cc:253: if (!pref_service->IsManagedPreference(prefs::kArcBackupRestoreEnabled)) On 2016/07/18 16:15:14, Luis Héctor Chávez wrote: ...
4 years, 5 months ago (2016-07-19 09:23:03 UTC) #26
bartfab (slow)
https://codereview.chromium.org/2127113002/diff/160001/chrome/browser/chromeos/arc/arc_support_host.cc File chrome/browser/chromeos/arc/arc_support_host.cc (right): https://codereview.chromium.org/2127113002/diff/160001/chrome/browser/chromeos/arc/arc_support_host.cc#newcode253 chrome/browser/chromeos/arc/arc_support_host.cc:253: if (pref_service->IsManagedPreference(prefs::kArcBackupRestoreEnabled)) It is safe to set the pref ...
4 years, 5 months ago (2016-07-19 13:55:52 UTC) #33
Sergey Poromov
https://codereview.chromium.org/2127113002/diff/160001/chrome/browser/chromeos/arc/arc_support_host.cc File chrome/browser/chromeos/arc/arc_support_host.cc (right): https://codereview.chromium.org/2127113002/diff/160001/chrome/browser/chromeos/arc/arc_support_host.cc#newcode253 chrome/browser/chromeos/arc/arc_support_host.cc:253: if (pref_service->IsManagedPreference(prefs::kArcBackupRestoreEnabled)) On 2016/07/19 13:55:52, bartfab (slow) wrote: > ...
4 years, 5 months ago (2016-07-19 14:34:28 UTC) #34
Sergey Poromov
4 years, 5 months ago (2016-07-22 08:10:45 UTC) #39
Ilya Sherman
histograms.xml lgtm
4 years, 5 months ago (2016-07-22 08:57:01 UTC) #40
bartfab (slow)
LGTM with nits. https://codereview.chromium.org/2127113002/diff/180001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/2127113002/diff/180001/components/policy/resources/policy_templates.json#newcode8760 components/policy/resources/policy_templates.json:8760: '''When this policy is set to ...
4 years, 5 months ago (2016-07-22 15:07:52 UTC) #45
Thiemo Nagel
https://codereview.chromium.org/2127113002/diff/80001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/2127113002/diff/80001/components/policy/resources/policy_templates.json#newcode8767 components/policy/resources/policy_templates.json:8767: Backup Service on and off in Android Settings app.''', ...
4 years, 5 months ago (2016-07-22 16:48:13 UTC) #47
Sergey Poromov
https://codereview.chromium.org/2127113002/diff/180001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/2127113002/diff/180001/components/policy/resources/policy_templates.json#newcode8760 components/policy/resources/policy_templates.json:8760: '''When this policy is set to true, Android app ...
4 years, 5 months ago (2016-07-25 11:14:40 UTC) #48
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/2127113002/200001
4 years, 5 months ago (2016-07-25 12:58:56 UTC) #55
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 5 months ago (2016-07-25 13:02:48 UTC) #57
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/1df20035a88b32610597f0bf915ddcbb674e9720 Cr-Commit-Position: refs/heads/master@{#407458}
4 years, 5 months ago (2016-07-25 13:04:42 UTC) #59
pdr.
On 2016/07/25 at 13:04:42, commit-bot wrote: > Patchset 11 (id:??) landed as https://crrev.com/1df20035a88b32610597f0bf915ddcbb674e9720 > Cr-Commit-Position: ...
4 years, 5 months ago (2016-07-25 15:54:23 UTC) #60
pdr.
On 2016/07/25 at 15:54:23, pdr. wrote: > On 2016/07/25 at 13:04:42, commit-bot wrote: > > ...
4 years, 5 months ago (2016-07-25 16:28:21 UTC) #61
pdr.
4 years, 5 months ago (2016-07-25 17:55:21 UTC) #62
Message was sent while issue was closed.
On 2016/07/25 at 16:28:21, pdr. wrote:
> On 2016/07/25 at 15:54:23, pdr. wrote:
> > On 2016/07/25 at 13:04:42, commit-bot wrote:
> > > Patchset 11 (id:??) landed as
https://crrev.com/1df20035a88b32610597f0bf915ddcbb674e9720
> > > Cr-Commit-Position: refs/heads/master@{#407458}
> > 
> > I think this patch may be causing a build error:
> > gen/policy/policy_constants.cc:957:12: error: unused variable
'kArcBackupRestoreEnabled' [-Werror,-Wunused-const-variable]
> > const char kArcBackupRestoreEnabled[] = "ArcBackupRestoreEnabled";
> >            ^
> > 1 error generated.
> 
> If anyone else sees this bug, can you comment here? This should be
chromeos-only and shouldn't affect vanilla chrome builds.
> 
> I'm investigating my local build setup to see if it's something on my end. I
confirmed that reverting this patch fixes the build.

I'm sorry for the noise. I think this was some sort of stale state in my out
directory. Blowing away out/Debug and rebuilding has fixed this issue.

Powered by Google App Engine
This is Rietveld 408576698