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

Unified Diff: components/safe_browsing_db/remote_database_manager.cc

Issue 1569673002: [NOT FOR LANDING] Detailed loading traces Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 10 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 | « components/safe_browsing_db/prefix_set.cc ('k') | components/safe_browsing_db/util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_browsing_db/remote_database_manager.cc
diff --git a/components/safe_browsing_db/remote_database_manager.cc b/components/safe_browsing_db/remote_database_manager.cc
index 47d80627032d99d07ce09c2949da84c324a506fb..9b93cae9c5e871f178bcad44570a534e10761fcb 100644
--- a/components/safe_browsing_db/remote_database_manager.cc
+++ b/components/safe_browsing_db/remote_database_manager.cc
@@ -5,7 +5,7 @@
#include "components/safe_browsing_db/remote_database_manager.h"
#include <vector>
-
+#include "base/trace_event/trace_event.h"
#include "base/metrics/histogram_macros.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
@@ -139,6 +139,10 @@ RemoteSafeBrowsingDatabaseManager::RemoteSafeBrowsingDatabaseManager()
}
RemoteSafeBrowsingDatabaseManager::~RemoteSafeBrowsingDatabaseManager() {
+ TRACE_EVENT0(
+ "toplevel",
+ "RemoteSafeBrowsingDatabaseManager::~RemoteSafeBrowsingDatabaseManager");
+
DCHECK(!enabled_);
}
@@ -236,6 +240,7 @@ bool RemoteSafeBrowsingDatabaseManager::IsCsdWhitelistKillSwitchOn() {
bool RemoteSafeBrowsingDatabaseManager::CheckBrowseUrl(const GURL& url,
Client* client) {
+ TRACE_EVENT0("toplevel", "RemoteSafeBrowsingDatabaseManager::CheckBrowseUrl");
DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (!enabled_)
return true;
« no previous file with comments | « components/safe_browsing_db/prefix_set.cc ('k') | components/safe_browsing_db/util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698