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

Unified Diff: chrome/browser/chromeos/arc/notification/arc_boot_error_notification.cc

Issue 2720303002: Do nothing on OnSessionStopped if ARC is being restarted. (Closed)
Patch Set: Address comments. Created 3 years, 10 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/chromeos/arc/notification/arc_boot_error_notification.h ('k') | components/arc/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/arc/notification/arc_boot_error_notification.cc
diff --git a/chrome/browser/chromeos/arc/notification/arc_boot_error_notification.cc b/chrome/browser/chromeos/arc/notification/arc_boot_error_notification.cc
index 61d53e16d3df7b01535b47dc0e5dfd901ef0fb80..87d3e8a38cfb534f477debd0a888035ab22235ea 100644
--- a/chrome/browser/chromeos/arc/notification/arc_boot_error_notification.cc
+++ b/chrome/browser/chromeos/arc/notification/arc_boot_error_notification.cc
@@ -8,7 +8,6 @@
#include "base/memory/ptr_util.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/browser_process.h"
-#include "chrome/browser/chromeos/arc/arc_session_manager.h"
#include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/ui/chrome_pages.h"
@@ -91,15 +90,15 @@ void ShowLowDiskSpaceErrorNotification() {
ArcBootErrorNotification::ArcBootErrorNotification(
ArcBridgeService* bridge_service)
: ArcService(bridge_service) {
- ArcSessionManager::Get()->AddSessionObserver(this);
+ ArcSessionManager::Get()->AddObserver(this);
}
ArcBootErrorNotification::~ArcBootErrorNotification() {
- ArcSessionManager::Get()->RemoveSessionObserver(this);
+ ArcSessionManager::Get()->RemoveObserver(this);
}
-void ArcBootErrorNotification::OnSessionStopped(StopReason reason) {
- if (reason == StopReason::LOW_DISK_SPACE)
+void ArcBootErrorNotification::OnArcSessionStopped(ArcStopReason reason) {
+ if (reason == ArcStopReason::LOW_DISK_SPACE)
ShowLowDiskSpaceErrorNotification();
}
« no previous file with comments | « chrome/browser/chromeos/arc/notification/arc_boot_error_notification.h ('k') | components/arc/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698