OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_provision_notification_se
rvice.h" | 5 #include "chrome/browser/chromeos/arc/notification/arc_provision_notification_se
rvice.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "ash/system/devicetype_utils.h" | 9 #include "ash/system/devicetype_utils.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "chrome/browser/chromeos/arc/arc_util.h" | 12 #include "chrome/browser/chromeos/arc/arc_util.h" |
13 #include "chrome/grit/component_extension_resources.h" | |
14 #include "chrome/grit/generated_resources.h" | 13 #include "chrome/grit/generated_resources.h" |
15 #include "chrome/grit/theme_resources.h" | 14 #include "chrome/grit/theme_resources.h" |
16 #include "components/signin/core/account_id/account_id.h" | 15 #include "components/signin/core/account_id/account_id.h" |
17 #include "components/user_manager/user.h" | 16 #include "components/user_manager/user.h" |
18 #include "components/user_manager/user_manager.h" | 17 #include "components/user_manager/user_manager.h" |
19 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
20 #include "ui/base/resource/resource_bundle.h" | 19 #include "ui/base/resource/resource_bundle.h" |
21 #include "ui/gfx/image/image.h" | 20 #include "ui/gfx/image/image.h" |
22 #include "ui/message_center/message_center.h" | 21 #include "ui/message_center/message_center.h" |
23 #include "ui/message_center/notification.h" | 22 #include "ui/message_center/notification.h" |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 void ArcProvisionNotificationService::OnArcErrorShowRequested( | 138 void ArcProvisionNotificationService::OnArcErrorShowRequested( |
140 ArcSupportHost::Error error) { | 139 ArcSupportHost::Error error) { |
141 // If an error happens during the opt-in flow, then the provision fails, and | 140 // If an error happens during the opt-in flow, then the provision fails, and |
142 // the notification should be therefore removed if it is shown. Do this here | 141 // the notification should be therefore removed if it is shown. Do this here |
143 // unconditionally as there should be no notification displayed otherwise | 142 // unconditionally as there should be no notification displayed otherwise |
144 // anyway. | 143 // anyway. |
145 delegate_->RemoveManagedProvisionNotification(); | 144 delegate_->RemoveManagedProvisionNotification(); |
146 } | 145 } |
147 | 146 |
148 } // namespace arc | 147 } // namespace arc |
OLD | NEW |