| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "apps/app_load_service.h" | |
| 10 #include "base/bind.h" | 9 #include "base/bind.h" |
| 11 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 12 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 13 #include "base/location.h" | 12 #include "base/location.h" |
| 14 #include "base/macros.h" | 13 #include "base/macros.h" |
| 15 #include "base/metrics/histogram_macros.h" | 14 #include "base/metrics/histogram_macros.h" |
| 16 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
| 17 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
| 18 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
| 19 #include "base/threading/thread_task_runner_handle.h" | 18 #include "base/threading/thread_task_runner_handle.h" |
| 20 #include "base/time/time.h" | 19 #include "base/time/time.h" |
| 21 #include "base/values.h" | 20 #include "base/values.h" |
| 21 #include "chrome/browser/apps/app_load_service.h" |
| 22 #include "chrome/browser/background/background_contents_service_factory.h" | 22 #include "chrome/browser/background/background_contents_service_factory.h" |
| 23 #include "chrome/browser/browser_process.h" | 23 #include "chrome/browser/browser_process.h" |
| 24 #include "chrome/browser/chrome_notification_types.h" | 24 #include "chrome/browser/chrome_notification_types.h" |
| 25 #include "chrome/browser/extensions/extension_service.h" | 25 #include "chrome/browser/extensions/extension_service.h" |
| 26 #include "chrome/browser/notifications/notification.h" | 26 #include "chrome/browser/notifications/notification.h" |
| 27 #include "chrome/browser/notifications/notification_delegate.h" | 27 #include "chrome/browser/notifications/notification_delegate.h" |
| 28 #include "chrome/browser/notifications/notification_ui_manager.h" | 28 #include "chrome/browser/notifications/notification_ui_manager.h" |
| 29 #include "chrome/browser/profiles/profile.h" | 29 #include "chrome/browser/profiles/profile.h" |
| 30 #include "chrome/browser/profiles/profile_manager.h" | 30 #include "chrome/browser/profiles/profile_manager.h" |
| 31 #include "chrome/browser/ui/browser.h" | 31 #include "chrome/browser/ui/browser.h" |
| (...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 848 const gfx::Rect& initial_rect, | 848 const gfx::Rect& initial_rect, |
| 849 bool user_gesture, | 849 bool user_gesture, |
| 850 bool* was_blocked) { | 850 bool* was_blocked) { |
| 851 Browser* browser = chrome::FindLastActiveWithProfile( | 851 Browser* browser = chrome::FindLastActiveWithProfile( |
| 852 Profile::FromBrowserContext(new_contents->GetBrowserContext())); | 852 Profile::FromBrowserContext(new_contents->GetBrowserContext())); |
| 853 if (browser) { | 853 if (browser) { |
| 854 chrome::AddWebContents(browser, NULL, new_contents, disposition, | 854 chrome::AddWebContents(browser, NULL, new_contents, disposition, |
| 855 initial_rect, user_gesture, was_blocked); | 855 initial_rect, user_gesture, was_blocked); |
| 856 } | 856 } |
| 857 } | 857 } |
| OLD | NEW |