OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/extensions/file_manager/desktop_notifications.
h" | 5 #include "chrome/browser/chromeos/file_manager/desktop_notifications.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "chrome/browser/chromeos/extensions/file_manager/url_util.h" | 11 #include "chrome/browser/chromeos/file_manager/url_util.h" |
12 #include "chrome/browser/notifications/desktop_notification_service.h" | 12 #include "chrome/browser/notifications/desktop_notification_service.h" |
13 #include "chrome/browser/notifications/notification_delegate.h" | 13 #include "chrome/browser/notifications/notification_delegate.h" |
14 #include "grit/generated_resources.h" | 14 #include "grit/generated_resources.h" |
15 #include "grit/theme_resources.h" | 15 #include "grit/theme_resources.h" |
16 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
17 #include "ui/base/resource/resource_bundle.h" | 17 #include "ui/base/resource/resource_bundle.h" |
18 | 18 |
19 namespace file_manager { | 19 namespace file_manager { |
20 namespace { | 20 namespace { |
21 | 21 |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 | 379 |
380 string16 DesktopNotifications::GetNotificationMessageForTest( | 380 string16 DesktopNotifications::GetNotificationMessageForTest( |
381 const std::string& id) const { | 381 const std::string& id) const { |
382 NotificationMap::const_iterator it = notification_map_.find(id); | 382 NotificationMap::const_iterator it = notification_map_.find(id); |
383 if (it == notification_map_.end()) | 383 if (it == notification_map_.end()) |
384 return string16(); | 384 return string16(); |
385 return it->second->message(); | 385 return it->second->message(); |
386 } | 386 } |
387 | 387 |
388 } // namespace file_manager | 388 } // namespace file_manager |
OLD | NEW |