Skip to content
This repository was archived by the owner on Dec 6, 2019. It is now read-only.

Commit bce81da

Browse files
committed
Update to 63.0.3239.65
1 parent a109795 commit bce81da

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+342
-144
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cache:
1414
env:
1515
global:
1616
- ANDROID_API=26
17-
- ANDROID_BUILD_TOOLS=26.0.2
17+
- ANDROID_BUILD_TOOLS=26.0.3
1818
- secure: "gCI6oCqJwEZe9B8S4I2qNOXG8Ujv3B/beFsbacMOZIA+8Q6OeR7kV7+VMcCvjGa5ZhcBhCcDfwFz13sDOExj1qE0rRaYmwsWc0sFomZqUE2QtvidB2OgZGX1JeTHNqObb36JxfXYn2QZJ8II8SE0ZiEsy30q5FlOqNo3uEqr3ETDYK/X44JgYWMeqqFiATycYu21jK7aJeHHt+Z3tlpda+bsAaMm909EhblkiJq/wyQuvl1fu/elVTcyERkbQcOnIjJ1zbYHr3Wm6gUz7FaipVrsYFlQ8xyCHyaub6DdNt2Yi6fF5LhCjl4hUwGGwNKxo5xu3d9jfNU8va5mxXzw6R4fNr85oI/1kwT8ofuDfzBJiAM3yfhyTpnuv5LL99HTILToJT7tAtoOsxGSH+Po3LMJJ8/JDNt/ade37qPyfmKK+SoVdh3nPhFcSe/u4uxNuFkOvbDSWRdsWLp1N8zDhajTNiZaS6/mhIRxAJqCyQ2689yk4lqEVQa8zXlibd/WmPIGzfQ5gJdFmSxj+RmZmMENtAi4i51jP8QMiaClGY0uxDkuCmehvC2yn0/O6eF9g7e2NmiV3BUb24UZeHBUu563p/ZfgGuJVMgkaB4t+ZMiX/hzw6URrs/y9Tg0i6b1oSv6F1+UQ2z3LszYdi9Uc/ZIFsDIfxQA3500AqB9JG0="
1919
- secure: "Zs7zBbaiKQAJrAh5MjU7/kGGh4vI9FdtblclWpuXspYtkaHlM1xmgzo+DlQ/VY+WIFaJLrW362skVbh7VE/6qwa4AE0+/MSMTaDdPPXkmOuaQ+0vesd9m2QqrmKuTX/RE5gioULg1tAWYgGbBVE7fLhSiv5fbt1PKhOkgDx+AnzJ/0J+JapOVWIKQ9dHMKRSNZIG4705XgXMoKeQJWSnV12ZPnId2Gp0a95zV2B8LwJPZs5javfi63ZYvHEttCdp1ri+0XqyMCnO472gxbJffvPCXF5oxj1CIl54I2EmdKWV5F2qHGqkf55gFrnCUUpKbwcHin1PQvSEKbwEyMNpQFGGyroqPiMNheyT3v/2/z6H4/ybSjPwuxfuaXibQPyVUMqHsysfAov4JRlwgpfpoWlPDZaWxBEKKoTAYuSY///cHCCw3BqJHIn+jgD0TFzmQaBzM6yWuRG9IQOmwh6boxe7ed24H2LQZV9++L82tnGaHD8kWwQ1A3y0BpQvPrUtLf/KdO1YNG2nMEbtIQvN3bPaEFdJmTKQvUdj/JYVkhu0MdjlC1T95LgZi43f0W88d65U7DjlN7M6StfF3jXdrTRQg6viq8KbKdRd11v/NkaElps6B4uBOYWfqnsf//ka4yKgR2ts52q293wK75PC0Y+yZsn2HUnOSsstNxBsEmQ="
2020

app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ idea {
6060
}
6161

6262
dependencies {
63-
implementation fileTree(include: ['*.jar'], dir: 'libs')
63+
implementation fileTree(include: ['*.jar'], dir: 'libs')
6464
implementation "com.android.support:appcompat-v7:$rootProject.ext.supportLibraryVersion"
6565
implementation "com.android.support:design:$rootProject.ext.supportLibraryVersion"
6666
implementation "com.android.support:gridlayout-v7:$rootProject.ext.supportLibraryVersion"

app/src/main/AndroidManifest.xml

+21-21
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ by a child template that "extends" this file.
583583
<!-- ChromeTabbedActivity related -->
584584
<activity android:name="org.chromium.chrome.browser.ChromeTabbedActivity"
585585
android:theme="@style/TabbedModeTheme"
586-
android:exported="false"
586+
android:exported="true"
587587
android:launchMode="singleTask"
588588
android:supportsPictureInPicture="true"
589589
android:resizeableActivity="true"
@@ -1711,7 +1711,7 @@ by a child template that "extends" this file.
17111711
android:process=":sandboxed_process0"
17121712
android:permission="org.chromium.chrome.permission.CHILD_SERVICE"
17131713
android:isolatedProcess="true"
1714-
android:exported="false"
1714+
android:exported="False"
17151715
/>
17161716
<!-- When use_order_profiling is set, the renderer processes need to be
17171717
able to write profiling information and thus cannot be
@@ -1721,7 +1721,7 @@ by a child template that "extends" this file.
17211721
android:process=":sandboxed_process1"
17221722
android:permission="org.chromium.chrome.permission.CHILD_SERVICE"
17231723
android:isolatedProcess="true"
1724-
android:exported="false"
1724+
android:exported="False"
17251725
/>
17261726
<!-- When use_order_profiling is set, the renderer processes need to be
17271727
able to write profiling information and thus cannot be
@@ -1731,7 +1731,7 @@ by a child template that "extends" this file.
17311731
android:process=":sandboxed_process2"
17321732
android:permission="org.chromium.chrome.permission.CHILD_SERVICE"
17331733
android:isolatedProcess="true"
1734-
android:exported="false"
1734+
android:exported="False"
17351735
/>
17361736
<!-- When use_order_profiling is set, the renderer processes need to be
17371737
able to write profiling information and thus cannot be
@@ -1741,7 +1741,7 @@ by a child template that "extends" this file.
17411741
android:process=":sandboxed_process3"
17421742
android:permission="org.chromium.chrome.permission.CHILD_SERVICE"
17431743
android:isolatedProcess="true"
1744-
android:exported="false"
1744+
android:exported="False"
17451745
/>
17461746
<!-- When use_order_profiling is set, the renderer processes need to be
17471747
able to write profiling information and thus cannot be
@@ -1751,7 +1751,7 @@ by a child template that "extends" this file.
17511751
android:process=":sandboxed_process4"
17521752
android:permission="org.chromium.chrome.permission.CHILD_SERVICE"
17531753
android:isolatedProcess="true"
1754-
android:exported="false"
1754+
android:exported="False"
17551755
/>
17561756
<!-- When use_order_profiling is set, the renderer processes need to be
17571757
able to write profiling information and thus cannot be
@@ -1761,7 +1761,7 @@ by a child template that "extends" this file.
17611761
android:process=":sandboxed_process5"
17621762
android:permission="org.chromium.chrome.permission.CHILD_SERVICE"
17631763
android:isolatedProcess="true"
1764-
android:exported="false"
1764+
android:exported="False"
17651765
/>
17661766
<!-- When use_order_profiling is set, the renderer processes need to be
17671767
able to write profiling information and thus cannot be
@@ -1771,7 +1771,7 @@ by a child template that "extends" this file.
17711771
android:process=":sandboxed_process6"
17721772
android:permission="org.chromium.chrome.permission.CHILD_SERVICE"
17731773
android:isolatedProcess="true"
1774-
android:exported="false"
1774+
android:exported="False"
17751775
/>
17761776
<!-- When use_order_profiling is set, the renderer processes need to be
17771777
able to write profiling information and thus cannot be
@@ -1781,7 +1781,7 @@ by a child template that "extends" this file.
17811781
android:process=":sandboxed_process7"
17821782
android:permission="org.chromium.chrome.permission.CHILD_SERVICE"
17831783
android:isolatedProcess="true"
1784-
android:exported="false"
1784+
android:exported="False"
17851785
/>
17861786
<!-- When use_order_profiling is set, the renderer processes need to be
17871787
able to write profiling information and thus cannot be
@@ -1791,7 +1791,7 @@ by a child template that "extends" this file.
17911791
android:process=":sandboxed_process8"
17921792
android:permission="org.chromium.chrome.permission.CHILD_SERVICE"
17931793
android:isolatedProcess="true"
1794-
android:exported="false"
1794+
android:exported="False"
17951795
/>
17961796
<!-- When use_order_profiling is set, the renderer processes need to be
17971797
able to write profiling information and thus cannot be
@@ -1801,7 +1801,7 @@ by a child template that "extends" this file.
18011801
android:process=":sandboxed_process9"
18021802
android:permission="org.chromium.chrome.permission.CHILD_SERVICE"
18031803
android:isolatedProcess="true"
1804-
android:exported="false"
1804+
android:exported="False"
18051805
/>
18061806
<!-- When use_order_profiling is set, the renderer processes need to be
18071807
able to write profiling information and thus cannot be
@@ -1811,7 +1811,7 @@ by a child template that "extends" this file.
18111811
android:process=":sandboxed_process10"
18121812
android:permission="org.chromium.chrome.permission.CHILD_SERVICE"
18131813
android:isolatedProcess="true"
1814-
android:exported="false"
1814+
android:exported="False"
18151815
/>
18161816
<!-- When use_order_profiling is set, the renderer processes need to be
18171817
able to write profiling information and thus cannot be
@@ -1821,7 +1821,7 @@ by a child template that "extends" this file.
18211821
android:process=":sandboxed_process11"
18221822
android:permission="org.chromium.chrome.permission.CHILD_SERVICE"
18231823
android:isolatedProcess="true"
1824-
android:exported="false"
1824+
android:exported="False"
18251825
/>
18261826
<!-- When use_order_profiling is set, the renderer processes need to be
18271827
able to write profiling information and thus cannot be
@@ -1831,7 +1831,7 @@ by a child template that "extends" this file.
18311831
android:process=":sandboxed_process12"
18321832
android:permission="org.chromium.chrome.permission.CHILD_SERVICE"
18331833
android:isolatedProcess="true"
1834-
android:exported="false"
1834+
android:exported="False"
18351835
/>
18361836
<!-- When use_order_profiling is set, the renderer processes need to be
18371837
able to write profiling information and thus cannot be
@@ -1841,7 +1841,7 @@ by a child template that "extends" this file.
18411841
android:process=":sandboxed_process13"
18421842
android:permission="org.chromium.chrome.permission.CHILD_SERVICE"
18431843
android:isolatedProcess="true"
1844-
android:exported="false"
1844+
android:exported="False"
18451845
/>
18461846
<!-- When use_order_profiling is set, the renderer processes need to be
18471847
able to write profiling information and thus cannot be
@@ -1851,7 +1851,7 @@ by a child template that "extends" this file.
18511851
android:process=":sandboxed_process14"
18521852
android:permission="org.chromium.chrome.permission.CHILD_SERVICE"
18531853
android:isolatedProcess="true"
1854-
android:exported="false"
1854+
android:exported="False"
18551855
/>
18561856
<!-- When use_order_profiling is set, the renderer processes need to be
18571857
able to write profiling information and thus cannot be
@@ -1861,7 +1861,7 @@ by a child template that "extends" this file.
18611861
android:process=":sandboxed_process15"
18621862
android:permission="org.chromium.chrome.permission.CHILD_SERVICE"
18631863
android:isolatedProcess="true"
1864-
android:exported="false"
1864+
android:exported="False"
18651865
/>
18661866
<!-- When use_order_profiling is set, the renderer processes need to be
18671867
able to write profiling information and thus cannot be
@@ -1871,7 +1871,7 @@ by a child template that "extends" this file.
18711871
android:process=":sandboxed_process16"
18721872
android:permission="org.chromium.chrome.permission.CHILD_SERVICE"
18731873
android:isolatedProcess="true"
1874-
android:exported="false"
1874+
android:exported="False"
18751875
/>
18761876
<!-- When use_order_profiling is set, the renderer processes need to be
18771877
able to write profiling information and thus cannot be
@@ -1881,7 +1881,7 @@ by a child template that "extends" this file.
18811881
android:process=":sandboxed_process17"
18821882
android:permission="org.chromium.chrome.permission.CHILD_SERVICE"
18831883
android:isolatedProcess="true"
1884-
android:exported="false"
1884+
android:exported="False"
18851885
/>
18861886
<!-- When use_order_profiling is set, the renderer processes need to be
18871887
able to write profiling information and thus cannot be
@@ -1891,7 +1891,7 @@ by a child template that "extends" this file.
18911891
android:process=":sandboxed_process18"
18921892
android:permission="org.chromium.chrome.permission.CHILD_SERVICE"
18931893
android:isolatedProcess="true"
1894-
android:exported="false"
1894+
android:exported="False"
18951895
/>
18961896
<!-- When use_order_profiling is set, the renderer processes need to be
18971897
able to write profiling information and thus cannot be
@@ -1901,7 +1901,7 @@ by a child template that "extends" this file.
19011901
android:process=":sandboxed_process19"
19021902
android:permission="org.chromium.chrome.permission.CHILD_SERVICE"
19031903
android:isolatedProcess="true"
1904-
android:exported="false"
1904+
android:exported="False"
19051905
/>
19061906

19071907
<meta-data android:name="org.chromium.content.browser.NUM_PRIVILEGED_SERVICES"

app/src/main/assets/zh-CN.pak

-2 Bytes
Binary file not shown.

app/src/main/assets/zh-TW.pak

-2 Bytes
Binary file not shown.

app/src/main/java/org/chromium/base/library_loader/NativeLibraries.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
import org.chromium.base.annotations.SuppressFBWarnings;
33
@SuppressFBWarnings
44
public class NativeLibraries {
5-
public static boolean sUseLinker = true;
5+
public static boolean sUseLinker = false;
66
public static boolean sUseLibraryInZipFile = false;
77
public static boolean sEnableLinkerTests = false;
88
public static final String[] LIBRARIES =
99
{"chrome"};
1010
static String sVersionNumber =
11-
"63.0.3239.40";
11+
"63.0.3239.65";
1212
}

app/src/main/java/org/chromium/chrome/browser/AppIndexingUtil.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import android.os.SystemClock;
88
import android.util.LruCache;
9-
import android.webkit.URLUtil;
109

1110
import org.chromium.base.Callback;
1211
import org.chromium.base.SysUtils;
@@ -16,6 +15,7 @@
1615
import org.chromium.blink.mojom.document_metadata.WebPage;
1716
import org.chromium.chrome.browser.historyreport.AppIndexingReporter;
1817
import org.chromium.chrome.browser.tab.Tab;
18+
import org.chromium.chrome.browser.util.UrlUtilities;
1919
import org.chromium.content_public.browser.RenderFrameHost;
2020
import org.chromium.content_public.browser.WebContents;
2121
import org.chromium.services.service_manager.InterfaceProvider;
@@ -47,7 +47,7 @@ public class AppIndexingUtil {
4747
*/
4848
public void extractCopylessPasteMetadata(final Tab tab) {
4949
final String url = tab.getUrl();
50-
boolean isHttpOrHttps = URLUtil.isHttpsUrl(url) || URLUtil.isHttpUrl(url);
50+
boolean isHttpOrHttps = UrlUtilities.isHttpOrHttps(url);
5151
if (!isEnabledForDevice() || tab.isIncognito() || !isHttpOrHttps) {
5252
return;
5353
}

app/src/main/java/org/chromium/chrome/browser/ChromeFeatureList.java

+2
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ public static boolean getFieldTrialParamByFeatureAsBoolean(
165165
public static final String CHROME_HOME_PERSONALIZED_OMNIBOX_SUGGESTIONS =
166166
"ChromeHomePersonalizedOmniboxSuggestions";
167167
public static final String CHROME_HOME_PROMO = "ChromeHomePromo";
168+
public static final String CHROME_HOME_PROMO_ON_STARTUP = "ChromeHomePromoOnStartup";
168169
public static final String CHROME_MEMEX = "ChromeMemex";
170+
public static final String CHROME_SMART_SELECTION = "ChromeSmartSelection";
169171
public static final String CONTENT_SUGGESTIONS_FAVICONS_FROM_NEW_SERVER =
170172
"ContentSuggestionsFaviconsFromNewServer";
171173
public static final String CONTENT_SUGGESTIONS_NOTIFICATIONS =

app/src/main/java/org/chromium/chrome/browser/ChromeTabbedActivity.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,11 @@ private boolean maybeLaunchNtpOrResetBottomSheetFromMainIntent(Intent intent) {
966966
BottomSheet bottomSheet = getBottomSheet();
967967
assert bottomSheet != null;
968968

969-
if (bottomSheet.isSheetOpen()) return false;
969+
if (bottomSheet.isSheetOpen()
970+
|| (getTimeSinceLastBackgroundedMs()
971+
< TIME_SINCE_BACKGROUNDED_TO_SHOW_BOTTOM_SHEET_HALF_MS)) {
972+
return false;
973+
}
970974

971975
if (mLayoutManager != null && mLayoutManager.overviewVisible()) {
972976
if (reuseOrCreateNewNtp()) {

app/src/main/java/org/chromium/chrome/browser/IntentHandler.java

+35-9
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import org.chromium.chrome.browser.tabmodel.TabModel.TabLaunchType;
4040
import org.chromium.chrome.browser.tabmodel.document.ActivityDelegate;
4141
import org.chromium.chrome.browser.util.IntentUtils;
42+
import org.chromium.chrome.browser.util.UrlUtilities;
4243
import org.chromium.content_public.browser.LoadUrlParams;
4344
import org.chromium.content_public.common.ContentUrlConstants;
4445
import org.chromium.content_public.common.Referrer;
@@ -779,12 +780,19 @@ public boolean shouldIgnoreIntent(Intent intent) {
779780

780781
@VisibleForTesting
781782
boolean intentHasValidUrl(Intent intent) {
782-
String url = getUrlFromIntent(intent);
783+
String url = extractUrlFromIntent(intent);
784+
785+
// Check if this is a valid googlechrome:// URL.
786+
if (isGoogleChromeScheme(url)) {
787+
url = getUrlFromGoogleChromeSchemeUrl(url);
788+
if (url == null) return false;
789+
}
783790

784791
// Always drop insecure urls.
785792
if (url != null && isJavascriptSchemeOrInvalidUrl(url)) {
786793
return false;
787794
}
795+
788796
return true;
789797
}
790798

@@ -911,7 +919,7 @@ private boolean isInvalidScheme(String scheme) {
911919
* "j$a$r". See: http://crbug.com/248398
912920
* @return The sanitized URL scheme or null if no scheme is specified.
913921
*/
914-
private String getSanitizedUrlScheme(String url) {
922+
private static String getSanitizedUrlScheme(String url) {
915923
if (url == null) {
916924
return null;
917925
}
@@ -948,22 +956,32 @@ private boolean isJavascriptSchemeOrInvalidUrl(String url) {
948956

949957
/**
950958
* Retrieve the URL from the Intent, which may be in multiple locations.
959+
* If the URL is googlechrome:// scheme, parse the actual navigation URL.
951960
* @param intent Intent to examine.
952961
* @return URL from the Intent, or null if a valid URL couldn't be found.
953962
*/
954963
public static String getUrlFromIntent(Intent intent) {
955-
if (intent == null) return null;
964+
String url = extractUrlFromIntent(intent);
965+
if (isGoogleChromeScheme(url)) {
966+
url = getUrlFromGoogleChromeSchemeUrl(url);
967+
}
968+
return url;
969+
}
956970

971+
/**
972+
* Helper method to extract the raw URL from the intent, without further processing.
973+
* The URL may be in multiple locations.
974+
* @param intent Intent to examine.
975+
* @return Raw URL from the intent, or null if raw URL could't be found.
976+
*/
977+
private static String extractUrlFromIntent(Intent intent) {
978+
if (intent == null) return null;
957979
String url = getUrlFromVoiceSearchResult(intent);
958980
if (url == null) url = ActivityDelegate.getInitialUrlForDocument(intent);
959981
if (url == null) url = getUrlForCustomTab(intent);
960982
if (url == null) url = intent.getDataString();
961983
if (url == null) return null;
962-
963984
url = url.trim();
964-
if (isGoogleChromeScheme(url)) {
965-
url = getUrlFromGoogleChromeSchemeUrl(url);
966-
}
967985
return TextUtils.isEmpty(url) ? null : url;
968986
}
969987

@@ -976,14 +994,22 @@ private static String getUrlForCustomTab(Intent intent) {
976994

977995
/**
978996
* Adjusts the URL to account for the googlechrome:// scheme.
979-
* Currently, its only use is to handle navigations.
997+
* Currently, its only use is to handle navigations, only http and https URL is allowed.
980998
* @param url URL to be processed
981999
* @return The string with the scheme and prefixes chopped off, if a valid prefix was used.
9821000
* Otherwise returns null.
9831001
*/
9841002
public static String getUrlFromGoogleChromeSchemeUrl(String url) {
9851003
if (url.toLowerCase(Locale.US).startsWith(GOOGLECHROME_NAVIGATE_PREFIX)) {
986-
return url.substring(GOOGLECHROME_NAVIGATE_PREFIX.length());
1004+
String parsedUrl = url.substring(GOOGLECHROME_NAVIGATE_PREFIX.length());
1005+
if (!TextUtils.isEmpty(parsedUrl)) {
1006+
String scheme = getSanitizedUrlScheme(parsedUrl);
1007+
if (scheme == null) {
1008+
// If no scheme, assuming this is an http url.
1009+
parsedUrl = "http://" + parsedUrl;
1010+
}
1011+
}
1012+
if (UrlUtilities.isHttpOrHttps(parsedUrl)) return parsedUrl;
9871013
}
9881014

9891015
return null;

0 commit comments

Comments
 (0)