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

Unified Diff: components/proximity_auth/base64url.cc

Issue 1063323002: Move base64url.* to CryptAuth component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cryptauth_refactor
Patch Set: rename path in chrome/browser/chromeos Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/proximity_auth/base64url.h ('k') | components/proximity_auth/base64url_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/proximity_auth/base64url.cc
diff --git a/components/proximity_auth/base64url.cc b/components/proximity_auth/base64url.cc
deleted file mode 100644
index ae6ee9d87102b95c7c52be4b7654719f0e02739d..0000000000000000000000000000000000000000
--- a/components/proximity_auth/base64url.cc
+++ /dev/null
@@ -1,28 +0,0 @@
-// 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/proximity_auth/base64url.h"
-
-#include "base/base64.h"
-#include "base/strings/string_util.h"
-
-namespace proximity_auth {
-
-void Base64UrlEncode(const std::string& decoded_input,
- std::string* encoded_output) {
- base::Base64Encode(decoded_input, encoded_output);
- base::ReplaceChars(*encoded_output, "+", "-", encoded_output);
- base::ReplaceChars(*encoded_output, "/", "_", encoded_output);
-}
-
-bool Base64UrlDecode(const std::string& encoded_input,
- std::string* decoded_output) {
- std::string adjusted_encoded_input = encoded_input;
- base::ReplaceChars(adjusted_encoded_input, "-", "+", &adjusted_encoded_input);
- base::ReplaceChars(adjusted_encoded_input, "_", "/", &adjusted_encoded_input);
-
- return base::Base64Decode(adjusted_encoded_input, decoded_output);
-}
-
-} // namespace proximity_auth
« no previous file with comments | « components/proximity_auth/base64url.h ('k') | components/proximity_auth/base64url_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698