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

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

Issue 2745533005: Show notification during ARC managed provision (Closed)
Patch Set: Add tests, clean up Created 3 years, 9 months 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 1f23796bd658fec2b60fe15f2af47d4bd0373831..9199ff9356ef8503183d5426b249377b592c57da 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 OnArcStartOptInAndroidManagementCheck() {}
Luis Héctor Chávez 2017/03/13 15:50:41 nit: Events should be OnArc[Phrase][Verb in past p
emaxx 2017/03/16 18:32:12 Done.
+
// Called to notify that ARC has been initialized successfully.
virtual void OnArcInitialStart() {}
@@ -105,6 +109,10 @@ class ArcSessionManager : public ArcSessionRunner::Observer,
// browser_tests
virtual void OnArcDataRemoved() {}
+ // Called to notify that the error is requested to be displayed in the
hidehiko 2017/03/13 05:10:46 ARC support app can switch to an error page by its
emaxx 2017/03/16 18:32:12 Done. Tried to address this by the name of the met
+ // support host.
+ virtual void OnArcSupportHostErrorShown(ArcSupportHost::Error error) {}
+
protected:
virtual ~Observer() = default;
};
@@ -299,6 +307,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.

Powered by Google App Engine
This is Rietveld 408576698