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

Unified Diff: chrome/renderer/extensions/platform_keys_natives.cc

Issue 847333004: Move parts from enterprise.platformKeysInternal to platformKeysInternal for reuse. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cert_idl
Patch Set: Rebased. Created 5 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
Index: chrome/renderer/extensions/platform_keys_natives.cc
diff --git a/chrome/renderer/extensions/enterprise_platform_keys_natives.cc b/chrome/renderer/extensions/platform_keys_natives.cc
similarity index 92%
rename from chrome/renderer/extensions/enterprise_platform_keys_natives.cc
rename to chrome/renderer/extensions/platform_keys_natives.cc
index 9f84f7c603449ed682c72f41a61d904d9c952d2a..779b9091c9e324c85689fa3666fc5b489a4ee26c 100644
--- a/chrome/renderer/extensions/enterprise_platform_keys_natives.cc
+++ b/chrome/renderer/extensions/platform_keys_natives.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 "chrome/renderer/extensions/enterprise_platform_keys_natives.h"
+#include "chrome/renderer/extensions/platform_keys_natives.h"
#include <string>
@@ -73,15 +73,14 @@ scoped_ptr<base::DictionaryValue> WebCryptoAlgorithmToBaseValue(
} // namespace
-EnterprisePlatformKeysNatives::EnterprisePlatformKeysNatives(
- ScriptContext* context)
+PlatformKeysNatives::PlatformKeysNatives(ScriptContext* context)
: ObjectBackedNativeHandler(context) {
RouteFunction("NormalizeAlgorithm",
- base::Bind(&EnterprisePlatformKeysNatives::NormalizeAlgorithm,
+ base::Bind(&PlatformKeysNatives::NormalizeAlgorithm,
base::Unretained(this)));
}
-void EnterprisePlatformKeysNatives::NormalizeAlgorithm(
+void PlatformKeysNatives::NormalizeAlgorithm(
const v8::FunctionCallbackInfo<v8::Value>& call_info) {
DCHECK_EQ(call_info.Length(), 2);
DCHECK(call_info[0]->IsObject());

Powered by Google App Engine
This is Rietveld 408576698