| 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; | 5 package org.chromium.chrome.browser; |
| 6 | 6 |
| 7 import android.app.KeyguardManager; | 7 import android.app.KeyguardManager; |
| 8 import android.app.PendingIntent; | 8 import android.app.PendingIntent; |
| 9 import android.app.SearchManager; | 9 import android.app.SearchManager; |
| 10 import android.content.ComponentName; | 10 import android.content.ComponentName; |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 public static final String EXTRA_EXTERNAL_NAV_PACKAGES = "org.chromium.chrom
e.browser.eenp"; | 147 public static final String EXTRA_EXTERNAL_NAV_PACKAGES = "org.chromium.chrom
e.browser.eenp"; |
| 148 | 148 |
| 149 /** | 149 /** |
| 150 * A hash code for the URL to verify intent data hasn't been modified. | 150 * A hash code for the URL to verify intent data hasn't been modified. |
| 151 */ | 151 */ |
| 152 public static final String EXTRA_DATA_HASH_CODE = "org.chromium.chrome.brows
er.data_hash"; | 152 public static final String EXTRA_DATA_HASH_CODE = "org.chromium.chrome.brows
er.data_hash"; |
| 153 | 153 |
| 154 /** | 154 /** |
| 155 * Fake ComponentName used in constructing TRUSTED_APPLICATION_CODE_EXTRA. | 155 * Fake ComponentName used in constructing TRUSTED_APPLICATION_CODE_EXTRA. |
| 156 */ | 156 */ |
| 157 private static ComponentName sFakeComponentName = null; | 157 private static ComponentName sFakeComponentName; |
| 158 | 158 |
| 159 private static final Object LOCK = new Object(); | 159 private static final Object LOCK = new Object(); |
| 160 | 160 |
| 161 private static Pair<Integer, String> sPendingReferrer; | 161 private static Pair<Integer, String> sPendingReferrer; |
| 162 private static int sReferrerId; | 162 private static int sReferrerId; |
| 163 private static String sPendingIncognitoUrl; | 163 private static String sPendingIncognitoUrl; |
| 164 | 164 |
| 165 private static final String PACKAGE_GSA = "com.google.android.googlequicksea
rchbox"; | 165 private static final String PACKAGE_GSA = "com.google.android.googlequicksea
rchbox"; |
| 166 private static final String PACKAGE_GMAIL = "com.google.android.gm"; | 166 private static final String PACKAGE_GMAIL = "com.google.android.gm"; |
| 167 private static final String PACKAGE_PLUS = "com.google.android.apps.plus"; | 167 private static final String PACKAGE_PLUS = "com.google.android.apps.plus"; |
| (...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 978 if (transitionType == PageTransition.TYPED) { | 978 if (transitionType == PageTransition.TYPED) { |
| 979 return transitionType; | 979 return transitionType; |
| 980 } else if (transitionType != PageTransition.LINK | 980 } else if (transitionType != PageTransition.LINK |
| 981 && isIntentChromeOrFirstParty(intent, context)) { | 981 && isIntentChromeOrFirstParty(intent, context)) { |
| 982 // 1st party applications may specify any transition type. | 982 // 1st party applications may specify any transition type. |
| 983 return transitionType; | 983 return transitionType; |
| 984 } | 984 } |
| 985 return defaultTransition; | 985 return defaultTransition; |
| 986 } | 986 } |
| 987 } | 987 } |
| OLD | NEW |