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

Unified Diff: chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellToolbar.java

Issue 481803004: Removing ContentViewCore dependencies from few functions which acts as direct wrapper to WebContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the nit. Created 6 years, 4 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: chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellToolbar.java
diff --git a/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellToolbar.java b/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellToolbar.java
index a88405063d3727f264b9f1226c9c57c1cb2bc31c..db480d52230f2e7b09b007e0da343e1ee49c5886 100644
--- a/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellToolbar.java
+++ b/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellToolbar.java
@@ -77,7 +77,7 @@ public class ChromeShellToolbar extends LinearLayout {
if (mTab != null) mTab.removeObserver(mTabObserver);
mTab = tab;
mTab.addObserver(mTabObserver);
- mUrlTextView.setText(mTab.getContentViewCore().getUrl());
+ mUrlTextView.setText(mTab.getContentViewCore().getWebContents().getUrl());
Yaron 2014/08/18 23:16:24 Tab exposes getWebContents. Please use directly (t
AKVT 2014/09/11 17:19:43 Done.
}
private void onUpdateUrl(String url) {
@@ -135,7 +135,7 @@ public class ChromeShellToolbar extends LinearLayout {
public void onFocusChange(View v, boolean hasFocus) {
setKeyboardVisibilityForUrl(hasFocus);
if (!hasFocus) {
- mUrlTextView.setText(mTab.getContentViewCore().getUrl());
+ mUrlTextView.setText(mTab.getContentViewCore().getWebContents().getUrl());
mSuggestionPopup.dismissPopup();
}
}

Powered by Google App Engine
This is Rietveld 408576698