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 <stdint.h> |
| 8 |
7 #include "ash/shell.h" | 9 #include "ash/shell.h" |
8 #include "ash/system/tray/system_tray_delegate.h" | 10 #include "ash/system/tray/system_tray_delegate.h" |
9 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/macros.h" |
10 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
11 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
12 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
13 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
14 #include "chrome/browser/background/background_contents.h" | 17 #include "chrome/browser/background/background_contents.h" |
15 #include "chrome/browser/background/background_contents_service.h" | 18 #include "chrome/browser/background/background_contents_service.h" |
16 #include "chrome/browser/background/background_contents_service_factory.h" | 19 #include "chrome/browser/background/background_contents_service_factory.h" |
17 #include "chrome/browser/chrome_notification_types.h" | 20 #include "chrome/browser/chrome_notification_types.h" |
18 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" | 21 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" |
19 #include "chrome/browser/extensions/extension_service.h" | 22 #include "chrome/browser/extensions/extension_service.h" |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 resource_bundle.GetImageNamed(IDR_NOTIFICATION_DRIVE), | 469 resource_bundle.GetImageNamed(IDR_NOTIFICATION_DRIVE), |
467 base::UTF8ToUTF16(extension->name()), GURL(), | 470 base::UTF8ToUTF16(extension->name()), GURL(), |
468 message_center::NotifierId(message_center::NotifierId::APPLICATION, | 471 message_center::NotifierId(message_center::NotifierId::APPLICATION, |
469 kDriveHostedAppId), | 472 kDriveHostedAppId), |
470 data, new DriveOfflineNotificationDelegate(profile_))); | 473 data, new DriveOfflineNotificationDelegate(profile_))); |
471 notification->set_priority(message_center::LOW_PRIORITY); | 474 notification->set_priority(message_center::LOW_PRIORITY); |
472 message_center::MessageCenter::Get()->AddNotification(notification.Pass()); | 475 message_center::MessageCenter::Get()->AddNotification(notification.Pass()); |
473 } | 476 } |
474 | 477 |
475 } // namespace chromeos | 478 } // namespace chromeos |
OLD | NEW |