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

Issue 2957063002: Update app banner state machine to use more states. (Closed)

Created:
3 years, 5 months ago by benwells
Modified:
3 years, 5 months ago
Reviewers:
dominickn
CC:
chromium-reviews, dominickn+watch_chromium.org, pkotwicz+watch_chromium.org, zpeng+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Update app banner state machine to use more states. This replaces one instance of the ACTIVE state with a new SENDING_EVENT state, and removes a boolean and replaces it's true state with a new SENDING_EVENT_GOT_EARLY_PROMPT state. BUG=729919 Review-Url: https://codereview.chromium.org/2957063002 Cr-Commit-Position: refs/heads/master@{#484862} Committed: https://chromium.googlesource.com/chromium/src/+/18cea352aa57b1bd0e57e7e60c04cba80728542d

Patch Set 1 #

Patch Set 2 : Remove is_active_or_pending #

Total comments: 4

Patch Set 3 : Tidy some comments #

Patch Set 4 : Rebase #

Patch Set 5 : Rebase #

Patch Set 6 : Fix tests #

Patch Set 7 : Rebase #

Total comments: 8

Patch Set 8 : Feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -91 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/banners/AppBannerManager.java View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/banners/AppBannerManagerTest.java View 1 2 3 4 5 5 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/android/banners/app_banner_manager_android.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/android/banners/app_banner_manager_android.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/banners/app_banner_manager.h View 1 2 3 4 5 6 7 3 chunks +17 lines, -26 lines 0 comments Download
M chrome/browser/banners/app_banner_manager.cc View 1 2 3 4 5 6 7 14 chunks +58 lines, -43 lines 0 comments Download
M chrome/browser/banners/app_banner_manager_browsertest.cc View 1 2 3 5 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 31 (20 generated)
benwells
(sorry comments are on an old patch set...) https://codereview.chromium.org/2957063002/diff/20001/chrome/browser/banners/app_banner_manager.cc File chrome/browser/banners/app_banner_manager.cc (left): https://codereview.chromium.org/2957063002/diff/20001/chrome/browser/banners/app_banner_manager.cc#oldcode383 chrome/browser/banners/app_banner_manager.cc:383: DCHECK(!is_pending_event() ...
3 years, 5 months ago (2017-06-27 22:55:58 UTC) #7
benwells
oops forgot to add the reviewer...
3 years, 5 months ago (2017-06-28 07:09:09 UTC) #9
benwells
oops forgot to add the reviewer...
3 years, 5 months ago (2017-06-28 07:09:09 UTC) #10
benwells
Arg that test is still failing. I'll look when I get back from my holiday...
3 years, 5 months ago (2017-06-29 05:27:23 UTC) #15
dominickn
I think you might need to look at AppBannerManagerAndroid::IsActiveForTesting() for working out that test crash. ...
3 years, 5 months ago (2017-06-30 02:50:39 UTC) #16
benwells
Android tests seem happy now!
3 years, 5 months ago (2017-07-07 06:12:38 UTC) #23
dominickn
Mostly nits, thanks. https://codereview.chromium.org/2957063002/diff/120001/chrome/browser/android/banners/app_banner_manager_android.cc File chrome/browser/android/banners/app_banner_manager_android.cc (right): https://codereview.chromium.org/2957063002/diff/120001/chrome/browser/android/banners/app_banner_manager_android.cc#newcode227 chrome/browser/android/banners/app_banner_manager_android.cc:227: Stop(); You need to add return ...
3 years, 5 months ago (2017-07-07 06:23:19 UTC) #24
benwells
https://codereview.chromium.org/2957063002/diff/120001/chrome/browser/android/banners/app_banner_manager_android.cc File chrome/browser/android/banners/app_banner_manager_android.cc (right): https://codereview.chromium.org/2957063002/diff/120001/chrome/browser/android/banners/app_banner_manager_android.cc#newcode227 chrome/browser/android/banners/app_banner_manager_android.cc:227: Stop(); On 2017/07/07 06:23:18, dominickn wrote: > You need ...
3 years, 5 months ago (2017-07-07 06:29:27 UTC) #25
dominickn
lgtm, thanks!
3 years, 5 months ago (2017-07-07 06:32:20 UTC) #26
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/2957063002/140001
3 years, 5 months ago (2017-07-07 07:50:35 UTC) #28
commit-bot: I haz the power
3 years, 5 months ago (2017-07-07 08:54:24 UTC) #31
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/18cea352aa57b1bd0e57e7e60c04...

Powered by Google App Engine
This is Rietveld 408576698