OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/notifications/message_center_settings_controller.h" | 5 #include "chrome/browser/notifications/message_center_settings_controller.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/i18n/string_compare.h" | 10 #include "base/i18n/string_compare.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "chrome/common/extensions/extension_constants.h" | 30 #include "chrome/common/extensions/extension_constants.h" |
31 #include "components/favicon_base/favicon_types.h" | 31 #include "components/favicon_base/favicon_types.h" |
32 #include "content/public/browser/notification_service.h" | 32 #include "content/public/browser/notification_service.h" |
33 #include "content/public/browser/notification_source.h" | 33 #include "content/public/browser/notification_source.h" |
34 #include "extensions/browser/event_router.h" | 34 #include "extensions/browser/event_router.h" |
35 #include "extensions/browser/extension_registry.h" | 35 #include "extensions/browser/extension_registry.h" |
36 #include "extensions/common/constants.h" | 36 #include "extensions/common/constants.h" |
37 #include "extensions/common/extension.h" | 37 #include "extensions/common/extension.h" |
38 #include "extensions/common/permissions/permissions_data.h" | 38 #include "extensions/common/permissions/permissions_data.h" |
39 #include "grit/theme_resources.h" | 39 #include "grit/theme_resources.h" |
40 #include "grit/ui_strings.h" | |
41 #include "ui/base/l10n/l10n_util.h" | 40 #include "ui/base/l10n/l10n_util.h" |
42 #include "ui/base/resource/resource_bundle.h" | 41 #include "ui/base/resource/resource_bundle.h" |
43 #include "ui/gfx/image/image.h" | 42 #include "ui/gfx/image/image.h" |
44 #include "ui/message_center/message_center_style.h" | 43 #include "ui/message_center/message_center_style.h" |
| 44 #include "ui/strings/grit/ui_strings.h" |
45 | 45 |
46 #if defined(OS_CHROMEOS) | 46 #if defined(OS_CHROMEOS) |
47 #include "ash/system/system_notifier.h" | 47 #include "ash/system/system_notifier.h" |
48 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 48 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
49 #endif | 49 #endif |
50 | 50 |
51 using message_center::Notifier; | 51 using message_center::Notifier; |
52 using message_center::NotifierId; | 52 using message_center::NotifierId; |
53 | 53 |
54 namespace message_center { | 54 namespace message_center { |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 // another creating a primary profile, and causes an infinite loop. | 519 // another creating a primary profile, and causes an infinite loop. |
520 // Thus, it would be better to delay creating group for guest login. | 520 // Thus, it would be better to delay creating group for guest login. |
521 base::MessageLoopProxy::current()->PostTask( | 521 base::MessageLoopProxy::current()->PostTask( |
522 FROM_HERE, | 522 FROM_HERE, |
523 base::Bind( | 523 base::Bind( |
524 &MessageCenterSettingsController::CreateNotifierGroupForGuestLogin, | 524 &MessageCenterSettingsController::CreateNotifierGroupForGuestLogin, |
525 weak_factory_.GetWeakPtr())); | 525 weak_factory_.GetWeakPtr())); |
526 } | 526 } |
527 #endif | 527 #endif |
528 } | 528 } |
OLD | NEW |