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

Unified Diff: chrome/browser/net/sqlite_persistent_cookie_store.cc

Issue 2718011: Initial commit of CookieMonster statistics. (Closed)
Patch Set: Fix perf degradation, add requested comment. Created 10 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 | « no previous file | net/base/cookie_monster.h » ('j') | net/base/cookie_monster.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/sqlite_persistent_cookie_store.cc
diff --git a/chrome/browser/net/sqlite_persistent_cookie_store.cc b/chrome/browser/net/sqlite_persistent_cookie_store.cc
index a098c44a4b4196806415eafe3c947eef2bdd3da5..30833bf3215e6137b2df484d1931800e6407cc7c 100644
--- a/chrome/browser/net/sqlite_persistent_cookie_store.cc
+++ b/chrome/browser/net/sqlite_persistent_cookie_store.cc
@@ -231,7 +231,9 @@ void SQLitePersistentCookieStore::Backend::Commit() {
break;
}
}
- transaction.Commit();
+ bool succeeded = transaction.Commit();
+ UMA_HISTOGRAM_ENUMERATION("net.CookieBackingStoreUpdateResults",
+ succeeded ? 0 : 1, 2);
}
// Fire off a close message to the background thread. We could still have a
« no previous file with comments | « no previous file | net/base/cookie_monster.h » ('j') | net/base/cookie_monster.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698