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

Issue 2067943004: ARC: Add badge for Chrome hosted Apps if Arc++ is enabled. (Closed)

Created:
4 years, 6 months ago by xdai1
Modified:
4 years, 6 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, davemoore+watch_chromium.org, elijahtaylor+arcwatch_chromium.org, extensions-reviews_chromium.org, hidehiko+watch_chromium.org, kalyank, lhchavez+watch_chromium.org, Matt Giuca, oshima+watch_chromium.org, sadrul, tapted, tfarina, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ARC: Add badge for Chrome hosted Apps if Arc++ is enabled. In order to distinguish between the Chrome Apps and Anroid Apps that have the same icons, a special badge icon is added for Chrome hosted Apps if Arc++ is enabled. Badge appears in shelf, app list and recent apps. - Badge is only applied on the Chrome host Apps for the primary user. If more than one user logs in the system, only the primary user has the badge. - Enable/Disable Arc will instantly turn on/off badges. The implementation is mostly based on khmel@'s initial CL: https://codereview.chromium.org/1967663007 BUG=b/28521800 TEST=1. Open chrome://settings, click the checkbox to enable/disable Android Apps. Notice the badges on the Chrome apps appear/disappear accordingly. 2. Log in a second user. Switch between users and notice the badges on the Chrome apps appear/disappear accordingly. Committed: https://crrev.com/622fb32dda21261fd4d8650386fec11822db27b0 Cr-Commit-Position: refs/heads/master@{#400527}

Patch Set 1 : ARC: Add badge for Chrome Apps if Arc++ is enabled. #

Patch Set 2 : Fix the compile error #

Patch Set 3 : Fix the failed unittest. #

Total comments: 1

Patch Set 4 : Fix the failed browsertest. #

Patch Set 5 : Address skuhne@'s comment. #

Patch Set 6 : Fix the failed unittest. #

Total comments: 4

Patch Set 7 : Address oshima@'s comment. Rebase & fix failed unittest. #

Total comments: 1

Patch Set 8 : Address xiyuan@'s comment. Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -65 lines) Patch
M ash/shelf/shelf_view.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -4 lines 0 comments Download
A chrome/browser/chromeos/extensions/gfx_utils.h View 1 2 3 4 5 6 1 chunk +30 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/extensions/gfx_utils.cc View 1 2 3 4 5 6 1 chunk +64 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_app_icon_loader.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/extension_app_item.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/extension_app_model_builder.h View 4 chunks +13 lines, -15 lines 0 comments Download
M chrome/browser/ui/app_list/extension_app_model_builder.cc View 6 chunks +28 lines, -34 lines 0 comments Download
M chrome/browser/ui/app_list/search/extension_app_result.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc View 1 2 3 4 5 6 7 5 chunks +25 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_app_updater.h View 1 2 3 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_arc_app_updater.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_extension_app_updater.h View 1 2 3 4 5 6 7 2 chunks +23 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_extension_app_updater.cc View 1 2 3 4 5 6 7 2 chunks +74 lines, -3 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A ui/chromeos/resources/default_100_percent/arc/dual-icon-badge.png View Binary file 0 comments Download
A ui/chromeos/resources/default_200_percent/arc/dual-icon-badge.png View Binary file 0 comments Download
M ui/chromeos/resources/ui_chromeos_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
xdai1
khmel@, skuhne@, oshima@, benwells@, could you help review this CL please? Thanks! khmel@: all skuhne@: ...
4 years, 6 months ago (2016-06-15 22:34:29 UTC) #4
Mr4D (OOO till 08-26)
ash/shelf/shelf_view.cc and files in chrome/browser/ui/ash/launcher lgtm https://codereview.chromium.org/2067943004/diff/60001/chrome/browser/ui/ash/launcher/launcher_extension_app_updater.cc File chrome/browser/ui/ash/launcher/launcher_extension_app_updater.cc (right): https://codereview.chromium.org/2067943004/diff/60001/chrome/browser/ui/ash/launcher/launcher_extension_app_updater.cc#newcode79 chrome/browser/ui/ash/launcher/launcher_extension_app_updater.cc:79: extension_registry_->RemoveObserver(this); you might ...
4 years, 6 months ago (2016-06-15 23:03:23 UTC) #5
benwells
https://codereview.chromium.org/2067943004/diff/120001/chrome/browser/extensions/extension_app_icon_loader.cc File chrome/browser/extensions/extension_app_icon_loader.cc (right): https://codereview.chromium.org/2067943004/diff/120001/chrome/browser/extensions/extension_app_icon_loader.cc#newcode100 chrome/browser/extensions/extension_app_icon_loader.cc:100: util::MaybeApplyChromeBadge(profile(), id, &image); Why do you have to do ...
4 years, 6 months ago (2016-06-16 07:45:43 UTC) #6
khmel
lgtm
4 years, 6 months ago (2016-06-16 15:27:59 UTC) #7
xdai1
khmel@, skuhne@, thanks for your review! benwells@, oshima@, please take another look, thanks! https://codereview.chromium.org/2067943004/diff/120001/chrome/browser/extensions/extension_app_icon_loader.cc File ...
4 years, 6 months ago (2016-06-16 17:00:13 UTC) #8
oshima
chromeos lgtm with following nits https://codereview.chromium.org/2067943004/diff/120001/chrome/browser/chromeos/extensions/gfx_utils.cc File chrome/browser/chromeos/extensions/gfx_utils.cc (right): https://codereview.chromium.org/2067943004/diff/120001/chrome/browser/chromeos/extensions/gfx_utils.cc#newcode24 chrome/browser/chromeos/extensions/gfx_utils.cc:24: gfx::ImageSkia* icon) { nit: ...
4 years, 6 months ago (2016-06-16 17:55:56 UTC) #9
xdai1
On 2016/06/16 17:55:56, oshima wrote: > chromeos lgtm with following nits > > https://codereview.chromium.org/2067943004/diff/120001/chrome/browser/chromeos/extensions/gfx_utils.cc > ...
4 years, 6 months ago (2016-06-16 20:34:04 UTC) #11
xdai1
benwells@, kindly ping?
4 years, 6 months ago (2016-06-17 16:41:20 UTC) #12
xdai1
seems benwells@ is OOO. rockot@, xiyuan@, could you help review this CL please? Thanks! rockot@: ...
4 years, 6 months ago (2016-06-17 20:32:24 UTC) #14
xiyuan
lgtm https://codereview.chromium.org/2067943004/diff/150001/chrome/browser/ui/ash/launcher/launcher_extension_app_updater.h File chrome/browser/ui/ash/launcher/launcher_extension_app_updater.h (right): https://codereview.chromium.org/2067943004/diff/150001/chrome/browser/ui/ash/launcher/launcher_extension_app_updater.h#newcode47 chrome/browser/ui/ash/launcher/launcher_extension_app_updater.h:47: void UpdateHostApp(const std::string& app_id); nit: to be consistent, ...
4 years, 6 months ago (2016-06-17 20:57:30 UTC) #15
Ken Rockot(use gerrit already)
lgtm
4 years, 6 months ago (2016-06-17 20:58:33 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2067943004/170001
4 years, 6 months ago (2016-06-17 21:41:40 UTC) #19
commit-bot: I haz the power
Committed patchset #8 (id:170001)
4 years, 6 months ago (2016-06-17 22:27:51 UTC) #21
commit-bot: I haz the power
4 years, 6 months ago (2016-06-17 22:29:08 UTC) #23
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/622fb32dda21261fd4d8650386fec11822db27b0
Cr-Commit-Position: refs/heads/master@{#400527}

Powered by Google App Engine
This is Rietveld 408576698