| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/history/top_sites_factory.h" | 5 #include "chrome/browser/history/top_sites_factory.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 8 #include "base/macros.h" | 10 #include "base/macros.h" |
| 9 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
| 12 #include "build/build_config.h" |
| 10 #include "chrome/browser/history/history_service_factory.h" | 13 #include "chrome/browser/history/history_service_factory.h" |
| 11 #include "chrome/browser/history/history_utils.h" | 14 #include "chrome/browser/history/history_utils.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/grit/chromium_strings.h" | 16 #include "chrome/grit/chromium_strings.h" |
| 14 #include "chrome/grit/generated_resources.h" | 17 #include "chrome/grit/generated_resources.h" |
| 15 #include "chrome/grit/locale_settings.h" | 18 #include "chrome/grit/locale_settings.h" |
| 16 #include "components/history/core/browser/history_constants.h" | 19 #include "components/history/core/browser/history_constants.h" |
| 17 #include "components/history/core/browser/top_sites_impl.h" | 20 #include "components/history/core/browser/top_sites_impl.h" |
| 18 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 21 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| 19 #include "components/pref_registry/pref_registry_syncable.h" | 22 #include "components/pref_registry/pref_registry_syncable.h" |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 } | 118 } |
| 116 | 119 |
| 117 void TopSitesFactory::RegisterProfilePrefs( | 120 void TopSitesFactory::RegisterProfilePrefs( |
| 118 user_prefs::PrefRegistrySyncable* registry) { | 121 user_prefs::PrefRegistrySyncable* registry) { |
| 119 history::TopSitesImpl::RegisterPrefs(registry); | 122 history::TopSitesImpl::RegisterPrefs(registry); |
| 120 } | 123 } |
| 121 | 124 |
| 122 bool TopSitesFactory::ServiceIsNULLWhileTesting() const { | 125 bool TopSitesFactory::ServiceIsNULLWhileTesting() const { |
| 123 return true; | 126 return true; |
| 124 } | 127 } |
| OLD | NEW |