OLD | NEW |
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 #include "chrome/browser/chromeos/arc/notification/arc_boot_error_notification.h
" | 5 #include "chrome/browser/chromeos/arc/notification/arc_boot_error_notification.h
" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/memory/ptr_util.h" |
8 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 11 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
11 #include "chrome/browser/profiles/profile_manager.h" | 12 #include "chrome/browser/profiles/profile_manager.h" |
12 #include "chrome/browser/ui/chrome_pages.h" | 13 #include "chrome/browser/ui/chrome_pages.h" |
13 #include "chrome/grit/generated_resources.h" | 14 #include "chrome/grit/generated_resources.h" |
14 #include "components/arc/arc_bridge_service.h" | 15 #include "components/arc/arc_bridge_service.h" |
15 #include "components/user_manager/user_manager.h" | 16 #include "components/user_manager/user_manager.h" |
16 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
17 #include "ui/base/resource/resource_bundle.h" | 18 #include "ui/base/resource/resource_bundle.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 ArcBootErrorNotification::~ArcBootErrorNotification() { | 96 ArcBootErrorNotification::~ArcBootErrorNotification() { |
96 arc_bridge_service()->RemoveObserver(this); | 97 arc_bridge_service()->RemoveObserver(this); |
97 } | 98 } |
98 | 99 |
99 void ArcBootErrorNotification::OnSessionStopped(StopReason reason) { | 100 void ArcBootErrorNotification::OnSessionStopped(StopReason reason) { |
100 if (reason == StopReason::LOW_DISK_SPACE) | 101 if (reason == StopReason::LOW_DISK_SPACE) |
101 ShowLowDiskSpaceErrorNotification(); | 102 ShowLowDiskSpaceErrorNotification(); |
102 } | 103 } |
103 | 104 |
104 } // namespace arc | 105 } // namespace arc |
OLD | NEW |