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

Issue 2199223002: Remove unnecessary page loading in ContentShellActivity (Closed)

Created:
4 years, 4 months ago by yabinh
Modified:
4 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, jochen+watch_chromium.org, mlamouri+watch-content_chromium.org, Peter Beverloo
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove unnecessary page loading in ContentShellActivity In ContentShellActivity#onCreate, we load the page twice: one is the default page and the other is the target page. The second loading can be avoided if we load the target page in the first loading. Thus, we can be sure that the target page will be ready once the page stops loading. assertWaitForPageScaleFactorMatch() used to be a workaround for the flaky bug crbug.com/179511 . The tests are not flaky anymore after applying this patch. Thus, we can remove it. BUG=580419, 179511 Committed: https://crrev.com/797581eba513a69c80fbcbff43817b6fc6c6a9c0 Committed: https://crrev.com/6554045543b20db3e810925f3cda0f0d93e4bae6 Cr-Original-Commit-Position: refs/heads/master@{#410519} Cr-Commit-Position: refs/heads/master@{#411250}

Patch Set 1 #

Patch Set 2 : Remove unnecessary page loading in ContentShellActivity #

Patch Set 3 : Bringing back the assertWaitForPatchScaleFactorMatch check in ContentViewZoomingTest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -46 lines) Patch
M content/public/android/javatests/src/org/chromium/content/browser/AddressDetectionTest.java View 5 chunks +0 lines, -5 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/ClickListenerTest.java View 3 chunks +0 lines, -3 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java View 1 chunk +0 lines, -1 line 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/ContentViewScrollingTest.java View 1 chunk +0 lines, -1 line 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/EmailAddressDetectionTest.java View 1 chunk +0 lines, -1 line 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/PhoneNumberDetectionTest.java View 4 chunks +0 lines, -4 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/input/SelectPopupTest.java View 1 chunk +0 lines, -2 lines 0 comments Download
M content/shell/android/browsertests/src/org/chromium/content_shell/browsertests/ContentShellBrowserTestActivity.java View 1 1 chunk +1 line, -1 line 0 comments Download
M content/shell/android/java/src/org/chromium/content_shell/ShellManager.java View 1 2 3 chunks +1 line, -20 lines 0 comments Download
M content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java View 1 1 chunk +4 lines, -4 lines 0 comments Download
M content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java View 1 3 chunks +11 lines, -4 lines 0 comments Download

Messages

Total messages: 48 (32 generated)
yabinh
changwan@, please take a look at this cl.
4 years, 4 months ago (2016-08-02 06:21:58 UTC) #5
Changwan Ryu
non-owner lgtm adding sievers@ for OWNERS
4 years, 4 months ago (2016-08-02 06:36:44 UTC) #9
no sievers
lgtm
4 years, 4 months ago (2016-08-02 19:50:31 UTC) #17
yabinh
changwan@ asked if we could load the page only once. If so, we can use ...
4 years, 4 months ago (2016-08-05 07:35:17 UTC) #22
Changwan Ryu
lgtm w/ nits. please do not talk about patchset1 in commit message. Thanks, IMO this ...
4 years, 4 months ago (2016-08-08 02:47:17 UTC) #27
yabinh
On 2016/08/08 02:47:17, Changwan Ryu wrote: > lgtm w/ nits. > > please do not ...
4 years, 4 months ago (2016-08-08 02:56:16 UTC) #29
no sievers
On 2016/08/08 02:56:16, yabinh wrote: > On 2016/08/08 02:47:17, Changwan Ryu wrote: > > lgtm ...
4 years, 4 months ago (2016-08-08 18:14:52 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2199223002/20001
4 years, 4 months ago (2016-08-09 01:00:24 UTC) #32
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-09 02:13:29 UTC) #34
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/797581eba513a69c80fbcbff43817b6fc6c6a9c0 Cr-Commit-Position: refs/heads/master@{#410519}
4 years, 4 months ago (2016-08-09 02:15:23 UTC) #36
jbudorick
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/2231433002/ by jbudorick@chromium.org. ...
4 years, 4 months ago (2016-08-09 15:28:24 UTC) #37
aelias_OOO_until_Jul13
Reopening this issue. I suggest bringing back the assertWaitForPatchScaleFactor match check in ContentViewZoomingTest (it seems ...
4 years, 4 months ago (2016-08-09 23:02:48 UTC) #38
yabinh
I checked. Only ContentViewZoomingTest#testJoystickZoomOut is flaky. I'll bring it back as aelias@ suggested.
4 years, 4 months ago (2016-08-11 01:34:50 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2199223002/40001
4 years, 4 months ago (2016-08-11 01:36:30 UTC) #45
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-11 03:29:12 UTC) #46
commit-bot: I haz the power
4 years, 4 months ago (2016-08-11 03:31:59 UTC) #48
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/6554045543b20db3e810925f3cda0f0d93e4bae6
Cr-Commit-Position: refs/heads/master@{#411250}

Powered by Google App Engine
This is Rietveld 408576698