OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/notifications/sync_notifier/synced_notification.h" | 5 #include "chrome/browser/notifications/sync_notifier/synced_notification.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "base/time.h" | 9 #include "base/time/time.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
12 #include "chrome/browser/notifications/notification.h" | 12 #include "chrome/browser/notifications/notification.h" |
13 #include "chrome/browser/notifications/notification_ui_manager.h" | 13 #include "chrome/browser/notifications/notification_ui_manager.h" |
14 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_delegate.h" | 14 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_delegate.h" |
15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
16 #include "sync/protocol/sync.pb.h" | 16 #include "sync/protocol/sync.pb.h" |
17 #include "sync/protocol/synced_notification_specifics.pb.h" | 17 #include "sync/protocol/synced_notification_specifics.pb.h" |
18 #include "ui/gfx/image/image.h" | 18 #include "ui/gfx/image/image.h" |
19 #include "ui/message_center/message_center_util.h" | 19 #include "ui/message_center/message_center_util.h" |
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 int index) const { | 561 int index) const { |
562 if (specifics_.coalesced_notification().render_info().expanded_info(). | 562 if (specifics_.coalesced_notification().render_info().expanded_info(). |
563 collapsed_info_size() < index + 1) | 563 collapsed_info_size() < index + 1) |
564 return std::string(); | 564 return std::string(); |
565 | 565 |
566 return specifics_.coalesced_notification().render_info().expanded_info(). | 566 return specifics_.coalesced_notification().render_info().expanded_info(). |
567 collapsed_info(index).simple_collapsed_layout().description(); | 567 collapsed_info(index).simple_collapsed_layout().description(); |
568 } | 568 } |
569 | 569 |
570 } // namespace notifier | 570 } // namespace notifier |
OLD | NEW |