Commit bba0d6b9 authored by Varun Khaneja's avatar Varun Khaneja Committed by Commit Bot

Use basic base64 instead of URL encoded.

Bug: 767888
Change-Id: Ib78c85028834b58510ad3f52189afcf0aa9fe30b
Reviewed-on: https://chromium-review.googlesource.com/691074Reviewed-by: default avatarLuke Z <lpz@chromium.org>
Commit-Queue: Varun Khaneja <vakh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#505203}
parent 92a4cfcf
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include <utility> #include <utility>
#include <vector> #include <vector>
#include "base/base64.h"
#include "base/base64url.h" #include "base/base64url.h"
#include "base/callback.h" #include "base/callback.h"
#include "base/i18n/time_formatting.h" #include "base/i18n/time_formatting.h"
...@@ -253,10 +254,8 @@ std::string ParseThreatDetailsInfo( ...@@ -253,10 +254,8 @@ std::string ParseThreatDetailsInfo(
std::string serialized; std::string serialized;
if (report.SerializeToString(&serialized)) { if (report.SerializeToString(&serialized)) {
std::string base64_encoded; std::string base64_encoded;
base::Base64UrlEncode(serialized, base::Base64Encode(serialized, &base64_encoded);
base::Base64UrlEncodePolicy::INCLUDE_PADDING, report_request.SetString("csbrr(base64)", base64_encoded);
&base64_encoded);
report_request.SetString("base64(serialized)", base64_encoded);
} }
base::Value* report_request_tree = &report_request; base::Value* report_request_tree = &report_request;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment