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

Side by Side Diff: chrome/browser/history/page_usage_data.cc

Issue 274040: More style nits. (Closed)
Patch Set: Created 11 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/history/page_usage_data.h" 5 #include "chrome/browser/history/page_usage_data.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "third_party/skia/include/core/SkBitmap.h" 9 #include "third_party/skia/include/core/SkBitmap.h"
10 10
(...skipping 10 matching lines...) Expand all
21 thumbnail_set_ = true; 21 thumbnail_set_ = true;
22 } 22 }
23 23
24 void PageUsageData::SetFavIcon(SkBitmap* img) { 24 void PageUsageData::SetFavIcon(SkBitmap* img) {
25 if (favicon_ && favicon_ != img) 25 if (favicon_ && favicon_ != img)
26 delete favicon_; 26 delete favicon_;
27 favicon_ = img; 27 favicon_ = img;
28 favicon_set_ = true; 28 favicon_set_ = true;
29 } 29 }
30 30
31 //static 31 // static
32 bool PageUsageData::Predicate(const PageUsageData* lhs, 32 bool PageUsageData::Predicate(const PageUsageData* lhs,
33 const PageUsageData* rhs) { 33 const PageUsageData* rhs) {
34 return lhs->GetScore() > rhs->GetScore(); 34 return lhs->GetScore() > rhs->GetScore();
35 } 35 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698