OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/dom_distiller/dom_distiller_service_factory.h" | 5 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
| 9 #include "base/sequenced_task_runner.h" |
9 #include "base/task_scheduler/post_task.h" | 10 #include "base/task_scheduler/post_task.h" |
10 #include "chrome/browser/profiles/incognito_helpers.h" | 11 #include "chrome/browser/profiles/incognito_helpers.h" |
11 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
12 #include "components/dom_distiller/content/browser/distiller_page_web_contents.h
" | 13 #include "components/dom_distiller/content/browser/distiller_page_web_contents.h
" |
13 #include "components/dom_distiller/core/article_entry.h" | 14 #include "components/dom_distiller/core/article_entry.h" |
14 #include "components/dom_distiller/core/distiller.h" | 15 #include "components/dom_distiller/core/distiller.h" |
15 #include "components/dom_distiller/core/dom_distiller_store.h" | 16 #include "components/dom_distiller/core/dom_distiller_store.h" |
16 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 17 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
17 #include "components/leveldb_proto/proto_database.h" | 18 #include "components/leveldb_proto/proto_database.h" |
18 #include "components/leveldb_proto/proto_database_impl.h" | 19 #include "components/leveldb_proto/proto_database_impl.h" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 return service; | 98 return service; |
98 } | 99 } |
99 | 100 |
100 content::BrowserContext* DomDistillerServiceFactory::GetBrowserContextToUse( | 101 content::BrowserContext* DomDistillerServiceFactory::GetBrowserContextToUse( |
101 content::BrowserContext* context) const { | 102 content::BrowserContext* context) const { |
102 // Makes normal profile and off-the-record profile use same service instance. | 103 // Makes normal profile and off-the-record profile use same service instance. |
103 return chrome::GetBrowserContextRedirectedInIncognito(context); | 104 return chrome::GetBrowserContextRedirectedInIncognito(context); |
104 } | 105 } |
105 | 106 |
106 } // namespace dom_distiller | 107 } // namespace dom_distiller |
OLD | NEW |