summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorsandersd <sandersd@chromium.org>2015-04-02 22:13:21 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-03 05:13:42 +0000
commit406bb72cc0266fe8bf817edebe752028c0e046f8 (patch)
tree7376c0fe7bb0396dd6f1b3f690f8ee6753f8c922 /media
parent78fd22a0834962791658ba8b0588228246450060 (diff)
downloadchromium_src-406bb72cc0266fe8bf817edebe752028c0e046f8.zip
chromium_src-406bb72cc0266fe8bf817edebe752028c0e046f8.tar.gz
chromium_src-406bb72cc0266fe8bf817edebe752028c0e046f8.tar.bz2
Copy configuration label in requestMediaKeySystemAccess()
BUG=472241 Review URL: https://codereview.chromium.org/1045413002 Cr-Commit-Position: refs/heads/master@{#323609}
Diffstat (limited to 'media')
-rw-r--r--media/blink/webencryptedmediaclient_impl.cc15
1 files changed, 10 insertions, 5 deletions
diff --git a/media/blink/webencryptedmediaclient_impl.cc b/media/blink/webencryptedmediaclient_impl.cc
index 3e64334..4f7a887 100644
--- a/media/blink/webencryptedmediaclient_impl.cc
+++ b/media/blink/webencryptedmediaclient_impl.cc
@@ -309,7 +309,7 @@ static ConfigurationSupport GetSupportedConfiguration(
}
// 3. Follow the steps for the value of candidate configuration's
- // distinctiveIdentifier attribute from the following list:
+ // distinctiveIdentifier member from the following list:
// - "required": If the implementation does not support a persistent
// Distinctive Identifier in combination with accumulated
// configuration, return null.
@@ -329,12 +329,12 @@ static ConfigurationSupport GetSupportedConfiguration(
config_state.AddRule(di_rule);
// 4. Add the value of the candidate configuration's distinctiveIdentifier
- // attribute to accumulated configuration.
+ // member to accumulated configuration.
accumulated_configuration->distinctiveIdentifier =
candidate.distinctiveIdentifier;
// 5. Follow the steps for the value of candidate configuration's
- // persistentState attribute from the following list:
+ // persistentState member from the following list:
// - "required": If the implementation does not support persisting state
// in combination with accumulated configuration, return null.
// - "optional": Continue.
@@ -350,7 +350,7 @@ static ConfigurationSupport GetSupportedConfiguration(
config_state.AddRule(ps_rule);
// 6. Add the value of the candidate configuration's persistentState
- // attribute to accumulated configuration.
+ // member to accumulated configuration.
accumulated_configuration->persistentState = candidate.persistentState;
// 7. Follow the steps for the first matching condition from the following
@@ -539,7 +539,12 @@ static ConfigurationSupport GetSupportedConfiguration(
return CONFIGURATION_REQUIRES_PERMISSION;
}
- // 16. Return accumulated configuration.
+ // 16. If the label member is present in candidate configuration, add the
+ // value of the candidate configuration's label member to accumulated
+ // configuration.
+ accumulated_configuration->label = candidate.label;
+
+ // 17. Return accumulated configuration.
return CONFIGURATION_SUPPORTED;
}