Index: components/webcrypto/webcrypto_util.cc |
diff --git a/content/child/webcrypto/webcrypto_util.cc b/components/webcrypto/webcrypto_util.cc |
similarity index 97% |
rename from content/child/webcrypto/webcrypto_util.cc |
rename to components/webcrypto/webcrypto_util.cc |
index 01536422e8bd11eb0e65e00eb0350ba5e6cff4bf..e8995106a3b23de989a94ff6eaf5a151ea381f74 100644 |
--- a/content/child/webcrypto/webcrypto_util.cc |
+++ b/components/webcrypto/webcrypto_util.cc |
@@ -2,16 +2,16 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "content/child/webcrypto/webcrypto_util.h" |
+#include "components/webcrypto/webcrypto_util.h" |
#include "base/logging.h" |
#include "base/numerics/safe_math.h" |
-#include "content/child/webcrypto/status.h" |
+#include "components/webcrypto/status.h" |
#include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h" |
#include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h" |
#include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h" |
-namespace content { |
+namespace components { |
namespace webcrypto { |
@@ -242,10 +242,10 @@ Status VerifyUsagesBeforeImportAsymmetricKey( |
// The JWK could represent either a public key or private key. The usages |
// must make sense for one of the two. The usages will be checked again by |
// ImportKeyJwk() once the key type has been determined. |
- if (CheckKeyCreationUsages( |
- all_public_key_usages, usages, true).IsError() && |
- CheckKeyCreationUsages( |
- all_private_key_usages, usages, false).IsError()) { |
+ if (CheckKeyCreationUsages(all_public_key_usages, usages, true) |
+ .IsError() && |
+ CheckKeyCreationUsages(all_private_key_usages, usages, false) |
+ .IsError()) { |
return Status::ErrorCreateKeyBadUsages(); |
} |
return Status::Success(); |
@@ -329,4 +329,4 @@ Status GetUsagesForGenerateAsymmetricKey( |
} // namespace webcrypto |
-} // namespace content |
+} // namespace components |