| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.chrome.browser.externalnav; | 5 package org.chromium.chrome.browser.externalnav; |
| 6 | 6 |
| 7 import android.annotation.SuppressLint; | 7 import android.annotation.SuppressLint; |
| 8 import android.content.Intent; | 8 import android.content.Intent; |
| 9 import android.content.pm.ActivityInfo; | 9 import android.content.pm.ActivityInfo; |
| 10 import android.content.pm.PackageManager; | 10 import android.content.pm.PackageManager; |
| (...skipping 1226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1237 } | 1237 } |
| 1238 | 1238 |
| 1239 public void setIsWithinCurrentWebappScope(boolean value) { | 1239 public void setIsWithinCurrentWebappScope(boolean value) { |
| 1240 mIsWithinCurrentWebappScope = value; | 1240 mIsWithinCurrentWebappScope = value; |
| 1241 } | 1241 } |
| 1242 | 1242 |
| 1243 public void setCanHandleWithInstantApp(boolean value) { | 1243 public void setCanHandleWithInstantApp(boolean value) { |
| 1244 mCanHandleWithInstantApp = value; | 1244 mCanHandleWithInstantApp = value; |
| 1245 } | 1245 } |
| 1246 | 1246 |
| 1247 public Intent startActivityIntent = null; | 1247 public Intent startActivityIntent; |
| 1248 public boolean startIncognitoIntentCalled = false; | 1248 public boolean startIncognitoIntentCalled; |
| 1249 | 1249 |
| 1250 // This should not be reset for every run of check(). | 1250 // This should not be reset for every run of check(). |
| 1251 private Boolean mQueryIntentOverride; | 1251 private Boolean mQueryIntentOverride; |
| 1252 | 1252 |
| 1253 private String mNewUrlAfterClobbering; | 1253 private String mNewUrlAfterClobbering; |
| 1254 private String mReferrerUrlForClobbering; | 1254 private String mReferrerUrlForClobbering; |
| 1255 private boolean mCanHandleWithInstantApp; | 1255 private boolean mCanHandleWithInstantApp; |
| 1256 public boolean mIsChromeAppInForeground = true; | 1256 public boolean mIsChromeAppInForeground = true; |
| 1257 public boolean mIsWithinCurrentWebappScope; | 1257 public boolean mIsWithinCurrentWebappScope; |
| 1258 | 1258 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1408 return new TestPackageManager(); | 1408 return new TestPackageManager(); |
| 1409 } | 1409 } |
| 1410 | 1410 |
| 1411 @Override | 1411 @Override |
| 1412 public String getPackageName() { | 1412 public String getPackageName() { |
| 1413 return "test.app.name"; | 1413 return "test.app.name"; |
| 1414 } | 1414 } |
| 1415 | 1415 |
| 1416 } | 1416 } |
| 1417 } | 1417 } |
| OLD | NEW |