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

Issue 11859029: Add a policy to hide the Web Store on new tabs. (Closed)

Created:
7 years, 11 months ago by dconnelly
Modified:
7 years, 10 months ago
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, estade+watch_chromium.org, arv (Not doing code reviews), pedrosimonetti+watch_chromium.org
Visibility:
Public.

Description

Add a policy to hide the Web Store on new tabs. This change adds a new policy and boolean pref named "HideWebStoreIcon". When true, neither the "Web Store" button in the footer of the New Tab page nor the "Chrome Web Store" app icon on the Apps page is visible. This policy can be dynamically refreshed. Contributed by dconnelly@chromium.org BUG=89360 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=184454

Patch Set 1 #

Total comments: 7

Patch Set 2 : Add policy_browsertest #

Patch Set 3 : Check that footer exists before removing icon #

Total comments: 8

Patch Set 4 : Fix browser test on Chromium OS (no apps page) #

Patch Set 5 : Hide, not delete, footer button #

Patch Set 6 : rebase #

Patch Set 7 : Use 'invisible' CSS class name #

Total comments: 6

Patch Set 8 : filter app from c++ #

Total comments: 7

Patch Set 9 : comments #

Total comments: 2

Patch Set 10 : rebase #

Patch Set 11 : update browser_test to check .invisible #

Patch Set 12 : line length :( #

Patch Set 13 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -9 lines) Patch
M chrome/app/policy/policy_templates.json View 1 2 3 4 5 6 7 8 9 2 chunks +19 lines, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_handler_list.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +43 lines, -0 lines 0 comments Download
M chrome/browser/resources/ntp4/new_tab.js View 1 2 3 4 5 6 7 1 chunk +12 lines, -5 lines 0 comments Download
M chrome/browser/ui/browser_ui_prefs.cc View 1 2 3 4 5 6 7 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 3 chunks +14 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_resource_cache.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/data/policy/policy_test_cases.json View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
dconnelly
https://codereview.chromium.org/11859029/diff/1/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): https://codereview.chromium.org/11859029/diff/1/chrome/app/policy/policy_templates.json#newcode3883 chrome/app/policy/policy_templates.json:3883: 'supported_on': ['chrome.*:26-'], Not sure what version to use here
7 years, 11 months ago (2013-01-18 13:11:55 UTC) #1
dconnelly
7 years, 11 months ago (2013-01-18 13:46:52 UTC) #2
Joao da Silva
Looks good! I'd just ask for a policy_browsertest for this :-) Add a new test ...
7 years, 11 months ago (2013-01-18 14:02:50 UTC) #3
dconnelly
https://codereview.chromium.org/11859029/diff/1/chrome/browser/resources/ntp4/new_tab.js File chrome/browser/resources/ntp4/new_tab.js (right): https://codereview.chromium.org/11859029/diff/1/chrome/browser/resources/ntp4/new_tab.js#newcode166 chrome/browser/resources/ntp4/new_tab.js:166: $('chrome-web-store-link').style.display = 'none'; I actually think removing the element ...
7 years, 11 months ago (2013-01-18 17:26:20 UTC) #4
Joao da Silva
lgtm after fixing the remaining nits. Thanks for the test! :-) https://codereview.chromium.org/11859029/diff/1/chrome/browser/resources/ntp4/new_tab.js File chrome/browser/resources/ntp4/new_tab.js (right): ...
7 years, 11 months ago (2013-01-21 07:44:50 UTC) #5
dconnelly
Fixed browser test on Chromium OS where there is no apps page. Per Joao's suggestion, ...
7 years, 11 months ago (2013-01-21 09:39:03 UTC) #6
dconnelly
Ping On 2013/01/21 09:39:03, dconnelly wrote: > Fixed browser test on Chromium OS where there ...
7 years, 11 months ago (2013-01-24 10:03:11 UTC) #7
Evan Stade
like I said in email, I think the NTP itself should be left alone until ...
7 years, 11 months ago (2013-01-24 18:44:31 UTC) #8
dconnelly1
See https://codereview.chromium.org/12038090/ for proposed NTP footer layout solution. On Thu, Jan 24, 2013 at 7:44 ...
7 years, 11 months ago (2013-01-25 15:51:08 UTC) #9
dconnelly
Hi James, This is the other CL. If you're not the right person, could you ...
7 years, 11 months ago (2013-01-25 15:58:33 UTC) #10
James Hawkins
On 2013/01/25 15:58:33, dconnelly wrote: > Hi James, > > This is the other CL. ...
7 years, 11 months ago (2013-01-25 17:11:20 UTC) #11
dconnelly
On 2013/01/24 18:44:31, Evan Stade wrote: > like I said in email, I think the ...
7 years, 10 months ago (2013-02-13 11:49:20 UTC) #12
Evan Stade
https://chromiumcodereview.appspot.com/11859029/diff/30001/chrome/browser/resources/ntp4/apps_page.js File chrome/browser/resources/ntp4/apps_page.js (right): https://chromiumcodereview.appspot.com/11859029/diff/30001/chrome/browser/resources/ntp4/apps_page.js#newcode671 chrome/browser/resources/ntp4/apps_page.js:671: // Don't show the web store icon if policy ...
7 years, 10 months ago (2013-02-13 22:40:08 UTC) #13
Evan Stade
since I'm going to be OOO till Tuesday (again, sorry), Dan Beam can continue this ...
7 years, 10 months ago (2013-02-14 01:58:10 UTC) #14
dconnelly
Cool, thanks Evan. https://chromiumcodereview.appspot.com/11859029/diff/30001/chrome/browser/resources/ntp4/apps_page.js File chrome/browser/resources/ntp4/apps_page.js (right): https://chromiumcodereview.appspot.com/11859029/diff/30001/chrome/browser/resources/ntp4/apps_page.js#newcode671 chrome/browser/resources/ntp4/apps_page.js:671: // Don't show the web store ...
7 years, 10 months ago (2013-02-14 10:26:57 UTC) #15
Dan Beam
https://chromiumcodereview.appspot.com/11859029/diff/39001/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): https://chromiumcodereview.appspot.com/11859029/diff/39001/chrome/app/policy/policy_templates.json#newcode4284 chrome/app/policy/policy_templates.json:4284: 'desc': '''Hide the Chrome Web Store icons from the ...
7 years, 10 months ago (2013-02-14 21:46:43 UTC) #16
dconnelly
https://chromiumcodereview.appspot.com/11859029/diff/39001/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): https://chromiumcodereview.appspot.com/11859029/diff/39001/chrome/app/policy/policy_templates.json#newcode4284 chrome/app/policy/policy_templates.json:4284: 'desc': '''Hide the Chrome Web Store icons from the ...
7 years, 10 months ago (2013-02-15 08:44:45 UTC) #17
Dan Beam
https://chromiumcodereview.appspot.com/11859029/diff/39001/chrome/common/pref_names.cc File chrome/common/pref_names.cc (right): https://chromiumcodereview.appspot.com/11859029/diff/39001/chrome/common/pref_names.cc#newcode1685 chrome/common/pref_names.cc:1685: On 2013/02/15 08:44:45, dconnelly wrote: > On 2013/02/14 21:46:43, ...
7 years, 10 months ago (2013-02-15 23:50:27 UTC) #18
dconnelly
https://chromiumcodereview.appspot.com/11859029/diff/41012/chrome/browser/ui/webui/ntp/app_launcher_handler.cc File chrome/browser/ui/webui/ntp/app_launcher_handler.cc (right): https://chromiumcodereview.appspot.com/11859029/diff/41012/chrome/browser/ui/webui/ntp/app_launcher_handler.cc#newcode357 chrome/browser/ui/webui/ntp/app_launcher_handler.cc:357: if (extension && ShouldDisplayInNewTabPage(extension, prefs)) { On 2013/02/15 23:50:27, ...
7 years, 10 months ago (2013-02-18 09:35:54 UTC) #19
Dan Beam
If there's another valid use of that code (and it's not dead code now), then ...
7 years, 10 months ago (2013-02-19 17:52:14 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dconnelly@chromium.org/11859029/63001
7 years, 10 months ago (2013-02-21 14:45:15 UTC) #21
commit-bot: I haz the power
Presubmit check for 11859029-63001 failed and returned exit status 1. INFO:root:Found 11 file(s). Running presubmit ...
7 years, 10 months ago (2013-02-21 14:45:22 UTC) #22
dconnelly1
Whoops. Evan, are you back in the office? Dan gave me a review and lgtm ...
7 years, 10 months ago (2013-02-21 15:25:50 UTC) #23
Dan Beam
you need someone in chrome/browser/ui/OWNERS (ben@, pkasting@, or sky@)
7 years, 10 months ago (2013-02-21 20:55:04 UTC) #24
dconnelly
Hi Ben, I need a chrome/browser/ui OWNER to review this CL. If you have a ...
7 years, 10 months ago (2013-02-25 09:09:12 UTC) #25
Ben Goodger (Google)
owner lgtm provided someone more familiar with this area has given it a review.
7 years, 10 months ago (2013-02-25 16:03:38 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dconnelly@chromium.org/11859029/74002
7 years, 10 months ago (2013-02-25 16:52:30 UTC) #27
commit-bot: I haz the power
7 years, 10 months ago (2013-02-25 19:09:23 UTC) #28
Message was sent while issue was closed.
Change committed as 184454

Powered by Google App Engine
This is Rietveld 408576698