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

Side by Side Diff: chrome/browser/chromeos/arc/notification/arc_boot_error_notification.h

Issue 2720303002: Do nothing on OnSessionStopped if ARC is being restarted. (Closed)
Patch Set: Address comments. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_NOTIFICATION_ARC_BOOT_ERROR_NOTIFICATION_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_NOTIFICATION_ARC_BOOT_ERROR_NOTIFICATION_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_NOTIFICATION_ARC_BOOT_ERROR_NOTIFICATION_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_NOTIFICATION_ARC_BOOT_ERROR_NOTIFICATION_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/chromeos/arc/arc_session_manager.h"
9 #include "components/arc/arc_service.h" 10 #include "components/arc/arc_service.h"
10 #include "components/arc/arc_session_observer.h"
11 11
12 namespace arc { 12 namespace arc {
13 13
14 // Watches for ARC boot errors and show notifications. 14 // Watches for ARC boot errors and show notifications.
15 class ArcBootErrorNotification : public ArcService, public ArcSessionObserver { 15 class ArcBootErrorNotification : public ArcService,
16 public ArcSessionManager::Observer {
16 public: 17 public:
17 explicit ArcBootErrorNotification(ArcBridgeService* bridge_service); 18 explicit ArcBootErrorNotification(ArcBridgeService* bridge_service);
18 ~ArcBootErrorNotification() override; 19 ~ArcBootErrorNotification() override;
19 20
20 // ArcSessionObserver: 21 // ArcSessionManager::Observer:
21 void OnSessionStopped(StopReason reason) override; 22 void OnArcSessionStopped(ArcStopReason reason) override;
22 23
23 private: 24 private:
24 DISALLOW_COPY_AND_ASSIGN(ArcBootErrorNotification); 25 DISALLOW_COPY_AND_ASSIGN(ArcBootErrorNotification);
25 }; 26 };
26 27
27 } // namespace arc 28 } // namespace arc
28 29
29 #endif // CHROME_BROWSER_CHROMEOS_ARC_NOTIFICATION_ARC_BOOT_ERROR_NOTIFICATION_ H_ 30 #endif // CHROME_BROWSER_CHROMEOS_ARC_NOTIFICATION_ARC_BOOT_ERROR_NOTIFICATION_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698