Disables top sites until we get it in a better shape.
BUG=40313
TEST=see bug. aocampo has some test cases too.
Review URL: http://codereview.chromium.org/3412015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60013 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
index 1d702bd..d40b99d 100644
--- a/chrome/browser/tab_contents/tab_contents.cc
+++ b/chrome/browser/tab_contents/tab_contents.cc
@@ -2560,7 +2560,7 @@
const SkBitmap& bitmap,
const ThumbnailScore& score) {
// Tell History about this thumbnail
- if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kNoTopSites)) {
+ if (history::TopSites::IsEnabled()) {
if (!profile()->IsOffTheRecord())
profile()->GetTopSites()->SetPageThumbnail(url, bitmap, score);
} else {