Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(433)

Unified Diff: chrome/browser/dom_ui/dom_ui_thumbnail_source.cc

Issue 6283001: Remove TopSites::IsEnabled() as well as related dead code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/dom_ui/dom_ui_thumbnail_source.cc
diff --git a/chrome/browser/dom_ui/dom_ui_thumbnail_source.cc b/chrome/browser/dom_ui/dom_ui_thumbnail_source.cc
index 8b15821ee93ca946d35158a3b3d4f0c1b6c098b4..e036c06e9f8ade2f5479e0a3dc60aede8af85af1 100644
--- a/chrome/browser/dom_ui/dom_ui_thumbnail_source.cc
+++ b/chrome/browser/dom_ui/dom_ui_thumbnail_source.cc
@@ -15,10 +15,8 @@
DOMUIThumbnailSource::DOMUIThumbnailSource(Profile* profile)
: DataSource(chrome::kChromeUIThumbnailPath, MessageLoop::current()),
profile_(profile) {
- if (history::TopSites::IsEnabled()) {
- // Set TopSites now as Profile isn't thread safe.
- top_sites_ = profile_->GetTopSites();
- }
+ // Set TopSites now as Profile isn't thread safe.
+ top_sites_ = profile_->GetTopSites();
}
DOMUIThumbnailSource::~DOMUIThumbnailSource() {
« no previous file with comments | « no previous file | chrome/browser/dom_ui/most_visited_handler.cc » ('j') | chrome/browser/history/history_backend_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698