Move parts from enterprise.platformKeysInternal to platformKeysInternal for reuse.
commit433f9f9ac6f32f0e842ce8355faa5c613ad6ffc8
authorpneubeck <pneubeck@chromium.org>
Sat, 24 Jan 2015 11:44:29 +0000 (24 03:44 -0800)
committerCommit bot <commit-bot@chromium.org>
Sat, 24 Jan 2015 11:45:29 +0000 (24 11:45 +0000)
tree2101952bd63f0126f9d3166573157f738a07b028
parente72ef8df39330ff12d444bd66a9faa1c74dbcb52
Move parts from enterprise.platformKeysInternal to platformKeysInternal for reuse.

This moves the functions
 - NormalizeAlgorithm from enterprise_platform_keys_natives to platform_keys_natives
 - sign from enterprise.platformKeysInternal to platformKeysInternal .

Both will be reused by the new platformKeys API.
platformKeysInternal will then be extended about the internal selectClientCertificates function that is needed for platformKeys.

No functional changes.

TBR=arv@chromium.org
BUG=450167
NOPRESUBMIT=true

Review URL: https://codereview.chromium.org/847333004

Cr-Commit-Position: refs/heads/master@{#313016}
23 files changed:
chrome/browser/extensions/api/enterprise_platform_keys/enterprise_platform_keys_api.cc
chrome/browser/extensions/api/enterprise_platform_keys/enterprise_platform_keys_api.h
chrome/browser/extensions/api/platform_keys/platform_keys_api.cc [new file with mode: 0644]
chrome/browser/extensions/api/platform_keys/platform_keys_api.h [new file with mode: 0644]
chrome/chrome_browser_extensions.gypi
chrome/chrome_renderer.gypi
chrome/common/extensions/api/_api_features.json
chrome/common/extensions/api/enterprise_platform_keys_internal.idl
chrome/common/extensions/api/platform_keys_internal.idl [new file with mode: 0644]
chrome/common/extensions/api/schemas.gypi
chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.cc
chrome/renderer/extensions/platform_keys_natives.cc [moved from chrome/renderer/extensions/enterprise_platform_keys_natives.cc with 92% similarity]
chrome/renderer/extensions/platform_keys_natives.h [moved from chrome/renderer/extensions/enterprise_platform_keys_natives.h with 71% similarity]
chrome/renderer/resources/extensions/enterprise_platform_keys/key_pair.js
chrome/renderer/resources/extensions/enterprise_platform_keys/subtle_crypto.js
chrome/renderer/resources/extensions/platform_keys/OWNERS [new file with mode: 0644]
chrome/renderer/resources/extensions/platform_keys/internal_api.js [new file with mode: 0644]
chrome/renderer/resources/extensions/platform_keys/key.js [moved from chrome/renderer/resources/extensions/enterprise_platform_keys/key.js with 100% similarity]
chrome/renderer/resources/extensions/platform_keys/subtle_crypto.js [copied from chrome/renderer/resources/extensions/enterprise_platform_keys/subtle_crypto.js with 54% similarity]
chrome/renderer/resources/extensions/platform_keys/utils.js [moved from chrome/renderer/resources/extensions/enterprise_platform_keys/utils.js with 100% similarity]
chrome/renderer/resources/renderer_resources.grd
extensions/browser/extension_function_histogram_value.h
tools/metrics/histograms/histograms.xml