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

Unified Diff: base/base32.cc

Issue 2547863002: Move base32 into base so that it can be used within base.
Patch Set: sync to position 437832 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/base32.h ('k') | base/base32_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/base32.cc
diff --git a/components/base32/base32.cc b/base/base32.cc
similarity index 93%
rename from components/base32/base32.cc
rename to base/base32.cc
index c6490fb2364f4915724e233116266ff941415eab..3ca94f2d38061874c6cad3621e26459ea67350a1 100644
--- a/components/base32/base32.cc
+++ b/base/base32.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/base32/base32.h"
+#include "base/base32.h"
#include <stddef.h>
#include <algorithm>
@@ -10,13 +10,13 @@
#include "base/logging.h"
-namespace base32 {
+namespace base {
namespace {
constexpr char kEncoding[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
} // namespace
-std::string Base32Encode(base::StringPiece input, Base32EncodePolicy policy) {
+std::string Base32Encode(StringPiece input, Base32EncodePolicy policy) {
if (input.empty())
return std::string();
@@ -72,4 +72,4 @@ std::string Base32Encode(base::StringPiece input, Base32EncodePolicy policy) {
return output;
}
-} // namespace base32
+} // namespace base
« no previous file with comments | « base/base32.h ('k') | base/base32_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698