| 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/prerender/prerender_manager_factory.h" | 5 #include "chrome/browser/prerender/prerender_manager_factory.h" |
| 6 | 6 |
| 7 #include "base/debug/trace_event.h" | |
| 8 #include "base/sys_info.h" | 7 #include "base/sys_info.h" |
| 8 #include "base/trace_event/trace_event.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/history/history_service_factory.h" | 10 #include "chrome/browser/history/history_service_factory.h" |
| 11 #include "chrome/browser/predictors/predictor_database_factory.h" | 11 #include "chrome/browser/predictors/predictor_database_factory.h" |
| 12 #include "chrome/browser/prerender/prerender_manager.h" | 12 #include "chrome/browser/prerender/prerender_manager.h" |
| 13 #include "chrome/browser/profiles/incognito_helpers.h" | 13 #include "chrome/browser/profiles/incognito_helpers.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/sync/profile_sync_service_factory.h" | 15 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 16 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 16 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| 17 | 17 |
| 18 #if defined(ENABLE_EXTENSIONS) | 18 #if defined(ENABLE_EXTENSIONS) |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 profile, g_browser_process->prerender_tracker()); | 65 profile, g_browser_process->prerender_tracker()); |
| 66 return prerender_manager; | 66 return prerender_manager; |
| 67 } | 67 } |
| 68 | 68 |
| 69 content::BrowserContext* PrerenderManagerFactory::GetBrowserContextToUse( | 69 content::BrowserContext* PrerenderManagerFactory::GetBrowserContextToUse( |
| 70 content::BrowserContext* context) const { | 70 content::BrowserContext* context) const { |
| 71 return chrome::GetBrowserContextOwnInstanceInIncognito(context); | 71 return chrome::GetBrowserContextOwnInstanceInIncognito(context); |
| 72 } | 72 } |
| 73 | 73 |
| 74 } // namespace prerender | 74 } // namespace prerender |
| OLD | NEW |