| Index: components/rappor/rappor_parameters.cc
|
| diff --git a/components/rappor/rappor_parameters.cc b/components/rappor/rappor_parameters.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..276f1da6b0075f3c40ebdd8012c4f9bc34428595
|
| --- /dev/null
|
| +++ b/components/rappor/rappor_parameters.cc
|
| @@ -0,0 +1,22 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "components/rappor/rappor_parameters.h"
|
| +
|
| +#include "base/strings/stringprintf.h"
|
| +
|
| +namespace rappor {
|
| +
|
| +std::string RapporParameters::ToString() const {
|
| + return base::StringPrintf("{ \"%s\", %d, %d, %d, %d, %d, %d }",
|
| + rappor_name.c_str(),
|
| + bloom_filter_size_bytes,
|
| + bloom_filter_hash_function_count,
|
| + fake_prob,
|
| + fake_one_prob,
|
| + one_coin_prob,
|
| + zero_coin_prob);
|
| +}
|
| +
|
| +} // namespace rappor
|
|
|