Index: components/safe_browsing_db/v4_update_protocol_manager.cc |
diff --git a/components/safe_browsing_db/v4_update_protocol_manager.cc b/components/safe_browsing_db/v4_update_protocol_manager.cc |
index 23617f319f3286c8334a0a2f4afe3accb52a4515..a67c4071110dee3e88a72ac19f65f985539b751c 100644 |
--- a/components/safe_browsing_db/v4_update_protocol_manager.cc |
+++ b/components/safe_browsing_db/v4_update_protocol_manager.cc |
@@ -6,7 +6,7 @@ |
#include <utility> |
-#include "base/base64.h" |
+#include "base/base64url.h" |
#include "base/macros.h" |
#include "base/metrics/histogram_macros.h" |
#include "base/rand_util.h" |
@@ -215,8 +215,8 @@ std::string V4UpdateProtocolManager::GetBase64SerializedUpdateRequestProto( |
// Serialize and Base64 encode. |
std::string req_data, req_base64; |
request.SerializeToString(&req_data); |
- base::Base64Encode(req_data, &req_base64); |
- |
+ base::Base64UrlEncode(req_data, base::Base64UrlEncodePolicy::INCLUDE_PADDING, |
+ &req_base64); |
return req_base64; |
} |