Move clustering functionality of HistoryAdapter to its own class.

This way it can be used by the BrowserDownloadsAdapter (in a
separate changelist) to fix http://b/issue?id=2367226
2 files changed