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/sys_info.h" | 7 #include "base/sys_info.h" |
8 #include "base/trace_event/trace_event.h" | 8 #include "base/trace_event/trace_event.h" |
9 #include "chrome/browser/browser_process.h" | |
10 #include "chrome/browser/history/history_service_factory.h" | 9 #include "chrome/browser/history/history_service_factory.h" |
11 #include "chrome/browser/predictors/predictor_database_factory.h" | 10 #include "chrome/browser/predictors/predictor_database_factory.h" |
12 #include "chrome/browser/prerender/prerender_manager.h" | 11 #include "chrome/browser/prerender/prerender_manager.h" |
13 #include "chrome/browser/profiles/incognito_helpers.h" | 12 #include "chrome/browser/profiles/incognito_helpers.h" |
14 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/browser/sync/profile_sync_service_factory.h" | 14 #include "chrome/browser/sync/profile_sync_service_factory.h" |
16 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 15 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
17 | 16 |
18 #if defined(ENABLE_EXTENSIONS) | 17 #if defined(ENABLE_EXTENSIONS) |
19 #include "extensions/browser/extension_system_provider.h" | 18 #include "extensions/browser/extension_system_provider.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 61 |
63 return new PrerenderManager(profile); | 62 return new PrerenderManager(profile); |
64 } | 63 } |
65 | 64 |
66 content::BrowserContext* PrerenderManagerFactory::GetBrowserContextToUse( | 65 content::BrowserContext* PrerenderManagerFactory::GetBrowserContextToUse( |
67 content::BrowserContext* context) const { | 66 content::BrowserContext* context) const { |
68 return chrome::GetBrowserContextOwnInstanceInIncognito(context); | 67 return chrome::GetBrowserContextOwnInstanceInIncognito(context); |
69 } | 68 } |
70 | 69 |
71 } // namespace prerender | 70 } // namespace prerender |
OLD | NEW |