OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/file_system_provider/notification_manager.h" | 5 #include "chrome/browser/chromeos/file_system_provider/notification_manager.h" |
6 | 6 |
| 7 #include "base/macros.h" |
7 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
9 #include "chrome/browser/extensions/app_icon_loader_impl.h" | 10 #include "chrome/browser/extensions/app_icon_loader_impl.h" |
10 #include "chrome/browser/ui/ash/multi_user/multi_user_util.h" | 11 #include "chrome/browser/ui/ash/multi_user/multi_user_util.h" |
11 #include "chrome/grit/generated_resources.h" | 12 #include "chrome/grit/generated_resources.h" |
12 #include "components/signin/core/account_id/account_id.h" | 13 #include "components/signin/core/account_id/account_id.h" |
13 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" |
14 #include "ui/message_center/message_center.h" | 15 #include "ui/message_center/message_center.h" |
15 #include "ui/message_center/notification.h" | 16 #include "ui/message_center/notification.h" |
16 #include "ui/message_center/notification_delegate.h" | 17 #include "ui/message_center/notification_delegate.h" |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 while (it != callbacks_.end()) { | 146 while (it != callbacks_.end()) { |
146 CallbackMap::iterator current_it = it++; | 147 CallbackMap::iterator current_it = it++; |
147 NotificationCallback callback = current_it->second; | 148 NotificationCallback callback = current_it->second; |
148 callbacks_.erase(current_it); | 149 callbacks_.erase(current_it); |
149 callback.Run(result); | 150 callback.Run(result); |
150 } | 151 } |
151 } | 152 } |
152 | 153 |
153 } // namespace file_system_provider | 154 } // namespace file_system_provider |
154 } // namespace chromeos | 155 } // namespace chromeos |
OLD | NEW |