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

Unified Diff: content/renderer/media/webmediaplayer_impl.cc

Issue 301933002: Changing default_url to destination_url for consistency (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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: content/renderer/media/webmediaplayer_impl.cc
diff --git a/content/renderer/media/webmediaplayer_impl.cc b/content/renderer/media/webmediaplayer_impl.cc
index 6aa009a18f401e9d954f6649fbfd9c073f53c634..bc127585512ae5aa8827c293932356c38a30375a 100644
--- a/content/renderer/media/webmediaplayer_impl.cc
+++ b/content/renderer/media/webmediaplayer_impl.cc
@@ -1099,19 +1099,18 @@ void WebMediaPlayerImpl::OnKeyError(const std::string& session_id,
void WebMediaPlayerImpl::OnKeyMessage(const std::string& session_id,
const std::vector<uint8>& message,
- const std::string& default_url) {
+ const GURL& destination_url) {
DCHECK(main_loop_->BelongsToCurrentThread());
- const GURL default_url_gurl(default_url);
- DLOG_IF(WARNING, !default_url.empty() && !default_url_gurl.is_valid())
- << "Invalid URL in default_url: " << default_url;
+ DLOG_IF(WARNING, !destination_url.is_empty() && !destination_url.is_valid())
+ << "Invalid URL in destination_url: " << destination_url.spec();
xhwang 2014/05/29 16:17:44 Since we verified |destination_url| upstream (in t
client_->keyMessage(
WebString::fromUTF8(GetPrefixedKeySystemName(current_key_system_)),
WebString::fromUTF8(session_id),
message.empty() ? NULL : &message[0],
message.size(),
- default_url_gurl);
+ destination_url);
}
void WebMediaPlayerImpl::DataSourceInitialized(const GURL& gurl, bool success) {

Powered by Google App Engine
This is Rietveld 408576698