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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/VoiceSearchTabHelper.java

Issue 98413005: Revert of Changes to enable HTML5 autoplay for voice search. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years 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: chrome/android/java/src/org/chromium/chrome/browser/VoiceSearchTabHelper.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/VoiceSearchTabHelper.java b/chrome/android/java/src/org/chromium/chrome/browser/VoiceSearchTabHelper.java
deleted file mode 100644
index e12a92f43c5657099664f67f9f86f56f9cdf901e..0000000000000000000000000000000000000000
--- a/chrome/android/java/src/org/chromium/chrome/browser/VoiceSearchTabHelper.java
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.chrome.browser;
-
-import org.chromium.content.browser.ContentViewCore;
-import org.chromium.content.browser.WebContents;
-import org.chromium.content.browser.WebContentsObserverAndroid;
-
-/**
- * Tab helper to toggle media autoplay for voice URL searches.
- */
-public class VoiceSearchTabHelper extends WebContentsObserverAndroid {
- private static final String TAG = "VoiceSearchTabHelper";
- private long mNativeVoiceSearchTabHelper;
- private WebContents mWebContents;
-
- /**
- * Create an instance of VoiceSearchTabHelper.
- *
- * @param contentViewCore ContentViewCore to update media autoplay status.
- */
- public VoiceSearchTabHelper(ContentViewCore contentViewCore) {
- super(contentViewCore);
- mWebContents = contentViewCore.getWebContents();
- }
-
- @Override
- public void navigationEntryCommitted() {
- nativeUpdateAutoplayStatus(mWebContents);
- }
-
- private native void nativeUpdateAutoplayStatus(WebContents webContents);
-}
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/TabBase.java ('k') | chrome/browser/android/chrome_jni_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698