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

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

Issue 114183006: Changes to enable HTML5 autoplay for voice search. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ted Created 6 years, 12 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 | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/VoiceSearchTabHelper.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/TabBase.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/TabBase.java b/chrome/android/java/src/org/chromium/chrome/browser/TabBase.java
index 1bd9eb8e45a582f560e152ead42d2ba7c894ffeb..25280090ba7d8515316520ba4aa7ea9ec02c251b 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/TabBase.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/TabBase.java
@@ -99,6 +99,7 @@ public abstract class TabBase implements NavigationClient {
// Content layer Observers and Delegates
private ContentViewClient mContentViewClient;
private WebContentsObserverAndroid mWebContentsObserver;
+ private VoiceSearchTabHelper mVoiceSearchTabHelper;
private TabBaseChromeWebContentsDelegateAndroid mWebContentsDelegate;
/**
@@ -624,6 +625,7 @@ public abstract class TabBase implements NavigationClient {
mContentViewCore = mContentView.getContentViewCore();
mWebContentsDelegate = createWebContentsDelegate();
mWebContentsObserver = new TabBaseWebContentsObserverAndroid(mContentViewCore);
+ mVoiceSearchTabHelper = new VoiceSearchTabHelper(mContentViewCore);
if (mContentViewClient != null) mContentViewCore.setContentViewClient(mContentViewClient);
@@ -729,6 +731,7 @@ public abstract class TabBase implements NavigationClient {
mContentViewCore = null;
mWebContentsDelegate = null;
mWebContentsObserver = null;
+ mVoiceSearchTabHelper = null;
assert mNativeTabAndroid != 0;
nativeDestroyWebContents(mNativeTabAndroid, deleteNativeWebContents);
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/VoiceSearchTabHelper.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698