| 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/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
| 9 #include "chrome/browser/extensions/app_icon_loader_impl.h" | 9 #include "chrome/browser/extensions/app_icon_loader_impl.h" |
| 10 #include "grit/generated_resources.h" | 10 #include "chrome/grit/generated_resources.h" |
| 11 #include "ui/base/l10n/l10n_util.h" | 11 #include "ui/base/l10n/l10n_util.h" |
| 12 #include "ui/message_center/message_center.h" | 12 #include "ui/message_center/message_center.h" |
| 13 #include "ui/message_center/notification.h" | 13 #include "ui/message_center/notification.h" |
| 14 #include "ui/message_center/notification_delegate.h" | 14 #include "ui/message_center/notification_delegate.h" |
| 15 #include "ui/message_center/notification_types.h" | 15 #include "ui/message_center/notification_types.h" |
| 16 #include "ui/message_center/notifier_settings.h" | 16 #include "ui/message_center/notifier_settings.h" |
| 17 | 17 |
| 18 namespace chromeos { | 18 namespace chromeos { |
| 19 namespace file_system_provider { | 19 namespace file_system_provider { |
| 20 namespace { | 20 namespace { |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 while (it != callbacks_.end()) { | 152 while (it != callbacks_.end()) { |
| 153 CallbackMap::iterator current_it = it++; | 153 CallbackMap::iterator current_it = it++; |
| 154 NotificationCallback callback = current_it->second; | 154 NotificationCallback callback = current_it->second; |
| 155 callbacks_.erase(current_it); | 155 callbacks_.erase(current_it); |
| 156 callback.Run(result); | 156 callback.Run(result); |
| 157 } | 157 } |
| 158 } | 158 } |
| 159 | 159 |
| 160 } // namespace file_system_provider | 160 } // namespace file_system_provider |
| 161 } // namespace chromeos | 161 } // namespace chromeos |
| OLD | NEW |