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

Unified Diff: content/renderer/media/android/webmediaplayer_android.cc

Issue 1644353002: Enable blink_perf.canvas on Android Perf bots (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add --reduce-security-for-testing Created 4 years, 10 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/android/webmediaplayer_android.cc
diff --git a/content/renderer/media/android/webmediaplayer_android.cc b/content/renderer/media/android/webmediaplayer_android.cc
index 0b6a7ff706804cbf802b7a6e7ab52381081a0e24..c09ec8e05067fa69ea311b043de6a3c6397d8e0c 100644
--- a/content/renderer/media/android/webmediaplayer_android.cc
+++ b/content/renderer/media/android/webmediaplayer_android.cc
@@ -753,6 +753,11 @@ bool WebMediaPlayerAndroid::hasSingleSecurityOrigin() const {
if (!info_loader_ || !info_loader_->HasSingleOrigin())
return false;
+ // TODO(qinmin): After fixing crbug.com/592017, remove this command line.
+ base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
+ if (command_line->HasSwitch(switches::kReduceSecurityForTesting))
+ return true;
dshwang 2016/03/04 16:30:51 skip single security origin check to work around n
+
// TODO(qinmin): The url might be redirected when android media player
// requests the stream. As a result, we cannot guarantee there is only
// a single origin. Only if the HTTP request was made without credentials,

Powered by Google App Engine
This is Rietveld 408576698