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 1f23796bd658fec2b60fe15f2af47d4bd0373831..f5c113817915567bbdf3d11bf3b9d251da063d3f 100644 |
--- a/chrome/browser/chromeos/arc/arc_session_manager.h |
+++ b/chrome/browser/chromeos/arc/arc_session_manager.h |
@@ -94,6 +94,10 @@ class ArcSessionManager : public ArcSessionRunner::Observer, |
// is represented by "arc.enabled" preference, is updated. |
virtual void OnArcPlayStoreEnabledChanged(bool enabled) {} |
+ // Called to notify that checking of Android management status started |
+ // during OptIn flow. |
+ virtual void OnArcOptInManagementCheckStarted() {} |
+ |
// Called to notify that ARC has been initialized successfully. |
virtual void OnArcInitialStart() {} |
@@ -105,6 +109,11 @@ class ArcSessionManager : public ArcSessionRunner::Observer, |
// browser_tests |
virtual void OnArcDataRemoved() {} |
+ // Called to notify that the error is requested by the session manager to be |
+ // displayed in the support host. Note that this is not called in cases when |
+ // the support app switches to an error page by itself. |
+ virtual void OnArcShowingErrorRequested(ArcSupportHost::Error error) {} |
Luis Héctor Chávez
2017/03/24 17:39:16
nit: "ARC showing error" sounds kinda weird. How a
emaxx
2017/04/11 02:09:49
Done.
|
+ |
protected: |
virtual ~Observer() = default; |
}; |
@@ -299,6 +308,11 @@ class ArcSessionManager : public ArcSessionRunner::Observer, |
// is fixed. |
void MaybeReenableArc(); |
+ // Requests the support host (if it exists) to show the error, and notifies |
+ // the observers. |
+ void ShowArcSupportHostError(ArcSupportHost::Error error, |
+ bool should_show_send_feedback); |
+ |
std::unique_ptr<ArcSessionRunner> arc_session_runner_; |
// Unowned pointer. Keeps current profile. |