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/first_run/drive_first_run_controller.h" | 5 #include "chrome/browser/chromeos/first_run/drive_first_run_controller.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/system/tray/system_tray_delegate.h" | 8 #include "ash/system/tray/system_tray_delegate.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "chrome/browser/background/background_contents_service.h" | 14 #include "chrome/browser/background/background_contents_service.h" |
15 #include "chrome/browser/background/background_contents_service_factory.h" | 15 #include "chrome/browser/background/background_contents_service_factory.h" |
16 #include "chrome/browser/chrome_notification_types.h" | 16 #include "chrome/browser/chrome_notification_types.h" |
17 #include "chrome/browser/chromeos/login/users/user_manager.h" | 17 #include "chrome/browser/chromeos/login/users/user_manager.h" |
18 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" | 18 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" |
19 #include "chrome/browser/extensions/extension_service.h" | 19 #include "chrome/browser/extensions/extension_service.h" |
20 #include "chrome/browser/tab_contents/background_contents.h" | 20 #include "chrome/browser/tab_contents/background_contents.h" |
21 #include "chrome/browser/ui/browser_navigator.h" | 21 #include "chrome/browser/ui/browser_navigator.h" |
22 #include "chrome/browser/ui/host_desktop.h" | 22 #include "chrome/browser/ui/host_desktop.h" |
23 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" | 23 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" |
24 #include "chrome/browser/ui/singleton_tabs.h" | 24 #include "chrome/browser/ui/singleton_tabs.h" |
| 25 #include "chrome/grit/generated_resources.h" |
| 26 #include "chrome/grit/theme_resources.h" |
25 #include "content/public/browser/browser_thread.h" | 27 #include "content/public/browser/browser_thread.h" |
26 #include "content/public/browser/navigation_controller.h" | 28 #include "content/public/browser/navigation_controller.h" |
27 #include "content/public/browser/notification_details.h" | 29 #include "content/public/browser/notification_details.h" |
28 #include "content/public/browser/notification_observer.h" | 30 #include "content/public/browser/notification_observer.h" |
29 #include "content/public/browser/notification_registrar.h" | 31 #include "content/public/browser/notification_registrar.h" |
30 #include "content/public/browser/notification_source.h" | 32 #include "content/public/browser/notification_source.h" |
31 #include "content/public/browser/notification_types.h" | 33 #include "content/public/browser/notification_types.h" |
32 #include "content/public/browser/render_frame_host.h" | 34 #include "content/public/browser/render_frame_host.h" |
33 #include "content/public/browser/site_instance.h" | 35 #include "content/public/browser/site_instance.h" |
34 #include "content/public/browser/web_contents.h" | 36 #include "content/public/browser/web_contents.h" |
35 #include "content/public/browser/web_contents_observer.h" | 37 #include "content/public/browser/web_contents_observer.h" |
36 #include "extensions/browser/extension_registry.h" | 38 #include "extensions/browser/extension_registry.h" |
37 #include "extensions/browser/extension_system.h" | 39 #include "extensions/browser/extension_system.h" |
38 #include "extensions/common/extension.h" | 40 #include "extensions/common/extension.h" |
39 #include "extensions/common/extension_set.h" | 41 #include "extensions/common/extension_set.h" |
40 #include "grit/generated_resources.h" | |
41 #include "grit/theme_resources.h" | |
42 #include "ui/base/l10n/l10n_util.h" | 42 #include "ui/base/l10n/l10n_util.h" |
43 #include "ui/base/resource/resource_bundle.h" | 43 #include "ui/base/resource/resource_bundle.h" |
44 #include "ui/message_center/message_center.h" | 44 #include "ui/message_center/message_center.h" |
45 #include "ui/message_center/notification.h" | 45 #include "ui/message_center/notification.h" |
46 #include "ui/message_center/notification_delegate.h" | 46 #include "ui/message_center/notification_delegate.h" |
47 #include "url/gurl.h" | 47 #include "url/gurl.h" |
48 | 48 |
49 namespace chromeos { | 49 namespace chromeos { |
50 | 50 |
51 namespace { | 51 namespace { |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 base::UTF8ToUTF16(extension->name()), | 470 base::UTF8ToUTF16(extension->name()), |
471 message_center::NotifierId(message_center::NotifierId::APPLICATION, | 471 message_center::NotifierId(message_center::NotifierId::APPLICATION, |
472 kDriveHostedAppId), | 472 kDriveHostedAppId), |
473 data, | 473 data, |
474 new DriveOfflineNotificationDelegate(profile_))); | 474 new DriveOfflineNotificationDelegate(profile_))); |
475 notification->set_priority(message_center::LOW_PRIORITY); | 475 notification->set_priority(message_center::LOW_PRIORITY); |
476 message_center::MessageCenter::Get()->AddNotification(notification.Pass()); | 476 message_center::MessageCenter::Get()->AddNotification(notification.Pass()); |
477 } | 477 } |
478 | 478 |
479 } // namespace chromeos | 479 } // namespace chromeos |
OLD | NEW |