diff options
author | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-26 23:14:07 +0000 |
---|---|---|
committer | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-26 23:14:07 +0000 |
commit | 4020fcfb93f0ab20ada803f8ff0086e9449e5fa3 (patch) | |
tree | 450aa4e760dac1e4c50943aa5f7b77b958450441 /chrome/browser/history/page_usage_data.cc | |
parent | 36353a8c7ca56534d8ab5728034d96aacf960b1d (diff) | |
download | chromium_src-4020fcfb93f0ab20ada803f8ff0086e9449e5fa3.zip chromium_src-4020fcfb93f0ab20ada803f8ff0086e9449e5fa3.tar.gz chromium_src-4020fcfb93f0ab20ada803f8ff0086e9449e5fa3.tar.bz2 |
Removes unused thumbnail and favicon fields from PageUsageData.
BUG=None
TEST=None
Review URL: https://chromiumcodereview.appspot.com/10673005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144316 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/history/page_usage_data.cc')
-rw-r--r-- | chrome/browser/history/page_usage_data.cc | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/chrome/browser/history/page_usage_data.cc b/chrome/browser/history/page_usage_data.cc index adfd8d9..5728f71 100644 --- a/chrome/browser/history/page_usage_data.cc +++ b/chrome/browser/history/page_usage_data.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -6,37 +6,12 @@ #include <algorithm> -#include "third_party/skia/include/core/SkBitmap.h" - PageUsageData::PageUsageData(history::URLID id) : id_(id), - thumbnail_(NULL), - thumbnail_set_(false), - thumbnail_pending_(false), - favicon_(NULL), - favicon_set_(false), - favicon_pending_(false), score_(0.0) { } PageUsageData::~PageUsageData() { - delete thumbnail_; - delete favicon_; -} - -void PageUsageData::SetThumbnail(SkBitmap* img) { - if (thumbnail_ && thumbnail_ != img) - delete thumbnail_; - - thumbnail_ = img; - thumbnail_set_ = true; -} - -void PageUsageData::SetFavicon(SkBitmap* img) { - if (favicon_ && favicon_ != img) - delete favicon_; - favicon_ = img; - favicon_set_ = true; } // static |