| Index: chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java b/chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java
|
| index 0fd6bb80215e5626c50127a0e58c9a42702572c8..76497a37ead5f16eb420ae25c9f7f07cfa0245f4 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java
|
| @@ -41,8 +41,8 @@ import org.chromium.base.CalledByNative;
|
| import org.chromium.chrome.R;
|
| import org.chromium.chrome.browser.omnibox.OmniboxUrlEmphasizer;
|
| import org.chromium.chrome.browser.profiles.Profile;
|
| +import org.chromium.chrome.browser.ssl.SecurityLevelPolicySecurityLevel;
|
| import org.chromium.chrome.browser.toolbar.ToolbarModel;
|
| -import org.chromium.chrome.browser.ui.toolbar.ToolbarModelSecurityLevel;
|
| import org.chromium.content_public.browser.WebContents;
|
| import org.chromium.content_public.browser.WebContentsObserver;
|
| import org.chromium.ui.base.Clipboard;
|
| @@ -243,7 +243,7 @@ public class WebsiteSettingsPopup implements OnClickListener, OnItemSelectedList
|
| // chrome://settings page).
|
| private boolean mIsInternalPage;
|
|
|
| - // The security level of the page (a valid ToolbarModelSecurityLevel).
|
| + // The security level of the page (a valid SecurityLevelPolicySecurityLevel).
|
| private int mSecurityLevel;
|
|
|
| // Whether the security level of the page was deprecated due to SHA-1.
|
| @@ -433,26 +433,26 @@ public class WebsiteSettingsPopup implements OnClickListener, OnItemSelectedList
|
| * Gets the message to display in the connection message box for the given security level. Does
|
| * not apply to SECURITY_ERROR pages, since these have their own coloured/formatted message.
|
| *
|
| - * @param toolbarModelSecurityLevel A valid ToolbarModelSecurityLevel, which is the security
|
| + * @param securityLevel A valid SecurityLevelPolicySecurityLevel, which is the security
|
| * level of the page.
|
| * @param isInternalPage Whether or not this page is an internal chrome page (e.g. the
|
| * chrome://settings page).
|
| * @return The ID of the message to display in the connection message box.
|
| */
|
| - private int getConnectionMessageId(int toolbarModelSecurityLevel, boolean isInternalPage) {
|
| + private int getConnectionMessageId(int securityLevel, boolean isInternalPage) {
|
| if (isInternalPage) return R.string.page_info_connection_internal_page;
|
|
|
| - switch (toolbarModelSecurityLevel) {
|
| - case ToolbarModelSecurityLevel.NONE:
|
| + switch (securityLevel) {
|
| + case SecurityLevelPolicySecurityLevel.NONE:
|
| return R.string.page_info_connection_http;
|
| - case ToolbarModelSecurityLevel.SECURE:
|
| - case ToolbarModelSecurityLevel.EV_SECURE:
|
| + case SecurityLevelPolicySecurityLevel.SECURE:
|
| + case SecurityLevelPolicySecurityLevel.EV_SECURE:
|
| return R.string.page_info_connection_https;
|
| - case ToolbarModelSecurityLevel.SECURITY_WARNING:
|
| - case ToolbarModelSecurityLevel.SECURITY_POLICY_WARNING:
|
| + case SecurityLevelPolicySecurityLevel.SECURITY_WARNING:
|
| + case SecurityLevelPolicySecurityLevel.SECURITY_POLICY_WARNING:
|
| return R.string.page_info_connection_mixed;
|
| default:
|
| - assert false : "Invalid security level specified: " + toolbarModelSecurityLevel;
|
| + assert false : "Invalid security level specified: " + securityLevel;
|
| return R.string.page_info_connection_http;
|
| }
|
| }
|
| @@ -462,7 +462,7 @@ public class WebsiteSettingsPopup implements OnClickListener, OnItemSelectedList
|
| * HTTPS connections.
|
| */
|
| private boolean isConnectionDetailsLinkVisible() {
|
| - return !mIsInternalPage && mSecurityLevel != ToolbarModelSecurityLevel.NONE;
|
| + return !mIsInternalPage && mSecurityLevel != SecurityLevelPolicySecurityLevel.NONE;
|
| }
|
|
|
| /**
|
| @@ -474,7 +474,7 @@ public class WebsiteSettingsPopup implements OnClickListener, OnItemSelectedList
|
| if (mDeprecatedSHA1Present) {
|
| messageBuilder.append(
|
| mContext.getResources().getString(R.string.page_info_connection_sha1));
|
| - } else if (mSecurityLevel != ToolbarModelSecurityLevel.SECURITY_ERROR) {
|
| + } else if (mSecurityLevel != SecurityLevelPolicySecurityLevel.SECURITY_ERROR) {
|
| messageBuilder.append(mContext.getResources().getString(
|
| getConnectionMessageId(mSecurityLevel, mIsInternalPage)));
|
| } else {
|
|
|