Chromium Code Reviews| Index: chrome/browser/chromeos/arc/arc_session_manager.cc |
| diff --git a/chrome/browser/chromeos/arc/arc_session_manager.cc b/chrome/browser/chromeos/arc/arc_session_manager.cc |
| index 16a3423ef690745f0015b5aa78707d00c877846e..14cdc39ea81fc5c7b4cbbcc4b02f8affbd0ba83d 100644 |
| --- a/chrome/browser/chromeos/arc/arc_session_manager.cc |
| +++ b/chrome/browser/chromeos/arc/arc_session_manager.cc |
| @@ -631,7 +631,14 @@ void ArcSessionManager::RequestArcDataRemoval() { |
| profile_->GetPrefs()->SetBoolean(prefs::kArcDataRemoveRequested, true); |
| // To support 1) case above, maybe start data removal. |
| - if (state_ == State::STOPPED && arc_session_runner_->IsStopped()) |
| + // The ArcAvailabilityPolicyStatus check is added to make sure the data is not |
| + // removed if the device had ARC enabled and became disabled as result of |
| + // migration to ext4 policy. |
| + // TODO(igorcov): Remove ArcAvailabilityPolicyStatus check after migration. |
| + // crbug.com/725493 |
| + if (state_ == State::STOPPED && arc_session_runner_->IsStopped() && |
| + arc::GetArcAvailabilityPolicyStatus() != |
|
hidehiko
2017/05/25 12:41:55
Setting kArcDataRemoveRequested pref needs to be g
igorcov
2017/05/31 17:25:35
Done.
|
| + arc::ARC_AVAILABILITY_POLICY_STATUS::DISABLED) |
| MaybeStartArcDataRemoval(); |
| } |