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

Issue 899173002: Replace Webstore link with app info dialog link in chrome://apps (Closed)

Created:
5 years, 10 months ago by tsergeant
Modified:
5 years, 10 months ago
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, extensions-reviews_chromium.org, tfarina, arv+watch_chromium.org, chromium-apps-reviews_chromium.org, estade+watch_chromium.org, pedrosimonetti+watch_chromium.org, chrome-apps-syd-reviews_chromium.org, benwells
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace Webstore link with app info dialog link in chrome://apps This brings the context menu options closer to what is in the App Launcher, and hides the webstore link in cases where it shouldn't be shown to the user. This change is ignored on Mac. BUG=449095 Committed: https://crrev.com/0094cacbe5113923a2442b7a4aa34779850d14ef Cr-Commit-Position: refs/heads/master@{#318163}

Patch Set 1 #

Total comments: 20

Patch Set 2 : Address review comments #

Patch Set 3 : Reformat #

Total comments: 4

Patch Set 4 : UMA, nits, consolidate CanShowAppInfoDialog #

Patch Set 5 : Fix error #

Total comments: 8

Patch Set 6 : Review comments #

Total comments: 1

Patch Set 7 : Implement mac AppInfoDialog methods #

Total comments: 4

Patch Set 8 : Review comments #

Total comments: 6

Patch Set 9 : Review comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -34 lines) Patch
M chrome/browser/resources/ntp4/apps_page.js View 1 2 3 4 5 3 chunks +16 lines, -4 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_controller_delegate.cc View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/apps/app_info_dialog.h View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/app_info_dialog_cocoa.mm View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc View 1 2 3 4 5 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_settings_handler.cc View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -19 lines 0 comments Download
M chrome/browser/ui/webui/ntp/app_launcher_handler.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/app_launcher_handler.cc View 1 2 3 4 5 6 7 8 3 chunks +23 lines, -0 lines 1 comment Download
M chrome/browser/ui/webui/ntp/ntp_resource_cache.cc View 1 2 3 3 chunks +6 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download
M ui/app_list/app_list_switches.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M ui/app_list/app_list_switches.cc View 1 2 3 1 chunk +0 lines, -7 lines 0 comments Download

Messages

Total messages: 34 (6 generated)
tsergeant
Sashab, can you take a look at this when you get a chance? (no rush) ...
5 years, 10 months ago (2015-02-05 05:33:27 UTC) #2
sashab
Nice first patch. Some general feedback, although overall its looking awesome. https://codereview.chromium.org/899173002/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): ...
5 years, 10 months ago (2015-02-06 16:23:00 UTC) #3
tsergeant
Addressed all comments apart from the ShouldShowAppInfoDialog one, since I'm not sure where is best ...
5 years, 10 months ago (2015-02-09 03:10:49 UTC) #4
sashab
Hmm.. Tricky. Nice work though. See comments. :) https://codereview.chromium.org/899173002/diff/1/chrome/browser/resources/ntp4/apps_page.js File chrome/browser/resources/ntp4/apps_page.js (right): https://codereview.chromium.org/899173002/diff/1/chrome/browser/resources/ntp4/apps_page.js#newcode157 chrome/browser/resources/ntp4/apps_page.js:157: this.details_.disabled ...
5 years, 10 months ago (2015-02-09 11:47:08 UTC) #5
tsergeant
Updated to address comments and consolidate down all of the CanShowAppInfoDialog logic into one method. ...
5 years, 10 months ago (2015-02-12 06:34:49 UTC) #6
tapted
On 2015/02/12 06:34:49, tsergeant wrote: > cc tapted: Is it safe to use IsMacViewsAppListListEnabled() to ...
5 years, 10 months ago (2015-02-12 22:45:28 UTC) #7
tapted
https://codereview.chromium.org/899173002/diff/80001/chrome/browser/resources/ntp4/apps_page.js File chrome/browser/resources/ntp4/apps_page.js (right): https://codereview.chromium.org/899173002/diff/80001/chrome/browser/resources/ntp4/apps_page.js#newcode72 chrome/browser/resources/ntp4/apps_page.js:72: this.onShowAppInfo_.bind(this)); nit: indent 2 more spaces https://codereview.chromium.org/899173002/diff/80001/chrome/browser/resources/ntp4/apps_page.js#newcode76 chrome/browser/resources/ntp4/apps_page.js:76: this.onShowDetails_.bind(this)); ...
5 years, 10 months ago (2015-02-12 22:45:40 UTC) #9
tsergeant
Thanks, Trent! Updated with changes. https://codereview.chromium.org/899173002/diff/80001/chrome/browser/ui/webui/ntp/app_launcher_handler.cc File chrome/browser/ui/webui/ntp/app_launcher_handler.cc (right): https://codereview.chromium.org/899173002/diff/80001/chrome/browser/ui/webui/ntp/app_launcher_handler.cc#newcode636 chrome/browser/ui/webui/ntp/app_launcher_handler.cc:636: base::Bind(&base::DoNothing)); On 2015/02/12 22:45:39, ...
5 years, 10 months ago (2015-02-12 23:56:27 UTC) #10
tapted
https://codereview.chromium.org/899173002/diff/100001/chrome/browser/ui/apps/app_info_dialog.h File chrome/browser/ui/apps/app_info_dialog.h (right): https://codereview.chromium.org/899173002/diff/100001/chrome/browser/ui/apps/app_info_dialog.h#newcode31 chrome/browser/ui/apps/app_info_dialog.h:31: bool CanShowAppInfoDialog(); ooh. I think you'l need to "implement" ...
5 years, 10 months ago (2015-02-13 08:11:59 UTC) #11
tsergeant
Updated with empty implementation for Mac.
5 years, 10 months ago (2015-02-16 02:46:53 UTC) #12
tapted
you should try out your trybot powers now, if that dependent CL has landed :) ...
5 years, 10 months ago (2015-02-18 05:22:10 UTC) #13
sashab
Looking great!! Just one more tiny thing... https://codereview.chromium.org/899173002/diff/120001/chrome/browser/ui/apps/app_info_dialog.h File chrome/browser/ui/apps/app_info_dialog.h (right): https://codereview.chromium.org/899173002/diff/120001/chrome/browser/ui/apps/app_info_dialog.h#newcode31 chrome/browser/ui/apps/app_info_dialog.h:31: bool CanShowAppInfoDialog(); ...
5 years, 10 months ago (2015-02-18 05:34:35 UTC) #14
tsergeant
Updated! https://codereview.chromium.org/899173002/diff/120001/chrome/browser/ui/apps/app_info_dialog.h File chrome/browser/ui/apps/app_info_dialog.h (right): https://codereview.chromium.org/899173002/diff/120001/chrome/browser/ui/apps/app_info_dialog.h#newcode42 chrome/browser/ui/apps/app_info_dialog.h:42: const base::Closure& close_callback); On 2015/02/18 05:34:34, sasha_b wrote: ...
5 years, 10 months ago (2015-02-18 05:58:38 UTC) #15
sashab
Awesome! lgtm :)
5 years, 10 months ago (2015-02-18 06:02:14 UTC) #16
tapted
lgtm with a question. You'll still need a webui guru and an histograms owner though ...
5 years, 10 months ago (2015-02-18 06:19:08 UTC) #17
tsergeant
On 2015/02/18 06:19:08, tapted wrote: > lgtm with a question. You'll still need a webui ...
5 years, 10 months ago (2015-02-18 06:24:46 UTC) #18
tsergeant
dbeam@chromium.org: Please review changes in webui/ntp.
5 years, 10 months ago (2015-02-18 07:32:31 UTC) #20
tsergeant
ping dbeam!
5 years, 10 months ago (2015-02-25 01:59:23 UTC) #21
Dan Beam
https://codereview.chromium.org/899173002/diff/140001/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc File chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc (right): https://codereview.chromium.org/899173002/diff/140001/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc#newcode34 chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc:34: #if defined(OS_MACOSX) when will this file be compiled on ...
5 years, 10 months ago (2015-02-25 02:30:08 UTC) #22
Dan Beam
also, do you have screenshots of this UI?
5 years, 10 months ago (2015-02-25 02:30:52 UTC) #23
tsergeant
Thanks for the feedback, I've addressed those two comments. https://codereview.chromium.org/899173002/diff/140001/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc File chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc (right): https://codereview.chromium.org/899173002/diff/140001/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc#newcode34 chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc:34: ...
5 years, 10 months ago (2015-02-25 03:18:05 UTC) #24
tsergeant
And I've attached some screenshots to the bug.
5 years, 10 months ago (2015-02-25 03:19:46 UTC) #25
Dan Beam
lgtm https://codereview.chromium.org/899173002/diff/140001/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc File chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc (right): https://codereview.chromium.org/899173002/diff/140001/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc#newcode34 chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc:34: #if defined(OS_MACOSX) On 2015/02/25 03:18:05, tsergeant wrote: > ...
5 years, 10 months ago (2015-02-25 03:41:18 UTC) #26
tsergeant
isherman@chromium.org: Please review changes in tools/metrics/histograms/histograms.xml (The only new UMA call is in chrome/browser/ui/webui/ntp/app_launcher_handler.cc)
5 years, 10 months ago (2015-02-25 03:57:56 UTC) #28
Ilya Sherman
histograms lgtm, with a suggestion: https://codereview.chromium.org/899173002/diff/160001/chrome/browser/ui/webui/ntp/app_launcher_handler.cc File chrome/browser/ui/webui/ntp/app_launcher_handler.cc (right): https://codereview.chromium.org/899173002/diff/160001/chrome/browser/ui/webui/ntp/app_launcher_handler.cc#newcode632 chrome/browser/ui/webui/ntp/app_launcher_handler.cc:632: AppInfoLaunchSource::NUM_LAUNCH_SOURCES); I'd recommend refactoring ...
5 years, 10 months ago (2015-02-25 19:11:52 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/899173002/160001
5 years, 10 months ago (2015-02-25 23:47:22 UTC) #32
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 10 months ago (2015-02-26 00:52:14 UTC) #33
commit-bot: I haz the power
5 years, 10 months ago (2015-02-26 00:53:03 UTC) #34
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/0094cacbe5113923a2442b7a4aa34779850d14ef
Cr-Commit-Position: refs/heads/master@{#318163}

Powered by Google App Engine
This is Rietveld 408576698