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

Issue 1370473002: customtabs: Refactor CustomTabsConnection to simplify locking. (Closed)

Created:
5 years, 3 months ago by Benoit L
Modified:
5 years, 2 months ago
Reviewers:
pasko
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

customtabs: Refactor CustomTabsConnection to simplify locking. This refactoring of CustomTabsConnection has two benefits: - Move the client and session handling logic away from CustomTabsConnection. - Simplify locking in CustomTabsConnection, as it is all handled by ClientManager. Some methods in CustomTabsConnection are now simple pass-through. These will be removed in a subsequent CL. Leaving these here means that no test code is affected. Committed: https://crrev.com/475d09792533426eef213af553019eb543b1abbc Cr-Commit-Position: refs/heads/master@{#351146}

Patch Set 1 #

Patch Set 2 : Remove a private method used only once. #

Total comments: 21

Patch Set 3 : Address comments. #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : Quiet, Findbugs! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+286 lines, -214 lines) Patch
A chrome/android/java/src/org/chromium/chrome/browser/customtabs/ClientManager.java View 1 2 3 4 5 1 chunk +267 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java View 1 18 chunks +19 lines, -214 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
Benoit L
5 years, 3 months ago (2015-09-24 14:46:48 UTC) #2
pasko
thanks! initial set of comments to make locking simpler (and more expensive haha) https://codereview.chromium.org/1370473002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/ClientManager.java File ...
5 years, 3 months ago (2015-09-24 15:54:08 UTC) #3
Benoit L
Thanks! All done. https://codereview.chromium.org/1370473002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/ClientManager.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/ClientManager.java (right): https://codereview.chromium.org/1370473002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/ClientManager.java#newcode30 chrome/android/java/src/org/chromium/chrome/browser/customtabs/ClientManager.java:30: /** Manages the clients state for ...
5 years, 3 months ago (2015-09-24 16:42:14 UTC) #4
pasko
https://codereview.chromium.org/1370473002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/ClientManager.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/ClientManager.java (right): https://codereview.chromium.org/1370473002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/ClientManager.java#newcode230 chrome/android/java/src/org/chromium/chrome/browser/customtabs/ClientManager.java:230: if (ok) params.setServiceConnection(connection); On 2015/09/24 16:42:14, Benoit L wrote: ...
5 years, 2 months ago (2015-09-25 15:58:42 UTC) #5
Benoit L
Done, thank you. PTAL.
5 years, 2 months ago (2015-09-28 16:31:42 UTC) #6
pasko
lgtm, thank you for actually updating it, I almost forgot about it, but now I ...
5 years, 2 months ago (2015-09-28 17:51:57 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1370473002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1370473002/80001
5 years, 2 months ago (2015-09-28 17:59:52 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/126382)
5 years, 2 months ago (2015-09-28 18:42:26 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1370473002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1370473002/100001
5 years, 2 months ago (2015-09-28 19:14:24 UTC) #14
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 2 months ago (2015-09-28 21:01:34 UTC) #15
commit-bot: I haz the power
5 years, 2 months ago (2015-09-28 21:02:49 UTC) #16
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/475d09792533426eef213af553019eb543b1abbc
Cr-Commit-Position: refs/heads/master@{#351146}

Powered by Google App Engine
This is Rietveld 408576698