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

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

Issue 3014032: Fix memory leak. (Closed)
Patch Set: Created 10 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/top_sites.cc
diff --git a/chrome/browser/history/top_sites.cc b/chrome/browser/history/top_sites.cc
index d22fc6b4662ab2d8b358301e8d63f15837dd60af..348ab7b6730e655c7556de4f9bad112030ef8ad7 100644
--- a/chrome/browser/history/top_sites.cc
+++ b/chrome/browser/history/top_sites.cc
@@ -654,8 +654,7 @@ void TopSites::AddBlacklistedURL(const GURL& url) {
}
bool TopSites::IsBlacklisted(const GURL& url) {
- Value* dummy = Value::CreateNullValue();
- bool result = blacklist_->GetWithoutPathExpansion(GetURLHash(url), &dummy);
+ bool result = blacklist_->HasKey(GetURLHash(url));
return result;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698