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/ui/webui/ntp/suggestions_source_top_sites.h" | 5 #include "chrome/browser/ui/webui/ntp/suggestions_source_top_sites.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/history/history_service_factory.h" | 13 #include "chrome/browser/history/history_service_factory.h" |
14 #include "chrome/browser/history/top_sites.h" | 14 #include "chrome/browser/history/top_sites_provider.h" |
sdefresne
2014/12/19 15:11:42
Appears to be unused, remove.
Jitu( very slow this week)
2014/12/26 14:04:28
Done.
| |
15 #include "chrome/browser/history/visit_filter.h" | 15 #include "chrome/browser/history/visit_filter.h" |
16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" | 17 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
18 #include "chrome/browser/ui/webui/ntp/suggestions_combiner.h" | 18 #include "chrome/browser/ui/webui/ntp/suggestions_combiner.h" |
19 #include "chrome/common/chrome_switches.h" | 19 #include "chrome/common/chrome_switches.h" |
20 | 20 |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 // The weight used by the combiner to determine which ratio of suggestions | 24 // The weight used by the combiner to determine which ratio of suggestions |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
129 // static | 129 // static |
130 base::TimeDelta SuggestionsSourceTopSites::GetFilterWidth() { | 130 base::TimeDelta SuggestionsSourceTopSites::GetFilterWidth() { |
131 return base::TimeDelta::FromHours(1); | 131 return base::TimeDelta::FromHours(1); |
132 } | 132 } |
133 | 133 |
134 // static | 134 // static |
135 history::VisitFilter::SortingOrder | 135 history::VisitFilter::SortingOrder |
136 SuggestionsSourceTopSites::GetSortingOrder() { | 136 SuggestionsSourceTopSites::GetSortingOrder() { |
137 return history::VisitFilter::ORDER_BY_RECENCY; | 137 return history::VisitFilter::ORDER_BY_RECENCY; |
138 } | 138 } |
OLD | NEW |