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

Unified Diff: blimp/common/blob_cache/id_util.cc

Issue 2626423004: Remove all //blimp code. (Closed)
Patch Set: One last(?) `git merge` for good measure. Created 3 years, 11 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 | « blimp/common/blob_cache/id_util.h ('k') | blimp/common/blob_cache/id_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/common/blob_cache/id_util.cc
diff --git a/blimp/common/blob_cache/id_util.cc b/blimp/common/blob_cache/id_util.cc
deleted file mode 100644
index f33c714b9fcef3db3d5a4b89bcf66f6abf79c423..0000000000000000000000000000000000000000
--- a/blimp/common/blob_cache/id_util.cc
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2016 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 "blimp/common/blob_cache/id_util.h"
-
-#include "base/strings/string_number_conversions.h"
-#include "base/strings/string_piece.h"
-#include "base/strings/string_util.h"
-#include "blimp/common/blob_cache/blob_cache.h"
-#include "crypto/sha2.h"
-
-namespace blimp {
-
-const BlobId CalculateBlobId(const void* data, size_t data_size) {
- return crypto::SHA256HashString(
- base::StringPiece(reinterpret_cast<const char*>(data), data_size));
-}
-
-const BlobId CalculateBlobId(const std::string& data) {
- return crypto::SHA256HashString(data);
-}
-
-const std::string BlobIdToString(const BlobId& id) {
- DCHECK(IsValidBlobId(id)) << "Invalid blob ID: " << id;
- return base::ToLowerASCII(base::HexEncode(id.data(), id.length()));
-}
-
-bool IsValidBlobId(const BlobId& id) {
- return crypto::kSHA256Length == id.length();
-}
-
-} // namespace blimp
« no previous file with comments | « blimp/common/blob_cache/id_util.h ('k') | blimp/common/blob_cache/id_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698