Index: media/base/android/media_player_bridge.cc |
diff --git a/media/base/android/media_player_bridge.cc b/media/base/android/media_player_bridge.cc |
index b9832826818b8021e58992753ec494c0cd807a57..dbc4eaa526c116eaed20bd17d5a8f8ef9a792467 100644 |
--- a/media/base/android/media_player_bridge.cc |
+++ b/media/base/android/media_player_bridge.cc |
@@ -21,9 +21,6 @@ using base::android::ScopedJavaLocalRef; |
// Time update happens every 250ms. |
const int kTimeUpdateInterval = 250; |
-// blob url scheme. |
-const char kBlobScheme[] = "blob"; |
- |
namespace media { |
MediaPlayerBridge::MediaPlayerBridge( |
@@ -79,7 +76,7 @@ void MediaPlayerBridge::Initialize() { |
media::MediaResourceGetter* resource_getter = |
manager()->GetMediaResourceGetter(); |
- if (url_.SchemeIsFileSystem() || url_.SchemeIs(kBlobScheme)) { |
+ if (url_.SchemeIsFileSystem() || url_.SchemeIsBlob()) { |
resource_getter->GetPlatformPathFromURL( |
url_, |
base::Bind(&MediaPlayerBridge::ExtractMediaMetadata, |
@@ -156,7 +153,7 @@ void MediaPlayerBridge::SetVideoSurface(gfx::ScopedJavaSurface surface) { |
void MediaPlayerBridge::Prepare() { |
DCHECK(j_media_player_bridge_.is_null()); |
CreateJavaMediaPlayerBridge(); |
- if (url_.SchemeIsFileSystem() || url_.SchemeIs(kBlobScheme)) { |
+ if (url_.SchemeIsFileSystem() || url_.SchemeIsBlob()) { |
manager()->GetMediaResourceGetter()->GetPlatformPathFromURL( |
url_, |
base::Bind(&MediaPlayerBridge::SetDataSource, |