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

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

Issue 1688603004: AGSA-initiated weblite intents should be rewritten if Chrome can use weblite (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: yusufo comments Created 4 years, 9 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
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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 /** 122 /**
123 * Fake ComponentName used in constructing TRUSTED_APPLICATION_CODE_EXTRA. 123 * Fake ComponentName used in constructing TRUSTED_APPLICATION_CODE_EXTRA.
124 */ 124 */
125 private static ComponentName sFakeComponentName = null; 125 private static ComponentName sFakeComponentName = null;
126 126
127 private static final Object LOCK = new Object(); 127 private static final Object LOCK = new Object();
128 128
129 private static Pair<Integer, String> sPendingReferrer; 129 private static Pair<Integer, String> sPendingReferrer;
130 private static int sReferrerId; 130 private static int sReferrerId;
131 131
132 public static final String PACKAGE_GSA = "com.google.android.googlequicksear chbox";
132 private static final String PACKAGE_GMAIL = "com.google.android.gm"; 133 private static final String PACKAGE_GMAIL = "com.google.android.gm";
133 private static final String PACKAGE_PLUS = "com.google.android.apps.plus"; 134 private static final String PACKAGE_PLUS = "com.google.android.apps.plus";
134 private static final String PACKAGE_HANGOUTS = "com.google.android.talk"; 135 private static final String PACKAGE_HANGOUTS = "com.google.android.talk";
135 private static final String PACKAGE_MESSENGER = "com.google.android.apps.mes saging"; 136 private static final String PACKAGE_MESSENGER = "com.google.android.apps.mes saging";
136 private static final String PACKAGE_LINE = "jp.naver.line.android"; 137 private static final String PACKAGE_LINE = "jp.naver.line.android";
137 private static final String PACKAGE_WHATSAPP = "com.whatsapp"; 138 private static final String PACKAGE_WHATSAPP = "com.whatsapp";
138 private static final String PACKAGE_GSA = "com.google.android.googlequicksea rchbox";
139 private static final String FACEBOOK_LINK_PREFIX = "http://m.facebook.com/l. php?"; 139 private static final String FACEBOOK_LINK_PREFIX = "http://m.facebook.com/l. php?";
140 private static final String TWITTER_LINK_PREFIX = "http://t.co/"; 140 private static final String TWITTER_LINK_PREFIX = "http://t.co/";
141 private static final String NEWS_LINK_PREFIX = "http://news.google.com/news/ url?"; 141 private static final String NEWS_LINK_PREFIX = "http://news.google.com/news/ url?";
142 142
143 /** 143 /**
144 * Represents popular external applications that can load a page in Chrome v ia intent. 144 * Represents popular external applications that can load a page in Chrome v ia intent.
145 */ 145 */
146 public static enum ExternalAppId { 146 public static enum ExternalAppId {
147 OTHER, 147 OTHER,
148 GMAIL, 148 GMAIL,
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 * @param id The referrer id. 863 * @param id The referrer id.
864 * @return The URL for the referrer or null if none found. 864 * @return The URL for the referrer or null if none found.
865 */ 865 */
866 public static String getPendingReferrerUrl(int id) { 866 public static String getPendingReferrerUrl(int id) {
867 if (sPendingReferrer != null && (sPendingReferrer.first == id)) { 867 if (sPendingReferrer != null && (sPendingReferrer.first == id)) {
868 return sPendingReferrer.second; 868 return sPendingReferrer.second;
869 } 869 }
870 return null; 870 return null;
871 } 871 }
872 } 872 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698