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

Side by Side Diff: components/rappor/sample.cc

Issue 2510803003: Pass RapporService to content/browser/ (Closed)
Patch Set: Fix more compile errors in JNI files Created 4 years 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/rappor/sample.h" 5 #include "components/rappor/public/sample.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/metrics/metrics_hashes.h" 11 #include "base/metrics/metrics_hashes.h"
12 #include "components/rappor/bloom_filter.h" 12 #include "components/rappor/bloom_filter.h"
13 #include "components/rappor/byte_vector_utils.h" 13 #include "components/rappor/byte_vector_utils.h"
14 #include "components/rappor/proto/rappor_metric.pb.h" 14 #include "components/rappor/proto/rappor_metric.pb.h"
15 #include "components/rappor/reports.h" 15 #include "components/rappor/reports.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 RapporReports::Report* report = reports->add_report(); 105 RapporReports::Report* report = reports->add_report();
106 report->set_name_hash(base::HashMetricName( 106 report->set_name_hash(base::HashMetricName(
107 metric_name + "." + kv.first)); 107 metric_name + "." + kv.first));
108 report->set_bits(std::string(report_bytes.begin(), report_bytes.end())); 108 report->set_bits(std::string(report_bytes.begin(), report_bytes.end()));
109 DVLOG(2) << "Exporting sample " << metric_name << "." << kv.first; 109 DVLOG(2) << "Exporting sample " << metric_name << "." << kv.first;
110 } 110 }
111 } 111 }
112 112
113 } // namespace rappor 113 } // namespace rappor
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698