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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkBrowserControlsDelegate.java

Issue 2636103002: [WebAPKs] Show minibar when WebAPK navigates outside scope specified in Web Manifest (Closed)
Patch Set: Merge branch 'master' into minibar Created 3 years, 11 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 unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698