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

Issue 1973603002: arc: Make Play Store item persistance in shelf. (Closed)

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

Description

arc: Make Play Store item persistance in shelf. This also shares item with OptIn UI. BUG=b/28485354 TEST=Manually on device. Play Store icon exists always on shelf. when Arc is not OptedIn, clicking this icon opens OptIn UI and this shelf icon behaives as ordinal Platform app. Clicking on it minimizes/shows UI. Play Store is automatically started on OptIn flow finishes. Once Play Store started, there is no additional icon for Android app. It reuses the same shelf item. Menu in all cases does not have pin/unpin option. If Chromebook is opted in already, this just starts/activates PlayStore window and no additional item in shelf is created. Committed: https://crrev.com/18cc6b017a26f267792161bdb150eea81f2fecb4 Cr-Commit-Position: refs/heads/master@{#394444}

Patch Set 1 #

Total comments: 8

Patch Set 2 : nits #

Total comments: 4

Patch Set 3 : comments addressed #

Patch Set 4 : fix unit_test #

Patch Set 5 : prevent showing playstore icon on non-arc devices #

Total comments: 5

Patch Set 6 : comments #

Total comments: 2

Patch Set 7 : rebase only #

Patch Set 8 : update browser test (adding required switch_) #

Total comments: 2

Patch Set 9 : rebase + policy_browsertest.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -40 lines) Patch
M chrome/browser/chromeos/arc/arc_auth_service.h View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service.cc View 1 2 3 4 5 6 7 chunks +52 lines, -26 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service_browsertest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service_unittest.cc View 1 2 3 4 5 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_support_host.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_support_host.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_utils.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_utils.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_launcher_prefs.cc View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h View 1 2 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc View 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.cc View 1 chunk +6 lines, -2 lines 0 comments Download
A chrome/browser/ui/ash/launcher/arc_playstore_shortcut_launcher_item_controller.h View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/browser/ui/ash/launcher/arc_playstore_shortcut_launcher_item_controller.cc View 1 2 3 1 chunk +35 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 2 3 4 5 7 chunks +11 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_controller_helper.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (12 generated)
khmel
Hi Stefan and Xiyuan, PTAL
4 years, 7 months ago (2016-05-11 18:11:37 UTC) #2
xiyuan
lgtm https://codereview.chromium.org/1973603002/diff/1/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h File chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h (right): https://codereview.chromium.org/1973603002/diff/1/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h#newcode36 chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h:36: ChromeLauncherController* controller() { return chrome_launcher_controller_; } nit: move ...
4 years, 7 months ago (2016-05-11 22:10:08 UTC) #3
khmel
Thanks Xiyuan for review. Nits were addressed. Adding oshima@ to review (min c/b/ui/ash/chrome_launcher_prefs.cc) PTAL https://codereview.chromium.org/1973603002/diff/1/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h ...
4 years, 7 months ago (2016-05-12 18:28:06 UTC) #5
khmel
Thanks Xiyuan for review. Nits were addressed. Adding oshima@ to review (min c/b/ui/ash/chrome_launcher_prefs.cc) PTAL
4 years, 7 months ago (2016-05-12 18:28:09 UTC) #6
Mr4D (OOO till 08-26)
lgtm
4 years, 7 months ago (2016-05-12 19:51:03 UTC) #7
oshima
https://codereview.chromium.org/1973603002/diff/20001/chrome/browser/ui/app_list/arc/arc_app_utils.h File chrome/browser/ui/app_list/arc/arc_app_utils.h (right): https://codereview.chromium.org/1973603002/diff/20001/chrome/browser/ui/app_list/arc/arc_app_utils.h#newcode19 chrome/browser/ui/app_list/arc/arc_app_utils.h:19: static const char kPlayStoreAppId[] = "gpkmicpkkebkmabiaedjognfppcchdfa"; Please move the ...
4 years, 7 months ago (2016-05-12 22:12:01 UTC) #8
khmel
Thanks for your review. I've addressed your comments and applied minor fix to make unit_tests ...
4 years, 7 months ago (2016-05-12 22:40:27 UTC) #9
khmel
Hi, After fixing problem with unit tests I realized that this icon can be easy ...
4 years, 7 months ago (2016-05-12 23:56:23 UTC) #10
xiyuan
https://codereview.chromium.org/1973603002/diff/80001/chrome/browser/ui/ash/chrome_launcher_prefs.h File chrome/browser/ui/ash/chrome_launcher_prefs.h (right): https://codereview.chromium.org/1973603002/diff/80001/chrome/browser/ui/ash/chrome_launcher_prefs.h#newcode67 chrome/browser/ui/ash/chrome_launcher_prefs.h:67: LauncherControllerHelper* helper); nit: Can we make ArcAuthService::IsAllowedForProfile take a ...
4 years, 7 months ago (2016-05-13 15:16:34 UTC) #11
khmel
PTAL https://codereview.chromium.org/1973603002/diff/80001/chrome/browser/ui/ash/chrome_launcher_prefs.h File chrome/browser/ui/ash/chrome_launcher_prefs.h (right): https://codereview.chromium.org/1973603002/diff/80001/chrome/browser/ui/ash/chrome_launcher_prefs.h#newcode67 chrome/browser/ui/ash/chrome_launcher_prefs.h:67: LauncherControllerHelper* helper); On 2016/05/13 15:16:34, xiyuan wrote: > ...
4 years, 7 months ago (2016-05-13 16:01:49 UTC) #12
xiyuan
SLGTM https://codereview.chromium.org/1973603002/diff/80001/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc (right): https://codereview.chromium.org/1973603002/diff/80001/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc#newcode810 chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc:810: AppListControllerDelegate::NO_PIN) { On 2016/05/13 16:01:49, khmel wrote: > ...
4 years, 7 months ago (2016-05-13 16:10:07 UTC) #13
oshima
https://codereview.chromium.org/1973603002/diff/100001/chrome/browser/ui/app_list/arc/arc_app_utils.h File chrome/browser/ui/app_list/arc/arc_app_utils.h (right): https://codereview.chromium.org/1973603002/diff/100001/chrome/browser/ui/app_list/arc/arc_app_utils.h#newcode19 chrome/browser/ui/app_list/arc/arc_app_utils.h:19: extern const char kPlayStoreAppId[]; do you need extern? This ...
4 years, 7 months ago (2016-05-13 16:53:27 UTC) #14
oshima
lgtm https://codereview.chromium.org/1973603002/diff/100001/chrome/browser/ui/app_list/arc/arc_app_utils.h File chrome/browser/ui/app_list/arc/arc_app_utils.h (right): https://codereview.chromium.org/1973603002/diff/100001/chrome/browser/ui/app_list/arc/arc_app_utils.h#newcode19 chrome/browser/ui/app_list/arc/arc_app_utils.h:19: extern const char kPlayStoreAppId[]; On 2016/05/13 16:53:27, oshima ...
4 years, 7 months ago (2016-05-13 16:54:39 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1973603002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1973603002/100001
4 years, 7 months ago (2016-05-13 16:56:26 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/5181) mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 7 months ago (2016-05-13 16:59:08 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1973603002/110001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1973603002/110001
4 years, 7 months ago (2016-05-13 17:37:04 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/212100)
4 years, 7 months ago (2016-05-13 18:45:45 UTC) #25
khmel
Hi Julian and Bartosz, Could one of you review minor change in chrome/browser/policy/policy_browsertest.cc? Thanks, PTAL
4 years, 7 months ago (2016-05-13 19:37:55 UTC) #27
khmel
On 2016/05/13 19:37:55, khmel wrote: > Hi Julian and Bartosz, > > Could one of ...
4 years, 7 months ago (2016-05-17 15:38:48 UTC) #28
pastarmovj
https://codereview.chromium.org/1973603002/diff/130001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): https://codereview.chromium.org/1973603002/diff/130001/chrome/browser/policy/policy_browsertest.cc#newcode676 chrome/browser/policy/policy_browsertest.cc:676: command_line->AppendSwitch(chromeos::switches::kEnableArc); please document the behavior and the reason why ...
4 years, 7 months ago (2016-05-17 22:13:05 UTC) #29
khmel
Thanks Julian for comments, PTAL https://codereview.chromium.org/1973603002/diff/130001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): https://codereview.chromium.org/1973603002/diff/130001/chrome/browser/policy/policy_browsertest.cc#newcode676 chrome/browser/policy/policy_browsertest.cc:676: command_line->AppendSwitch(chromeos::switches::kEnableArc); On 2016/05/17 22:13:05, ...
4 years, 7 months ago (2016-05-17 22:48:35 UTC) #30
pastarmovj
lgtm
4 years, 7 months ago (2016-05-18 07:31:53 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1973603002/150001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1973603002/150001
4 years, 7 months ago (2016-05-18 15:21:24 UTC) #34
commit-bot: I haz the power
Committed patchset #9 (id:150001)
4 years, 7 months ago (2016-05-18 16:55:47 UTC) #35
commit-bot: I haz the power
4 years, 7 months ago (2016-05-18 16:57:23 UTC) #37
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/18cc6b017a26f267792161bdb150eea81f2fecb4
Cr-Commit-Position: refs/heads/master@{#394444}

Powered by Google App Engine
This is Rietveld 408576698