Index: chrome/browser/ui/webui/ntp/suggestions_source_top_sites.h |
diff --git a/chrome/browser/ui/webui/ntp/suggestions_source_top_sites.h b/chrome/browser/ui/webui/ntp/suggestions_source_top_sites.h |
index 7a060ebd2477dd900e9426f1ccceb3e22e4b2bce..dfa7d6ab836ecb6036ec7595adfb067616ea55e2 100644 |
--- a/chrome/browser/ui/webui/ntp/suggestions_source_top_sites.h |
+++ b/chrome/browser/ui/webui/ntp/suggestions_source_top_sites.h |
@@ -10,6 +10,7 @@ |
#include "chrome/browser/cancelable_request.h" |
#include "chrome/browser/history/history_types.h" |
+#include "chrome/browser/history/visit_filter.h" |
#include "chrome/browser/ui/webui/ntp/suggestions_source.h" |
class SuggestionsCombiner; |
@@ -39,6 +40,16 @@ class SuggestionsSourceTopSites : public SuggestionsSource { |
const history::FilteredURLList& data); |
private: |
+ |
+ // Gets the sorting order from the command-line arguments. Defaults to |
+ // |ORDER_BY_RECENCY| if there are no command-line argument specifying a |
+ // sorting order. |
+ static history::VisitFilter::SortingOrder GetSortingOrder(); |
+ |
+ // Gets the filter width from the command-line arguments. Defaults to one |
+ // hour if there are no command-line argument setting the filter width. |
+ static base::TimeDelta GetFilterWidth(); |
+ |
// Our combiner. |
SuggestionsCombiner* combiner_; |