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

Issue 2228273002: Run ShortcutHelper::AddToLauncherInBackgroundWithSkBitmap() on Worker thread instead of IO thread (Closed)

Created:
4 years, 4 months ago by pkotwicz
Modified:
4 years, 4 months ago
Reviewers:
dominickn, Yaron, gone, agrieve
CC:
chromium-reviews, dominickn+watch_chromium.org, Xi Han
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Run ShortcutHelper::AddToLauncherInBackgroundWithSkBitmap() on Worker thread instead of IO thread This CL runs ShortcutHelper::AddToLauncherInBackgroundWithSkBitmap() on a worker thread instead of the IO thread. According to https://www.chromium.org/developers/design-documents/threading expensive tasks should not be done on the IO thread. This CL also changes ShortcutHelper::AddToLauncherInBackgroundWithSkBitmap() so that only the expensive parts are run on the worker thread instead of the entire process started by ShortcutHelper::AddToLauncherInBackgroundWithSkBitmap() running on the worker thread. BUG=635347 Committed: https://crrev.com/c67e6ac6fb0cc0b0ba6582ea1a9e8e62caf9748a Cr-Commit-Position: refs/heads/master@{#411743}

Patch Set 1 #

Total comments: 13

Patch Set 2 : Merge branch 'master' into webapk_builder_impl2_thread #

Total comments: 2

Patch Set 3 : Merge branch 'master' into webapk_builder_impl2_thread #

Patch Set 4 : Merge branch 'master' into webapk_builder_impl2_thread #

Total comments: 6

Patch Set 5 : Merge branch 'master' into webapk_builder_impl2_thread #

Unified diffs Side-by-side diffs Delta from patch set Stats (+193 lines, -164 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java View 1 2 3 4 6 chunks +71 lines, -50 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/browsing_data/BrowsingDataRemoverIntegrationTest.java View 1 2 3 4 3 chunks +24 lines, -15 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferencesTest.java View 1 2 3 4 2 chunks +11 lines, -3 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/webapps/WebappDataStorageTest.java View 1 2 3 2 chunks +10 lines, -3 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/webapps/WebappRegistryTest.java View 1 2 3 4 2 chunks +9 lines, -5 lines 0 comments Download
M chrome/browser/android/banners/app_banner_infobar_delegate_android.cc View 1 2 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/android/shortcut_helper.h View 3 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/android/shortcut_helper.cc View 4 chunks +8 lines, -14 lines 0 comments Download
M chrome/browser/android/webapk/webapk_installer.h View 1 3 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/android/webapk/webapk_installer.cc View 1 8 chunks +33 lines, -46 lines 0 comments Download
M chrome/browser/android/webapps/add_to_homescreen_dialog_helper.cc View 1 2 3 4 1 chunk +3 lines, -5 lines 0 comments Download
M testing/android/junit/java/src/org/chromium/testing/local/BackgroundShadowAsyncTask.java View 1 2 3 2 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 32 (13 generated)
pkotwicz
Dominick and Yaron, can you please take a look?
4 years, 4 months ago (2016-08-10 02:01:57 UTC) #2
dominickn
lgtm % nits and a question. Do you have access to a KK device so ...
4 years, 4 months ago (2016-08-10 05:18:10 UTC) #4
Yaron
lgtm https://codereview.chromium.org/2228273002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java File chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java (right): https://codereview.chromium.org/2228273002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java#newcode200 chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java:200: Context applicationContext = ContextUtils.getApplicationContext(); assert ui thread
4 years, 4 months ago (2016-08-10 14:57:01 UTC) #5
pkotwicz
dfalcantara@ can you please take a look at the changes in ShortcutHelper.java to make sure ...
4 years, 4 months ago (2016-08-10 20:28:43 UTC) #8
pkotwicz
dfalcantara@ can you please take a look at the changes in ShortcutHelper.java to make sure ...
4 years, 4 months ago (2016-08-10 20:29:14 UTC) #10
gone
ShortcutHelper/Banners lgtm. Didn't look at anything else. https://chromiumcodereview.appspot.com/2228273002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java File chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java (right): https://chromiumcodereview.appspot.com/2228273002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java#newcode134 chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java:134: * homescreen ...
4 years, 4 months ago (2016-08-10 22:42:27 UTC) #11
pkotwicz
https://codereview.chromium.org/2228273002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java File chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java (right): https://codereview.chromium.org/2228273002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java#newcode134 chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java:134: * homescreen shortcut and registers web app asynchronously. Calls ...
4 years, 4 months ago (2016-08-11 00:35:21 UTC) #12
agrieve
https://codereview.chromium.org/2228273002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java File chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java (right): https://codereview.chromium.org/2228273002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java#newcode178 chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java:178: }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); On 2016/08/10 20:28:43, pkotwicz wrote: > Adding agrieve@. ...
4 years, 4 months ago (2016-08-11 00:42:13 UTC) #13
dominickn
On 2016/08/11 00:42:13, agrieve wrote: > https://codereview.chromium.org/2228273002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java > File chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java > (right): > > https://codereview.chromium.org/2228273002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java#newcode178 ...
4 years, 4 months ago (2016-08-11 01:29:18 UTC) #14
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/2228273002/60001
4 years, 4 months ago (2016-08-11 13:37:45 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/120770)
4 years, 4 months ago (2016-08-11 14:44:07 UTC) #19
pkotwicz
Yaron can you please take another look? The changes in BackgroundShadowAsyncTask.java and the tests in ...
4 years, 4 months ago (2016-08-11 19:05:51 UTC) #20
pkotwicz
Yaron can you please take another look? The changes in BackgroundShadowAsyncTask.java and the tests in ...
4 years, 4 months ago (2016-08-11 19:05:52 UTC) #21
Yaron
lgtm Noticed a few nits but totally ignorable if you want. https://codereview.chromium.org/2228273002/diff/80001/chrome/android/javatests/src/org/chromium/chrome/browser/browsing_data/BrowsingDataRemoverIntegrationTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/browsing_data/BrowsingDataRemoverIntegrationTest.java (right): ...
4 years, 4 months ago (2016-08-12 16:18:07 UTC) #22
pkotwicz
https://codereview.chromium.org/2228273002/diff/80001/chrome/android/junit/src/org/chromium/chrome/browser/webapps/WebappRegistryTest.java File chrome/android/junit/src/org/chromium/chrome/browser/webapps/WebappRegistryTest.java (right): https://codereview.chromium.org/2228273002/diff/80001/chrome/android/junit/src/org/chromium/chrome/browser/webapps/WebappRegistryTest.java#newcode753 chrome/android/junit/src/org/chromium/chrome/browser/webapps/WebappRegistryTest.java:753: private Intent createShortcutIntent(final String url) throws Exception { I ...
4 years, 4 months ago (2016-08-12 18:44:27 UTC) #23
pkotwicz
4 years, 4 months ago (2016-08-12 19:19:37 UTC) #25
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/2228273002/120001
4 years, 4 months ago (2016-08-12 19:20:31 UTC) #28
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 4 months ago (2016-08-12 19:57:01 UTC) #30
commit-bot: I haz the power
4 years, 4 months ago (2016-08-12 19:58:36 UTC) #32
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c67e6ac6fb0cc0b0ba6582ea1a9e8e62caf9748a
Cr-Commit-Position: refs/heads/master@{#411743}

Powered by Google App Engine
This is Rietveld 408576698