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

Unified Diff: chrome/browser/history/page_usage_data.cc

Issue 10673005: Removes unused thumbnail and favicon fields from PageUsageData. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 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
« no previous file with comments | « chrome/browser/history/page_usage_data.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/page_usage_data.cc
diff --git a/chrome/browser/history/page_usage_data.cc b/chrome/browser/history/page_usage_data.cc
index adfd8d90b68f286d7f58bed93332a0d63a70cc1c..5728f7133219091dd92e804dbc4052b6f319ae26 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
« no previous file with comments | « chrome/browser/history/page_usage_data.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698