|
|
Created:
4 years, 7 months ago by mattreynolds Modified:
4 years, 7 months ago Reviewers:
nyquist CC:
chromium-reviews, mmocny Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionAdd a PhysicalWebEnvironment class
This class has a hasNotificationBasedClient method that will
allow us to disable notifications if there is another Physical Web
client showing notifications.
BUG=604502
Committed: https://crrev.com/e4eeab705b90400e255496cf7ccf85ef62e24809
Cr-Commit-Position: refs/heads/master@{#390739}
Committed: https://crrev.com/4d8ccd8392faa23539f84ca5abcf6e6a0fea7450
Cr-Commit-Position: refs/heads/master@{#391699}
Patch Set 1 #
Total comments: 2
Patch Set 2 : assert UI thread #Patch Set 3 : register new file in java_sources.gni #Patch Set 4 : rebase #
Messages
Total messages: 44 (20 generated)
mattreynolds@chromium.org changed reviewers: + nyquist@chromium.org
Hi Tommy, PTAL. This is the first of two CLs to add support for the Discoverer flag that will turn off our Physical Web notifications when Discoverer is showing its own notifications. The internal CL needs to land after this one and is linked from the bug. I recreated this CL from cco3's original: https://codereview.chromium.org/1902593002/ (is there a better way to transfer CL ownership in Rietveld?)
https://codereview.chromium.org/1927593004/diff/1/chrome/android/java/src/org... File chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebEnvironment.java (right): https://codereview.chromium.org/1927593004/diff/1/chrome/android/java/src/org... chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebEnvironment.java:21: public static PhysicalWebEnvironment getInstance(ChromeApplication chromeApplication) { Should you add ThreadUtils.assertOnUiThread() here to ensure there will be no issues in the future regarding threading?
https://codereview.chromium.org/1927593004/diff/1/chrome/android/java/src/org... File chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebEnvironment.java (right): https://codereview.chromium.org/1927593004/diff/1/chrome/android/java/src/org... chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebEnvironment.java:21: public static PhysicalWebEnvironment getInstance(ChromeApplication chromeApplication) { On 2016/04/27 21:46:28, nyquist wrote: > Should you add ThreadUtils.assertOnUiThread() here to ensure there will be no > issues in the future regarding threading? Good call, done
lgtm
The CQ bit was checked by mattreynolds@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1927593004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1927593004/20001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chro...)
The CQ bit was checked by mattreynolds@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from nyquist@chromium.org Link to the patchset: https://codereview.chromium.org/1927593004/#ps40001 (title: "register new file in java_sources.gni")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1927593004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1927593004/40001
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/1928443005/ by jdonnelly@chromium.org. The reason for reverting is: Broke the Android GN builder: https://build.chromium.org/p/chromium.linux/builders/Android%20GN/builds/34011.
Message was sent while issue was closed.
On 2016/04/28 03:26:29, Justin Donnelly wrote: > A revert of this CL (patchset #3 id:40001) has been created in > https://codereview.chromium.org/1928443005/ by mailto:jdonnelly@chromium.org. > > The reason for reverting is: Broke the Android GN builder: > > https://build.chromium.org/p/chromium.linux/builders/Android%20GN/builds/34011. Also the Android Tests (dbg) bot: https://build.chromium.org/p/chromium.linux/builders/Android%20Tests%20%28dbg...
Message was sent while issue was closed.
Description was changed from ========== Add a PhysicalWebEnvironment class This class has a hasNotificationBasedClient method that will allow us to disable notifications if there is another Physical Web client showing notifications. BUG=604502 ========== to ========== Add a PhysicalWebEnvironment class This class has a hasNotificationBasedClient method that will allow us to disable notifications if there is another Physical Web client showing notifications. BUG=604502 ==========
On 2016/04/28 03:29:13, Justin Donnelly wrote: > On 2016/04/28 03:26:29, Justin Donnelly wrote: > > A revert of this CL (patchset #3 id:40001) has been created in > > https://codereview.chromium.org/1928443005/ by mailto:jdonnelly@chromium.org. > > > > The reason for reverting is: Broke the Android GN builder: > > > > > https://build.chromium.org/p/chromium.linux/builders/Android%20GN/builds/34011. > > Also the Android Tests (dbg) bot: > > https://build.chromium.org/p/chromium.linux/builders/Android%20Tests%20%28dbg... In those logs I only see failures from our tests. Both tests passed with this change when I ran them locally.
The CQ bit was checked by mattreynolds@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1927593004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1927593004/40001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by mattreynolds@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1927593004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1927593004/40001
Message was sent while issue was closed.
Description was changed from ========== Add a PhysicalWebEnvironment class This class has a hasNotificationBasedClient method that will allow us to disable notifications if there is another Physical Web client showing notifications. BUG=604502 ========== to ========== Add a PhysicalWebEnvironment class This class has a hasNotificationBasedClient method that will allow us to disable notifications if there is another Physical Web client showing notifications. BUG=604502 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/1942463002/ by mattreynolds@chromium.org. The reason for reverting is: Broke the GN build again (test failures): https://build.chromium.org/p/chromium.linux/builders/Android%20GN/builds/34043 Instrumentation test ChromePublicTest failures: org.chromium.chrome.browser.physicalweb.ListUrlsActivityTest#testUrlsListEmptyInOnboarding org.chromium.chrome.browser.physicalweb.UrlManagerTest#testAddUrlWhileOnboardingMakesNotification.
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/77fa2b353cf3cca85eebe8e36dd345ed1a35af65 Cr-Commit-Position: refs/heads/master@{#390254}
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/e4eeab705b90400e255496cf7ccf85ef62e24809 Cr-Commit-Position: refs/heads/master@{#390739}
Message was sent while issue was closed.
Description was changed from ========== Add a PhysicalWebEnvironment class This class has a hasNotificationBasedClient method that will allow us to disable notifications if there is another Physical Web client showing notifications. BUG=604502 ========== to ========== Add a PhysicalWebEnvironment class This class has a hasNotificationBasedClient method that will allow us to disable notifications if there is another Physical Web client showing notifications. BUG=604502 Committed: https://crrev.com/77fa2b353cf3cca85eebe8e36dd345ed1a35af65 Cr-Commit-Position: refs/heads/master@{#390254} ==========
Message was sent while issue was closed.
Description was changed from ========== Add a PhysicalWebEnvironment class This class has a hasNotificationBasedClient method that will allow us to disable notifications if there is another Physical Web client showing notifications. BUG=604502 Committed: https://crrev.com/77fa2b353cf3cca85eebe8e36dd345ed1a35af65 Cr-Commit-Position: refs/heads/master@{#390254} ========== to ========== Add a PhysicalWebEnvironment class This class has a hasNotificationBasedClient method that will allow us to disable notifications if there is another Physical Web client showing notifications. BUG=604502 Committed: https://crrev.com/e4eeab705b90400e255496cf7ccf85ef62e24809 Cr-Commit-Position: refs/heads/master@{#390739} ==========
Message was sent while issue was closed.
Description was changed from ========== Add a PhysicalWebEnvironment class This class has a hasNotificationBasedClient method that will allow us to disable notifications if there is another Physical Web client showing notifications. BUG=604502 Committed: https://crrev.com/e4eeab705b90400e255496cf7ccf85ef62e24809 Cr-Commit-Position: refs/heads/master@{#390739} ========== to ========== Add a PhysicalWebEnvironment class This class has a hasNotificationBasedClient method that will allow us to disable notifications if there is another Physical Web client showing notifications. BUG=604502 Committed: https://crrev.com/e4eeab705b90400e255496cf7ccf85ef62e24809 Cr-Commit-Position: refs/heads/master@{#390739} ==========
The tests that were failing have been disabled (https://codereview.chromium.org/1937643002/) so let's try it again.
The CQ bit was checked by mattreynolds@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1927593004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1927593004/40001
The CQ bit was unchecked by commit-bot@chromium.org
Failed to apply the patch.
The CQ bit was unchecked by commit-bot@chromium.org
The CQ bit was checked by mattreynolds@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from nyquist@chromium.org Link to the patchset: https://codereview.chromium.org/1927593004/#ps60001 (title: "rebase")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1927593004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1927593004/60001
Message was sent while issue was closed.
Description was changed from ========== Add a PhysicalWebEnvironment class This class has a hasNotificationBasedClient method that will allow us to disable notifications if there is another Physical Web client showing notifications. BUG=604502 Committed: https://crrev.com/e4eeab705b90400e255496cf7ccf85ef62e24809 Cr-Commit-Position: refs/heads/master@{#390739} ========== to ========== Add a PhysicalWebEnvironment class This class has a hasNotificationBasedClient method that will allow us to disable notifications if there is another Physical Web client showing notifications. BUG=604502 Committed: https://crrev.com/e4eeab705b90400e255496cf7ccf85ef62e24809 Cr-Commit-Position: refs/heads/master@{#390739} ==========
Message was sent while issue was closed.
Committed patchset #4 (id:60001)
Message was sent while issue was closed.
Description was changed from ========== Add a PhysicalWebEnvironment class This class has a hasNotificationBasedClient method that will allow us to disable notifications if there is another Physical Web client showing notifications. BUG=604502 Committed: https://crrev.com/e4eeab705b90400e255496cf7ccf85ef62e24809 Cr-Commit-Position: refs/heads/master@{#390739} ========== to ========== Add a PhysicalWebEnvironment class This class has a hasNotificationBasedClient method that will allow us to disable notifications if there is another Physical Web client showing notifications. BUG=604502 Committed: https://crrev.com/e4eeab705b90400e255496cf7ccf85ef62e24809 Cr-Commit-Position: refs/heads/master@{#390739} Committed: https://crrev.com/4d8ccd8392faa23539f84ca5abcf6e6a0fea7450 Cr-Commit-Position: refs/heads/master@{#391699} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/4d8ccd8392faa23539f84ca5abcf6e6a0fea7450 Cr-Commit-Position: refs/heads/master@{#391699} |