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

Unified Diff: net/base/strict_transport_security_state.cc

Issue 399068: Move base64 from 'net/base' into 'base'. (Closed)
Patch Set: rebase Created 11 years, 1 month 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 | « net/base/sdch_manager.cc ('k') | net/http/http_auth_handler_basic.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/strict_transport_security_state.cc
diff --git a/net/base/strict_transport_security_state.cc b/net/base/strict_transport_security_state.cc
index 831818545aed82194abbcad64ad00fea3cb731ec..609241c70e869767af125f3185b246944690a807 100644
--- a/net/base/strict_transport_security_state.cc
+++ b/net/base/strict_transport_security_state.cc
@@ -4,6 +4,7 @@
#include "net/base/strict_transport_security_state.h"
+#include "base/base64.h"
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
#include "base/logging.h"
@@ -13,7 +14,6 @@
#include "base/string_util.h"
#include "base/values.h"
#include "googleurl/src/gurl.h"
-#include "net/base/base64.h"
#include "net/base/dns_util.h"
namespace net {
@@ -198,7 +198,7 @@ void StrictTransportSecurityState::SetDelegate(
// |enabled_hosts_|, to a base64 string which we can include in a JSON file.
static std::wstring HashedDomainToExternalString(const std::string& hashed) {
std::string out;
- CHECK(Base64Encode(hashed, &out));
+ CHECK(base::Base64Encode(hashed, &out));
return ASCIIToWide(out);
}
@@ -207,7 +207,7 @@ static std::wstring HashedDomainToExternalString(const std::string& hashed) {
static std::string ExternalStringToHashedDomain(const std::wstring& external) {
std::string external_ascii = WideToASCII(external);
std::string out;
- if (!Base64Decode(external_ascii, &out) ||
+ if (!base::Base64Decode(external_ascii, &out) ||
out.size() != base::SHA256_LENGTH) {
return std::string();
}
« no previous file with comments | « net/base/sdch_manager.cc ('k') | net/http/http_auth_handler_basic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698