| Index: chrome/android/java/src/org/chromium/chrome/browser/Tab.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/Tab.java b/chrome/android/java/src/org/chromium/chrome/browser/Tab.java
|
| index cc51cda7e1b3fffe8d767bf319a46772b8b6766f..d41113b017076f2d26714253df39341ff676f4d6 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/Tab.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/Tab.java
|
| @@ -42,13 +42,13 @@
|
| import org.chromium.chrome.browser.metrics.UmaUtils;
|
| import org.chromium.chrome.browser.printing.TabPrinter;
|
| import org.chromium.chrome.browser.profiles.Profile;
|
| -import org.chromium.chrome.browser.ssl.ConnectionSecurityHelper;
|
| -import org.chromium.chrome.browser.ssl.ConnectionSecurityHelperSecurityLevel;
|
| import org.chromium.chrome.browser.tab.SadTabViewFactory;
|
| import org.chromium.chrome.browser.tabmodel.TabModel.TabLaunchType;
|
| import org.chromium.chrome.browser.tabmodel.TabModel.TabSelectionType;
|
| import org.chromium.chrome.browser.tabmodel.TabModelBase;
|
| import org.chromium.chrome.browser.tabmodel.TabModelSelector;
|
| +import org.chromium.chrome.browser.toolbar.ToolbarModel;
|
| +import org.chromium.chrome.browser.ui.toolbar.ToolbarModelSecurityLevel;
|
| import org.chromium.components.navigation_interception.InterceptNavigationDelegate;
|
| import org.chromium.content.browser.ContentView;
|
| import org.chromium.content.browser.ContentViewClient;
|
| @@ -1144,11 +1144,11 @@
|
| }
|
|
|
| /**
|
| - * @return The current {@link ConnectionSecurityHelperSecurityLevel} for the tab.
|
| + * @return The current {ToolbarModelSecurityLevel} for the tab.
|
| */
|
| // TODO(tedchoc): Remove this and transition all clients to use ToolbarModel directly.
|
| public int getSecurityLevel() {
|
| - return ConnectionSecurityHelper.getSecurityLevelForWebContents(getWebContents());
|
| + return ToolbarModel.getSecurityLevelForWebContents(getWebContents());
|
| }
|
|
|
| /**
|
| @@ -2450,9 +2450,8 @@
|
| && !url.startsWith(UrlConstants.CHROME_NATIVE_SCHEME);
|
|
|
| int securityState = getSecurityLevel();
|
| - enableHidingTopControls &=
|
| - (securityState != ConnectionSecurityHelperSecurityLevel.SECURITY_ERROR
|
| - && securityState != ConnectionSecurityHelperSecurityLevel.SECURITY_WARNING);
|
| + enableHidingTopControls &= (securityState != ToolbarModelSecurityLevel.SECURITY_ERROR
|
| + && securityState != ToolbarModelSecurityLevel.SECURITY_WARNING);
|
|
|
| enableHidingTopControls &=
|
| !AccessibilityUtil.isAccessibilityEnabled(getApplicationContext());
|
|
|