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 13 matching lines...) Expand all Loading... |
24 #include "chrome/browser/notifications/desktop_notification_service.h" | 24 #include "chrome/browser/notifications/desktop_notification_service.h" |
25 #include "chrome/browser/notifications/notification.h" | 25 #include "chrome/browser/notifications/notification.h" |
26 #include "chrome/browser/notifications/notification_delegate.h" | 26 #include "chrome/browser/notifications/notification_delegate.h" |
27 #include "chrome/browser/notifications/notification_ui_manager.h" | 27 #include "chrome/browser/notifications/notification_ui_manager.h" |
28 #include "chrome/browser/profiles/profile.h" | 28 #include "chrome/browser/profiles/profile.h" |
29 #include "chrome/browser/profiles/profile_manager.h" | 29 #include "chrome/browser/profiles/profile_manager.h" |
30 #include "chrome/browser/ui/browser.h" | 30 #include "chrome/browser/ui/browser.h" |
31 #include "chrome/browser/ui/browser_finder.h" | 31 #include "chrome/browser/ui/browser_finder.h" |
32 #include "chrome/browser/ui/browser_tabstrip.h" | 32 #include "chrome/browser/ui/browser_tabstrip.h" |
33 #include "chrome/browser/ui/host_desktop.h" | 33 #include "chrome/browser/ui/host_desktop.h" |
34 #include "chrome/common/chrome_switches.h" | |
35 #include "chrome/common/extensions/extension_constants.h" | 34 #include "chrome/common/extensions/extension_constants.h" |
36 #include "chrome/common/pref_names.h" | 35 #include "chrome/common/pref_names.h" |
37 #include "content/public/browser/notification_service.h" | 36 #include "content/public/browser/notification_service.h" |
38 #include "content/public/browser/site_instance.h" | 37 #include "content/public/browser/site_instance.h" |
39 #include "content/public/browser/web_contents.h" | 38 #include "content/public/browser/web_contents.h" |
40 #include "extensions/browser/extension_host.h" | 39 #include "extensions/browser/extension_host.h" |
41 #include "extensions/browser/extension_registry.h" | 40 #include "extensions/browser/extension_registry.h" |
42 #include "extensions/browser/extension_system.h" | 41 #include "extensions/browser/extension_system.h" |
43 #include "extensions/common/constants.h" | 42 #include "extensions/common/constants.h" |
44 #include "extensions/common/extension.h" | 43 #include "extensions/common/extension.h" |
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
787 bool user_gesture, | 786 bool user_gesture, |
788 bool* was_blocked) { | 787 bool* was_blocked) { |
789 Browser* browser = chrome::FindLastActiveWithProfile( | 788 Browser* browser = chrome::FindLastActiveWithProfile( |
790 Profile::FromBrowserContext(new_contents->GetBrowserContext()), | 789 Profile::FromBrowserContext(new_contents->GetBrowserContext()), |
791 chrome::GetActiveDesktop()); | 790 chrome::GetActiveDesktop()); |
792 if (browser) { | 791 if (browser) { |
793 chrome::AddWebContents(browser, NULL, new_contents, disposition, | 792 chrome::AddWebContents(browser, NULL, new_contents, disposition, |
794 initial_pos, user_gesture, was_blocked); | 793 initial_pos, user_gesture, was_blocked); |
795 } | 794 } |
796 } | 795 } |
OLD | NEW |