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

Unified Diff: chrome/browser/chromeos/arc/arc_session_manager.h

Issue 2541173002: arc: Make request to remove Android's data folder persistent. (Closed)
Patch Set: fix browser tests Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/arc/arc_session_manager.h
diff --git a/chrome/browser/chromeos/arc/arc_session_manager.h b/chrome/browser/chromeos/arc/arc_session_manager.h
index 8c1469759e7f71a4f35edc00c9c9fb1cfdbec9f3..b3cb008d46d518a8c26fe7898ee06ce8cd1949d3 100644
--- a/chrome/browser/chromeos/arc/arc_session_manager.h
+++ b/chrome/browser/chromeos/arc/arc_session_manager.h
@@ -94,6 +94,7 @@ class ArcSessionManager : public ArcService,
STOPPED,
SHOWING_TERMS_OF_SERVICE,
CHECKING_ANDROID_MANAGEMENT,
+ REMOVING_DATA_DIR,
ACTIVE,
};
@@ -109,6 +110,10 @@ class ArcSessionManager : public ArcService,
// Called to notify that ARC has been initialized successfully.
virtual void OnInitialStart() {}
+
+ // Called to notify that Android data has been removed. Used in
+ // browser_tests
+ virtual void OnArcDataRemoved() {}
};
explicit ArcSessionManager(ArcBridgeService* bridge_service);
@@ -216,6 +221,7 @@ class ArcSessionManager : public ArcService,
void PrepareContextForAuthCodeRequest();
void StartArcAndroidManagementCheck();
+ void MaybeReenableArc();
// Called when the Android management check is done in opt-in flow or
// re-auth flow.
@@ -236,7 +242,6 @@ class ArcSessionManager : public ArcService,
State state_ = State::NOT_INITIALIZED;
base::ObserverList<Observer> observer_list_;
std::unique_ptr<ArcAppLauncher> playstore_launcher_;
- bool clear_required_ = false;
bool reenable_arc_ = false;
base::OneShotTimer arc_sign_in_timer_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_session_manager.cc » ('j') | chrome/browser/chromeos/arc/arc_session_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698