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

Unified Diff: chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc

Issue 2133653002: arc: Notify ARC instance failures via callbacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased to master. Created 4 years, 5 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
« no previous file with comments | « chrome/browser/ui/app_list/arc/arc_app_list_prefs.h ('k') | components/arc/arc_bridge_bootstrap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc
diff --git a/chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc b/chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc
index 823ce65d1fc0a470efd1a33ac21f0e7a1f4d77bb..7ab5c3bfa10207f4c0d78b7ffa562c8ad99d0f9b 100644
--- a/chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc
+++ b/chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc
@@ -237,7 +237,7 @@ ArcAppListPrefs::ArcAppListPrefs(const base::FilePath& base_path,
bridge_service->app()->AddObserver(this);
bridge_service->AddObserver(this);
if (!bridge_service->ready())
- OnBridgeStopped();
+ OnBridgeStopped(arc::ArcBridgeService::StopReason::SHUTDOWN);
}
ArcAppListPrefs::~ArcAppListPrefs() {
@@ -563,7 +563,8 @@ void ArcAppListPrefs::OnOptInEnabled(bool enabled) {
RemoveAllApps();
}
-void ArcAppListPrefs::OnBridgeStopped() {
+void ArcAppListPrefs::OnBridgeStopped(
+ arc::ArcBridgeService::StopReason reason) {
DisableAllApps();
}
« no previous file with comments | « chrome/browser/ui/app_list/arc/arc_app_list_prefs.h ('k') | components/arc/arc_bridge_bootstrap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698