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

Issue 2732983002: Keep state even if AndroidManagement check returns MANAGED or ERROR. (Closed)

Created:
3 years, 9 months ago by hidehiko
Modified:
3 years, 9 months ago
Reviewers:
Yusuke Sato
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, oshima+watch_chromium.org, yusukes+watch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, victorhsieh+watch_chromium.org, davemoore+watch_chromium.org, Luis Héctor Chávez, victorhsieh, khmel
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Keep state even if AndroidManagement check returns MANAGED or ERROR. This is the first CL to fix the state machine in ArcSessionManager. With this CL, even if AndroidManagement check returns MANAGED or ERROR, the state will be left as is (= CHECKING_ANDROID_MANAGEMENT), expecting more action is done later. On clicking RETRY button, the management check should re-run. On giving up the check, Google Play Store enabled preference should be set to false, which should trigger RequestDisable(). Along with the change, several refactoring is done. - Renamed the function. (Removed "Arc" prefix, because it is ArcSessionManager's private method so redundant.) - Extract StartBackgroundAndroidManagementCheck() method, to be consistent non-background method. BUG=657687 BUG=b/31079732 TEST=Ran trybots. Review-Url: https://codereview.chromium.org/2732983002 Cr-Commit-Position: refs/heads/master@{#455047} Committed: https://chromium.googlesource.com/chromium/src/+/20e3c142aad1cc086b840a647f0fce829299290e

Patch Set 1 #

Total comments: 3

Patch Set 2 : Address comments. #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -32 lines) Patch
M chrome/browser/chromeos/arc/arc_session_manager.h View 1 2 2 chunks +20 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_session_manager.cc View 1 2 8 chunks +42 lines, -28 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
hidehiko
PTAL. https://codereview.chromium.org/2732983002/diff/1/chrome/browser/chromeos/arc/arc_session_manager.h File chrome/browser/chromeos/arc/arc_session_manager.h (right): https://codereview.chromium.org/2732983002/diff/1/chrome/browser/chromeos/arc/arc_session_manager.h#newcode280 chrome/browser/chromeos/arc/arc_session_manager.h:280: // On ARC session stopped and/or data removal ...
3 years, 9 months ago (2017-03-06 11:57:56 UTC) #6
Yusuke Sato
lgtm https://codereview.chromium.org/2732983002/diff/1/chrome/browser/chromeos/arc/arc_session_manager.cc File chrome/browser/chromeos/arc/arc_session_manager.cc (right): https://codereview.chromium.org/2732983002/diff/1/chrome/browser/chromeos/arc/arc_session_manager.cc#newcode592 chrome/browser/chromeos/arc/arc_session_manager.cc:592: // Note: The callback OnBackgroundAndroidManagementChecked() can be called ...
3 years, 9 months ago (2017-03-06 22:11:49 UTC) #7
hidehiko
Thank you for review! https://codereview.chromium.org/2732983002/diff/1/chrome/browser/chromeos/arc/arc_session_manager.cc File chrome/browser/chromeos/arc/arc_session_manager.cc (right): https://codereview.chromium.org/2732983002/diff/1/chrome/browser/chromeos/arc/arc_session_manager.cc#newcode592 chrome/browser/chromeos/arc/arc_session_manager.cc:592: // Note: The callback OnBackgroundAndroidManagementChecked() ...
3 years, 9 months ago (2017-03-07 05:10:00 UTC) #8
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/2732983002/20001
3 years, 9 months ago (2017-03-07 05:11:04 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/132017) cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 9 months ago (2017-03-07 05:15:14 UTC) #13
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/2732983002/40001
3 years, 9 months ago (2017-03-07 07:04:39 UTC) #16
commit-bot: I haz the power
3 years, 9 months ago (2017-03-07 09:30:51 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/20e3c142aad1cc086b840a647f0f...

Powered by Google App Engine
This is Rietveld 408576698