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

Issue 722743003: Reporting of policy errors via host-offline-reason: part 1 (Closed)

Created:
6 years, 1 month ago by Łukasz Anforowicz
Modified:
6 years ago
Reviewers:
Lambros, kelvinp
CC:
chromium-reviews, chromoting-reviews_chromium.org, rmsousa, groby-ooo-7-16, Lei Zhang
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Reporting of policy errors via host-offline-reason: part 1 PolicyWatcher.OnPolicyError callback and implementation. - This new callback enables HostProcess to react to policy errors by calling ShutdownHost. - PolicyWatcher on Linux calls this callback when detecting malformed policy files (with retries mechanism to avoid firing this for transient file reading problems) BUG=427512 410050 Committed: https://crrev.com/142f8e1d3e4b75c901f33cb771cd848019630c1e Cr-Commit-Position: refs/heads/master@{#305069} Committed: https://crrev.com/0fdd951c7c55120d58944ea94eaa8ddfc8613d23 Cr-Commit-Position: refs/heads/master@{#305658}

Patch Set 1 #

Total comments: 25

Patch Set 2 : Addressed feedback from Lambros #

Total comments: 3

Patch Set 3 : Addressed feedback from Kelvin. #

Total comments: 2

Patch Set 4 : Fixed formatting of policy_watcher_unittest.cc #

Patch Set 5 : After rebasing #

Patch Set 6 : Really rebasing this time #

Patch Set 7 : Rebased and reopened to try memory trybots. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -18 lines) Patch
M remoting/host/it2me/it2me_host.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M remoting/host/it2me/it2me_host.cc View 1 2 3 4 5 2 chunks +8 lines, -1 line 0 comments Download
M remoting/host/policy_hack/fake_policy_watcher.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/host/policy_hack/fake_policy_watcher.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M remoting/host/policy_hack/mock_policy_callback.h View 1 chunk +3 lines, -0 lines 0 comments Download
M remoting/host/policy_hack/mock_policy_callback.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M remoting/host/policy_hack/policy_watcher.h View 1 2 3 4 5 3 chunks +34 lines, -7 lines 0 comments Download
M remoting/host/policy_hack/policy_watcher.cc View 1 2 3 4 5 5 chunks +26 lines, -5 lines 0 comments Download
M remoting/host/policy_hack/policy_watcher_linux.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M remoting/host/policy_hack/policy_watcher_unittest.cc View 1 2 3 4 5 4 chunks +48 lines, -4 lines 0 comments Download
M remoting/host/remoting_me2me_host.cc View 1 2 3 4 5 6 3 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 33 (10 generated)
Łukasz Anforowicz
Lambros, could you please review the 3 changelists for reporting policy errors via host-offline-reason? This ...
6 years, 1 month ago (2014-11-12 21:56:00 UTC) #2
Lambros
https://codereview.chromium.org/722743003/diff/1/remoting/host/it2me/it2me_host.cc File remoting/host/it2me/it2me_host.cc (right): https://codereview.chromium.org/722743003/diff/1/remoting/host/it2me/it2me_host.cc#newcode336 remoting/host/it2me/it2me_host.cc:336: void It2MeHost::OnPolicyError() { optional: NOTIMPLEMENTED() https://codereview.chromium.org/722743003/diff/1/remoting/host/it2me/it2me_host.cc#newcode337 remoting/host/it2me/it2me_host.cc:337: // TODO(lukasza): ...
6 years, 1 month ago (2014-11-13 00:30:27 UTC) #3
Łukasz Anforowicz
Thanks for the feedback Lambros. I think PatchSet#2 should address it. Renato - could you ...
6 years, 1 month ago (2014-11-13 17:48:09 UTC) #4
Łukasz Anforowicz
https://codereview.chromium.org/722743003/diff/20001/remoting/host/policy_hack/policy_watcher.h File remoting/host/policy_hack/policy_watcher.h (right): https://codereview.chromium.org/722743003/diff/20001/remoting/host/policy_hack/policy_watcher.h#newcode48 remoting/host/policy_hack/policy_watcher.h:48: // After calling |policy_error_callback| PolicyWatcher will continue watching "will ...
6 years, 1 month ago (2014-11-13 17:51:15 UTC) #5
kelvinp
lgtm for it2me changes https://codereview.chromium.org/722743003/diff/20001/remoting/host/it2me/it2me_host.cc File remoting/host/it2me/it2me_host.cc (right): https://codereview.chromium.org/722743003/diff/20001/remoting/host/it2me/it2me_host.cc#newcode337 remoting/host/it2me/it2me_host.cc:337: // TODO(lukasza): Report the policy ...
6 years, 1 month ago (2014-11-13 19:40:57 UTC) #7
Łukasz Anforowicz
Addressed feedback from Kelvin in patchset#3. https://codereview.chromium.org/722743003/diff/20001/remoting/host/it2me/it2me_host.cc File remoting/host/it2me/it2me_host.cc (right): https://codereview.chromium.org/722743003/diff/20001/remoting/host/it2me/it2me_host.cc#newcode337 remoting/host/it2me/it2me_host.cc:337: // TODO(lukasza): Report ...
6 years, 1 month ago (2014-11-13 19:57:23 UTC) #8
Lambros
lgtm, thanks for doing this! https://codereview.chromium.org/722743003/diff/40001/remoting/host/policy_hack/policy_watcher_unittest.cc File remoting/host/policy_hack/policy_watcher_unittest.cc (right): https://codereview.chromium.org/722743003/diff/40001/remoting/host/policy_hack/policy_watcher_unittest.cc#newcode28 remoting/host/policy_hack/policy_watcher_unittest.cc:28: base::Unretained(&mock_policy_callback_)); nit: Wrong indentation. ...
6 years, 1 month ago (2014-11-14 01:42:48 UTC) #9
Łukasz Anforowicz
Fixed formatting of policy_watcher_unittest.cc https://codereview.chromium.org/722743003/diff/40001/remoting/host/policy_hack/policy_watcher_unittest.cc File remoting/host/policy_hack/policy_watcher_unittest.cc (right): https://codereview.chromium.org/722743003/diff/40001/remoting/host/policy_hack/policy_watcher_unittest.cc#newcode28 remoting/host/policy_hack/policy_watcher_unittest.cc:28: base::Unretained(&mock_policy_callback_)); On 2014/11/14 01:42:47, Lambros ...
6 years, 1 month ago (2014-11-14 03:17:18 UTC) #10
Łukasz Anforowicz
6 years, 1 month ago (2014-11-20 16:52:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/722743003/60001
6 years, 1 month ago (2014-11-20 16:52:43 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/84207) linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/1019) win8_chromium_rel ...
6 years, 1 month ago (2014-11-20 16:57:47 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/722743003/80001
6 years, 1 month ago (2014-11-20 17:00:19 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/722743003/80001
6 years, 1 month ago (2014-11-20 17:01:17 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/84213)
6 years, 1 month ago (2014-11-20 17:06:26 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/722743003/100001
6 years, 1 month ago (2014-11-20 19:17:19 UTC) #23
commit-bot: I haz the power
Committed patchset #6 (id:100001)
6 years, 1 month ago (2014-11-20 20:09:15 UTC) #24
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/142f8e1d3e4b75c901f33cb771cd848019630c1e Cr-Commit-Position: refs/heads/master@{#305069}
6 years, 1 month ago (2014-11-20 20:09:52 UTC) #25
Łukasz Anforowicz
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/746723002/ by lukasza@chromium.org. ...
6 years, 1 month ago (2014-11-20 22:35:31 UTC) #26
Łukasz Anforowicz
I could not repro the valgrind crash encountered by the Chromium Mac Valgrind buildbot (http://build.chromium.org/p/chromium.memory.fyi/builders/Chromium%20Mac%20%28valgrind%29%281%29/builds/30526): ...
6 years, 1 month ago (2014-11-21 21:26:56 UTC) #28
Łukasz Anforowicz
Rachel and Lei have kindly taken a look into the past Valgrind failure and concluded ...
6 years ago (2014-11-25 17:12:06 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/722743003/140001
6 years ago (2014-11-25 17:13:10 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:140001)
6 years ago (2014-11-25 17:47:59 UTC) #32
commit-bot: I haz the power
6 years ago (2014-11-25 17:48:44 UTC) #33
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/0fdd951c7c55120d58944ea94eaa8ddfc8613d23
Cr-Commit-Position: refs/heads/master@{#305658}

Powered by Google App Engine
This is Rietveld 408576698