platformKeys: Add per-extension sign permissions.
commitcbcdfd84a59e7216d315689362ccc41626608987
authorpneubeck <pneubeck@chromium.org>
Thu, 19 Feb 2015 15:29:03 +0000 (19 07:29 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 19 Feb 2015 15:29:47 +0000 (19 15:29 +0000)
treee36f1394a64f6a02e6b1ac09830951a1065a1479
parente2c9d1208419f56b8112d757ab7b1f499fad5fb0
platformKeys: Add per-extension sign permissions.

PlatformKeysService now supports persisting whether an extension is allowed to sign data with a key an unlimited number of times.

Currently, these permissions are only granted in the accompanying browser test and not in production, because UI is still missing.

BUG=450167

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

Cr-Commit-Position: refs/heads/master@{#317053}
chrome/browser/chromeos/platform_keys/platform_keys.h
chrome/browser/chromeos/platform_keys/platform_keys_nss.cc
chrome/browser/chromeos/platform_keys/platform_keys_service.cc
chrome/browser/chromeos/platform_keys/platform_keys_service.h
chrome/browser/extensions/api/platform_keys/platform_keys_api.cc
chrome/browser/extensions/api/platform_keys/platform_keys_apitest_nss.cc
chrome/test/data/extensions/api_test/platform_keys/basic.js