diff options
author | Achuith Bhandarkar <achuith@chromium.org> | 2015-08-31 11:47:32 -0700 |
---|---|---|
committer | Achuith Bhandarkar <achuith@chromium.org> | 2015-08-31 18:49:33 +0000 |
commit | 49abb7baf70f20f89eefd2b82517f95f2b9ae0b0 (patch) | |
tree | a2e9c43e9a42b558d36d130c8d4f49bd51bc8c08 | |
parent | 31b6f10f0953a01bd412bd97f60158c3b7d09364 (diff) | |
download | chromium_src-49abb7baf70f20f89eefd2b82517f95f2b9ae0b0.zip chromium_src-49abb7baf70f20f89eefd2b82517f95f2b9ae0b0.tar.gz chromium_src-49abb7baf70f20f89eefd2b82517f95f2b9ae0b0.tar.bz2 |
Fix cast private API from crashing the extension on non-CrOS platforms.
This happened because the chrome.cast.devicesPrivate API was defined but there
was no schema available. This CL makes the schema available but keeps it
disabled if the current platform is not CrOS.
BUG=514952
Review URL: https://codereview.chromium.org/1309293003
Cr-Commit-Position: refs/heads/master@{#345226}
(cherry picked from commit ea9fc94b449427c5cf209b40f1bd7c4d00111940)
Review URL: https://codereview.chromium.org/1325693002 .
Cr-Commit-Position: refs/branch-heads/2490@{#97}
Cr-Branched-From: 7790a3535f2a81a03685eca31a32cf69ae0c114f-refs/heads/master@{#344925}
-rw-r--r-- | chrome/common/extensions/api/_api_features.json | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/common/extensions/api/_api_features.json b/chrome/common/extensions/api/_api_features.json index 01d501d..b4483f2 100644 --- a/chrome/common/extensions/api/_api_features.json +++ b/chrome/common/extensions/api/_api_features.json @@ -174,7 +174,8 @@ }, "cast.devicesPrivate": { "dependencies": ["permission:cast"], - "contexts": ["blessed_extension"] + "contexts": ["blessed_extension"], + "platforms": ["chromeos"] }, "cast.streaming.rtpStream": { "dependencies": ["permission:cast.streaming"], |