Index: chrome/browser/extensions/convert_web_app.cc |
=================================================================== |
--- chrome/browser/extensions/convert_web_app.cc (revision 81350) |
+++ chrome/browser/extensions/convert_web_app.cc (working copy) |
@@ -15,10 +15,10 @@ |
#include "base/logging.h" |
#include "base/memory/scoped_temp_dir.h" |
#include "base/path_service.h" |
-#include "base/sha2.h" |
#include "base/stringprintf.h" |
#include "base/time.h" |
#include "base/utf_string_conversions.h" |
+#include "crypto/sha2.h" |
#include "chrome/common/chrome_paths.h" |
#include "chrome/common/extensions/extension.h" |
#include "chrome/common/extensions/extension_constants.h" |
@@ -46,12 +46,12 @@ |
// auto-updated using ExtensionUpdater. But Chrome does notice updates to the |
// manifest and regenerates these extensions. |
std::string GenerateKey(const GURL& manifest_url) { |
- char raw[base::SHA256_LENGTH] = {0}; |
+ char raw[crypto::SHA256_LENGTH] = {0}; |
std::string key; |
- base::SHA256HashString(manifest_url.spec().c_str(), |
- raw, |
- base::SHA256_LENGTH); |
- base::Base64Encode(std::string(raw, base::SHA256_LENGTH), &key); |
+ crypto::SHA256HashString(manifest_url.spec().c_str(), |
+ raw, |
+ crypto::SHA256_LENGTH); |
+ base::Base64Encode(std::string(raw, crypto::SHA256_LENGTH), &key); |
return key; |
} |