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

Side by Side Diff: components/safe_browsing_db/v4_protocol_manager_util.cc

Issue 2373523003: Clean up sparse_histogram.h header (Closed)
Patch Set: Rebase update on Oct 18 Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/safe_browsing_db/v4_protocol_manager_util.h" 5 #include "components/safe_browsing_db/v4_protocol_manager_util.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/metrics/sparse_histogram.h" 8 #include "base/metrics/histogram_macros.h"
9 #include "base/rand_util.h" 9 #include "base/rand_util.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
11 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
12 #include "crypto/sha2.h" 12 #include "crypto/sha2.h"
13 #include "net/base/escape.h" 13 #include "net/base/escape.h"
14 #include "net/http/http_request_headers.h" 14 #include "net/http/http_request_headers.h"
15 #include "url/url_util.h" 15 #include "url/url_util.h"
16 16
17 using base::Time; 17 using base::Time;
18 using base::TimeDelta; 18 using base::TimeDelta;
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 // static 503 // static
504 void V4ProtocolManagerUtil::SetClientInfoFromConfig( 504 void V4ProtocolManagerUtil::SetClientInfoFromConfig(
505 ClientInfo* client_info, 505 ClientInfo* client_info,
506 const V4ProtocolConfig& config) { 506 const V4ProtocolConfig& config) {
507 DCHECK(client_info); 507 DCHECK(client_info);
508 client_info->set_client_id(config.client_name); 508 client_info->set_client_id(config.client_name);
509 client_info->set_client_version(config.version); 509 client_info->set_client_version(config.version);
510 } 510 }
511 511
512 } // namespace safe_browsing 512 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « components/safe_browsing_db/prefix_set.cc ('k') | components/sync/device_info/device_count_metrics_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698