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

Unified Diff: chrome/browser/android/tab_android.cc

Issue 2640143002: Allow autoplay unmuted for WebAPK in the manifest scope (Closed)
Patch Set: addressed nits Created 3 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
« no previous file with comments | « chrome/browser/android/tab_android.h ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/tab_android.cc
diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc
index 421ec3dfe30464342678a851c699dc5254197e65..1eb487d3245864a136d75eeaefb1cb61c2b6f049 100644
--- a/chrome/browser/android/tab_android.cc
+++ b/chrome/browser/android/tab_android.cc
@@ -745,6 +745,17 @@ void TabAndroid::SetInterceptNavigationDelegate(
base::MakeUnique<ChromeInterceptNavigationDelegate>(env, delegate));
}
+void TabAndroid::SetWebappManifestScope(JNIEnv* env,
+ const JavaParamRef<jobject>& obj,
+ const JavaParamRef<jstring>& scope) {
+ webapp_manifest_scope_ = base::android::ConvertJavaStringToUTF8(scope);
+
+ if (!web_contents() || !web_contents()->GetRenderViewHost())
+ return;
+
+ web_contents()->GetRenderViewHost()->OnWebkitPreferencesChanged();
+}
+
void TabAndroid::AttachToTabContentManager(
JNIEnv* env,
const JavaParamRef<jobject>& obj,
« no previous file with comments | « chrome/browser/android/tab_android.h ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698