| 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/background/background_contents_service.h" | 5 #include "chrome/browser/background/background_contents_service.h" |
| 6 | 6 |
| 7 #include "apps/app_load_service.h" | 7 #include "apps/app_load_service.h" |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "chrome/browser/notifications/notification.h" | 27 #include "chrome/browser/notifications/notification.h" |
| 28 #include "chrome/browser/notifications/notification_delegate.h" | 28 #include "chrome/browser/notifications/notification_delegate.h" |
| 29 #include "chrome/browser/notifications/notification_ui_manager.h" | 29 #include "chrome/browser/notifications/notification_ui_manager.h" |
| 30 #include "chrome/browser/profiles/profile.h" | 30 #include "chrome/browser/profiles/profile.h" |
| 31 #include "chrome/browser/profiles/profile_manager.h" | 31 #include "chrome/browser/profiles/profile_manager.h" |
| 32 #include "chrome/browser/ui/browser.h" | 32 #include "chrome/browser/ui/browser.h" |
| 33 #include "chrome/browser/ui/browser_finder.h" | 33 #include "chrome/browser/ui/browser_finder.h" |
| 34 #include "chrome/browser/ui/browser_tabstrip.h" | 34 #include "chrome/browser/ui/browser_tabstrip.h" |
| 35 #include "chrome/browser/ui/host_desktop.h" | 35 #include "chrome/browser/ui/host_desktop.h" |
| 36 #include "chrome/common/chrome_switches.h" | 36 #include "chrome/common/chrome_switches.h" |
| 37 #include "chrome/common/extensions/extension.h" | |
| 38 #include "chrome/common/extensions/extension_constants.h" | 37 #include "chrome/common/extensions/extension_constants.h" |
| 39 #include "chrome/common/extensions/extension_icon_set.h" | 38 #include "chrome/common/extensions/extension_icon_set.h" |
| 40 #include "chrome/common/extensions/manifest_handlers/icons_handler.h" | 39 #include "chrome/common/extensions/manifest_handlers/icons_handler.h" |
| 41 #include "chrome/common/pref_names.h" | 40 #include "chrome/common/pref_names.h" |
| 42 #include "content/public/browser/notification_service.h" | 41 #include "content/public/browser/notification_service.h" |
| 43 #include "content/public/browser/site_instance.h" | 42 #include "content/public/browser/site_instance.h" |
| 44 #include "content/public/browser/web_contents.h" | 43 #include "content/public/browser/web_contents.h" |
| 44 #include "extensions/common/extension.h" |
| 45 #include "extensions/common/manifest_handlers/background_info.h" | 45 #include "extensions/common/manifest_handlers/background_info.h" |
| 46 #include "grit/generated_resources.h" | 46 #include "grit/generated_resources.h" |
| 47 #include "grit/theme_resources.h" | 47 #include "grit/theme_resources.h" |
| 48 #include "ipc/ipc_message.h" | 48 #include "ipc/ipc_message.h" |
| 49 #include "ui/base/l10n/l10n_util.h" | 49 #include "ui/base/l10n/l10n_util.h" |
| 50 #include "ui/base/resource/resource_bundle.h" | 50 #include "ui/base/resource/resource_bundle.h" |
| 51 #include "ui/gfx/image/image.h" | 51 #include "ui/gfx/image/image.h" |
| 52 | 52 |
| 53 #if defined(ENABLE_NOTIFICATIONS) | 53 #if defined(ENABLE_NOTIFICATIONS) |
| 54 #include "ui/message_center/message_center.h" | 54 #include "ui/message_center/message_center.h" |
| (...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 758 bool user_gesture, | 758 bool user_gesture, |
| 759 bool* was_blocked) { | 759 bool* was_blocked) { |
| 760 Browser* browser = chrome::FindLastActiveWithProfile( | 760 Browser* browser = chrome::FindLastActiveWithProfile( |
| 761 Profile::FromBrowserContext(new_contents->GetBrowserContext()), | 761 Profile::FromBrowserContext(new_contents->GetBrowserContext()), |
| 762 chrome::GetActiveDesktop()); | 762 chrome::GetActiveDesktop()); |
| 763 if (browser) { | 763 if (browser) { |
| 764 chrome::AddWebContents(browser, NULL, new_contents, disposition, | 764 chrome::AddWebContents(browser, NULL, new_contents, disposition, |
| 765 initial_pos, user_gesture, was_blocked); | 765 initial_pos, user_gesture, was_blocked); |
| 766 } | 766 } |
| 767 } | 767 } |
| OLD | NEW |