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

Issue 1161233005: Implement app banner info bars on desktop. (Closed)

Created:
5 years, 6 months ago by dominickn (DO NOT USE)
Modified:
5 years, 6 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, oshima+watch_chromium.org, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@stop-icon-overgeneration
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement app banner info bars on desktop. This CL extends the app banner implementation to work on desktop, enabled with the flag --enable-add-to-shelf. With this flag active, users will be prompted with an infobar to add a site to their shelf once they have engaged with it to some substantive amount (subject to heuristics currently implemented for the mobile add to homescreen banner). Note: the icon used is a placeholder to be updated later. BUG=491001 Committed: https://crrev.com/4d15cab83cf46e1e5b90b30541911c108b20c8d6 Cr-Commit-Position: refs/heads/master@{#332988}

Patch Set 1 #

Patch Set 2 : Fixing display bug on Android #

Total comments: 33

Patch Set 3 : Factoring out desktop implementation #

Patch Set 4 : Completing refactor of Android implementation #

Patch Set 5 : Formatting and code cleanliness #

Total comments: 1

Patch Set 6 : Better comments in ShowBanner #

Patch Set 7 : Reuploading #

Total comments: 12

Patch Set 8 : Addressing review comments #

Patch Set 9 : Addressing compile issue in tests due to new abstract class #

Total comments: 1

Patch Set 10 : Moving feature enabling to existing #ifs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+498 lines, -72 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/app/theme/theme_resources.grd View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/android/banners/app_banner_data_fetcher_android.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/android/banners/app_banner_data_fetcher_android.cc View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/android/banners/app_banner_infobar_delegate_android.cc View 1 2 3 3 chunks +8 lines, -29 lines 0 comments Download
M chrome/browser/banners/app_banner_data_fetcher.h View 1 2 3 4 5 6 7 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/banners/app_banner_data_fetcher.cc View 1 2 3 4 5 6 7 4 chunks +3 lines, -21 lines 0 comments Download
M chrome/browser/banners/app_banner_data_fetcher_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -3 lines 0 comments Download
A chrome/browser/banners/app_banner_data_fetcher_desktop.h View 1 2 3 4 5 6 7 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/browser/banners/app_banner_data_fetcher_desktop.cc View 1 2 3 4 5 6 7 1 chunk +84 lines, -0 lines 0 comments Download
A chrome/browser/banners/app_banner_infobar_delegate_desktop.h View 1 2 3 4 5 6 7 1 chunk +73 lines, -0 lines 0 comments Download
A chrome/browser/banners/app_banner_infobar_delegate_desktop.cc View 1 2 3 4 1 chunk +101 lines, -0 lines 0 comments Download
M chrome/browser/banners/app_banner_manager.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/banners/app_banner_manager.cc View 1 2 3 4 5 6 7 3 chunks +8 lines, -8 lines 0 comments Download
A chrome/browser/banners/app_banner_manager_desktop.h View 1 2 3 4 5 6 7 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/browser/banners/app_banner_manager_desktop.cc View 1 2 3 4 5 6 7 1 chunk +32 lines, -0 lines 0 comments Download
M chrome/browser/banners/app_banner_settings_helper.h View 1 2 3 4 2 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/banners/app_banner_settings_helper.cc View 1 2 2 chunks +41 lines, -0 lines 0 comments Download
M chrome/browser/extensions/bookmark_app_helper.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/bookmark_app_helper.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/tab_helpers.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (4 generated)
dominickn (DO NOT USE)
5 years, 6 months ago (2015-06-01 06:43:14 UTC) #2
gone
On 2015/06/01 06:43:14, dominickn wrote: You seem to have broken the Android tests.
5 years, 6 months ago (2015-06-01 17:22:40 UTC) #3
gone
On 2015/06/01 17:22:40, dfalcantara wrote: > On 2015/06/01 06:43:14, dominickn wrote: > > You seem ...
5 years, 6 months ago (2015-06-01 17:27:47 UTC) #4
dominickn (DO NOT USE)
I refactored out the actual infobar creation from the base data fetcher, but managed to ...
5 years, 6 months ago (2015-06-02 03:53:18 UTC) #5
benwells
Woot! Can't wait to play with this.... https://codereview.chromium.org/1161233005/diff/20001/chrome/app/theme/theme_resources.grd File chrome/app/theme/theme_resources.grd (right): https://codereview.chromium.org/1161233005/diff/20001/chrome/app/theme/theme_resources.grd#newcode402 chrome/app/theme/theme_resources.grd:402: <structure type="chrome_scaled_image" ...
5 years, 6 months ago (2015-06-02 05:53:36 UTC) #6
dominickn (DO NOT USE)
https://codereview.chromium.org/1161233005/diff/20001/chrome/app/theme/theme_resources.grd File chrome/app/theme/theme_resources.grd (right): https://codereview.chromium.org/1161233005/diff/20001/chrome/app/theme/theme_resources.grd#newcode402 chrome/app/theme/theme_resources.grd:402: <structure type="chrome_scaled_image" name="IDR_INFOBAR_APP_BANNER" file="cros/kiosk_app_user_pod_icon.png" /> On 2015/06/02 05:53:35, benwells ...
5 years, 6 months ago (2015-06-02 06:51:33 UTC) #7
dominickn (DO NOT USE)
Update: desktop app banner implementation has now been factored out.
5 years, 6 months ago (2015-06-02 13:50:39 UTC) #8
gone
> I didn't add an explicit desktop version because I conceptualised the Android > one ...
5 years, 6 months ago (2015-06-02 21:36:05 UTC) #9
dominickn (DO NOT USE)
> This function is a little strange, now. All the work to actually show the ...
5 years, 6 months ago (2015-06-03 00:54:34 UTC) #11
benwells
On 2015/06/03 00:54:34, dominickn wrote: > > This function is a little strange, now. All ...
5 years, 6 months ago (2015-06-03 03:33:07 UTC) #12
benwells
lgtm with comments addressed https://codereview.chromium.org/1161233005/diff/120001/chrome/browser/banners/app_banner_data_fetcher.cc File chrome/browser/banners/app_banner_data_fetcher.cc (right): https://codereview.chromium.org/1161233005/diff/120001/chrome/browser/banners/app_banner_data_fetcher.cc#newcode207 chrome/browser/banners/app_banner_data_fetcher.cc:207: DCHECK(web_contents && !web_app_data_.IsEmpty()); I think ...
5 years, 6 months ago (2015-06-03 06:13:55 UTC) #13
benwells
Oops, one more thing - your description is now out of date as it is ...
5 years, 6 months ago (2015-06-03 06:31:50 UTC) #14
dominickn (DO NOT USE)
On 2015/06/03 06:31:50, benwells wrote: > Oops, one more thing - your description is now ...
5 years, 6 months ago (2015-06-03 07:10:36 UTC) #15
Avi (use Gerrit)
https://codereview.chromium.org/1161233005/diff/160001/chrome/browser/ui/tab_helpers.cc File chrome/browser/ui/tab_helpers.cc (right): https://codereview.chromium.org/1161233005/diff/160001/chrome/browser/ui/tab_helpers.cc#newcode210 chrome/browser/ui/tab_helpers.cc:210: #endif This is really for not-android? Put this is ...
5 years, 6 months ago (2015-06-03 15:12:43 UTC) #16
dominickn (DO NOT USE)
On 2015/06/03 15:12:43, Avi wrote: > https://codereview.chromium.org/1161233005/diff/160001/chrome/browser/ui/tab_helpers.cc > File chrome/browser/ui/tab_helpers.cc (right): > > https://codereview.chromium.org/1161233005/diff/160001/chrome/browser/ui/tab_helpers.cc#newcode210 > ...
5 years, 6 months ago (2015-06-03 22:43:11 UTC) #17
Avi (use Gerrit)
tab helpers lgtm
5 years, 6 months ago (2015-06-04 21:20:08 UTC) #18
oshima
c/a/theme lgtm
5 years, 6 months ago (2015-06-04 21:57:54 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1161233005/180001
5 years, 6 months ago (2015-06-05 00:07:18 UTC) #22
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 6 months ago (2015-06-05 01:42:21 UTC) #23
commit-bot: I haz the power
5 years, 6 months ago (2015-06-05 01:43:16 UTC) #24
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/4d15cab83cf46e1e5b90b30541911c108b20c8d6
Cr-Commit-Position: refs/heads/master@{#332988}

Powered by Google App Engine
This is Rietveld 408576698