summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents
diff options
context:
space:
mode:
authormeelapshah@chromium.org <meelapshah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-07 22:39:45 +0000
committermeelapshah@chromium.org <meelapshah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-07 22:39:45 +0000
commit3f543929ad15fa6c644808d4ba61b758bc12bbe7 (patch)
tree1b4f233f36b469ba11120e71dd897ad1f8d0a860 /chrome/browser/tab_contents
parent5c943180e410b2a4e76f93e1612985cdab407e8c (diff)
downloadchromium_src-3f543929ad15fa6c644808d4ba61b758bc12bbe7.zip
chromium_src-3f543929ad15fa6c644808d4ba61b758bc12bbe7.tar.gz
chromium_src-3f543929ad15fa6c644808d4ba61b758bc12bbe7.tar.bz2
Change ThumbnailStore to use sqlite instead of individual files.
Review URL: http://codereview.chromium.org/149223 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20097 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r--chrome/browser/tab_contents/tab_contents.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
index d239955..04e4a26e 100644
--- a/chrome/browser/tab_contents/tab_contents.cc
+++ b/chrome/browser/tab_contents/tab_contents.cc
@@ -1650,8 +1650,8 @@ void TabContents::UpdateThumbnail(const GURL& url,
const ThumbnailScore& score) {
// Tell History about this thumbnail
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kThumbnailStore)) {
- profile()->GetThumbnailStore()->
- SetPageThumbnail(url, bitmap, score, !profile()->IsOffTheRecord());
+ if (!profile()->IsOffTheRecord())
+ profile()->GetThumbnailStore()->SetPageThumbnail(url, bitmap, score);
} else {
HistoryService* hs;
if (!profile()->IsOffTheRecord() &&