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

Unified Diff: net/disk_cache/eviction.cc

Issue 15203004: Disk cache: Reference CL for the implementation of file format version 3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 7 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 | « net/disk_cache/eviction.h ('k') | net/disk_cache/file.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/eviction.cc
===================================================================
--- net/disk_cache/eviction.cc (revision 199883)
+++ net/disk_cache/eviction.cc (working copy)
@@ -35,6 +35,7 @@
#include "base/string_util.h"
#include "base/time.h"
#include "net/disk_cache/backend_impl.h"
+#include "net/disk_cache/disk_format.h"
#include "net/disk_cache/entry_impl.h"
#include "net/disk_cache/experiments.h"
#include "net/disk_cache/histogram_macros.h"
@@ -297,13 +298,9 @@
entry->entry()->Store();
rankings_->Insert(entry->rankings(), true, Rankings::DELETED);
}
- if (!empty) {
+ if (!empty)
backend_->OnEvent(Stats::TRIM_ENTRY);
- static const char gajs[] = "http://www.google-analytics.com/ga.js";
- if (!entry->GetKey().compare(gajs))
- backend_->OnEvent(Stats::GAJS_EVICTED);
- }
entry->Release();
return true;
« no previous file with comments | « net/disk_cache/eviction.h ('k') | net/disk_cache/file.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698