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

Unified Diff: components/update_client/ping_manager.cc

Issue 2888183003: Consolidate the update_client serialization code. (Closed)
Patch Set: wip Created 3 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 | « components/update_client/component.cc ('k') | components/update_client/ping_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/update_client/ping_manager.cc
diff --git a/components/update_client/ping_manager.cc b/components/update_client/ping_manager.cc
index 121d7117895d875137d3cfdb0282846b14024ee7..66d9e2b970c41ca99bad61d8d343b4e5cea7c1fa 100644
--- a/components/update_client/ping_manager.cc
+++ b/components/update_client/ping_manager.cc
@@ -67,6 +67,9 @@ void PingSender::OnRequestSenderComplete(int error,
bool PingSender::SendPing(const Component& component) {
DCHECK(thread_checker_.CalledOnValidThread());
+ if (component.events().empty())
+ return false;
+
auto urls(config_->PingUrl());
if (component.crx_component().requires_network_encryption)
RemoveUnsecureUrls(&urls);
« no previous file with comments | « components/update_client/component.cc ('k') | components/update_client/ping_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698