| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 package org.chromium.chrome.browser.webapps; |
| 6 |
| 7 import org.chromium.chrome.browser.tab.Tab; |
| 8 import org.chromium.chrome.browser.util.UrlUtilities; |
| 9 |
| 10 class WebApkBrowserControlsDelegate extends WebappBrowserControlsDelegate { |
| 11 public WebApkBrowserControlsDelegate(WebappActivity activity, Tab tab) { |
| 12 super(activity, tab); |
| 13 } |
| 14 |
| 15 @Override |
| 16 protected boolean shouldShowBrowserControlsForUrl(WebappInfo info, String ur
l) { |
| 17 return !UrlUtilities.isUrlWithinScope(url, info.scopeUri().toString()); |
| 18 } |
| 19 } |
| OLD | NEW |