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

Issue 11418114: Add policy for ash launcher auto-hide behavior (Closed)

Created:
8 years, 1 month ago by bartfab (slow)
Modified:
8 years ago
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Add policy for ash launcher auto-hide behavior This CL adds a policy that controls the ash launcher auto-hide behavior. It also modifies the way that the launcher context menu reads and toggles the current auto-hide behavior, ensuring that all changes go through the kShelfAutoHideBehaviorLocal pref that the policy can override. BUG=152929 TBR=davemoore@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170947

Patch Set 1 #

Total comments: 13

Patch Set 2 : Comments addressed. #

Total comments: 4

Patch Set 3 : Comments addressed- Rebased. #

Total comments: 5

Patch Set 4 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+272 lines, -149 lines) Patch
M ash/root_window_controller.h View 1 chunk +0 lines, -4 lines 0 comments Download
M ash/root_window_controller.cc View 1 2 1 chunk +0 lines, -11 lines 0 comments Download
M ash/shell.h View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M ash/shell.cc View 1 2 3 1 chunk +0 lines, -11 lines 0 comments Download
M ash/shell/context_menu.cc View 2 chunks +8 lines, -3 lines 0 comments Download
M ash/shell_unittest.cc View 1 2 chunks +18 lines, -19 lines 0 comments Download
M ash/wm/shelf_layout_manager.h View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/app/policy/policy_templates.json View 1 2 chunks +41 lines, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_handler_list.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.h View 1 2 1 chunk +12 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.h View 1 2 3 2 chunks +17 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.cc View 1 2 3 5 chunks +71 lines, -41 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.h View 1 2 3 2 chunks +17 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.cc View 1 2 3 5 chunks +72 lines, -41 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu.cc View 3 chunks +5 lines, -6 lines 0 comments Download
M chrome/test/data/policy/policy_test_cases.json View 1 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
bartfab (slow)
Hi Mitsuru, Could you review these changes? As discussed offline, I am adding a policy ...
8 years, 1 month ago (2012-11-21 14:01:48 UTC) #1
oshima
https://codereview.chromium.org/11418114/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc (right): https://codereview.chromium.org/11418114/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc#newcode570 chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc:570: prefs::kShelfAutoHideBehavior)); There will be multiple launchers per displays, and ...
8 years, 1 month ago (2012-11-21 18:09:43 UTC) #2
bartfab (slow)
https://codereview.chromium.org/11418114/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc (right): https://codereview.chromium.org/11418114/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc#newcode570 chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc:570: prefs::kShelfAutoHideBehavior)); I know that support for multiple launchers is ...
8 years, 1 month ago (2012-11-21 22:17:42 UTC) #3
oshima
https://codereview.chromium.org/11418114/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc (right): https://codereview.chromium.org/11418114/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc#newcode570 chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc:570: prefs::kShelfAutoHideBehavior)); On 2012/11/21 22:17:42, bartfab wrote: > I know ...
8 years ago (2012-11-26 18:57:33 UTC) #4
oshima
https://codereview.chromium.org/11418114/diff/1/ash/shell.cc File ash/shell.cc (left): https://codereview.chromium.org/11418114/diff/1/ash/shell.cc#oldcode698 ash/shell.cc:698: } Given that this is used in two places, ...
8 years ago (2012-11-26 19:13:00 UTC) #5
bartfab (slow)
https://chromiumcodereview.appspot.com/11418114/diff/1/ash/shell.cc File ash/shell.cc (left): https://chromiumcodereview.appspot.com/11418114/diff/1/ash/shell.cc#oldcode698 ash/shell.cc:698: } On 2012/11/26 19:13:00, oshima wrote: > Given that ...
8 years ago (2012-11-29 18:25:51 UTC) #6
oshima
https://chromiumcodereview.appspot.com/11418114/diff/1/ash/shell.cc File ash/shell.cc (left): https://chromiumcodereview.appspot.com/11418114/diff/1/ash/shell.cc#oldcode698 ash/shell.cc:698: } On 2012/11/29 18:25:51, bartfab wrote: > On 2012/11/26 ...
8 years ago (2012-11-29 18:43:35 UTC) #7
bartfab (slow)
https://chromiumcodereview.appspot.com/11418114/diff/1/ash/shell.cc File ash/shell.cc (left): https://chromiumcodereview.appspot.com/11418114/diff/1/ash/shell.cc#oldcode698 ash/shell.cc:698: } On 2012/11/29 18:43:35, oshima wrote: > On 2012/11/29 ...
8 years ago (2012-11-29 19:01:10 UTC) #8
oshima
LGTM On 2012/11/29 19:01:10, bartfab wrote: > https://chromiumcodereview.appspot.com/11418114/diff/1/ash/shell.cc > File ash/shell.cc (left): > > https://chromiumcodereview.appspot.com/11418114/diff/1/ash/shell.cc#oldcode698 ...
8 years ago (2012-11-29 19:06:19 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/11418114/7001
8 years ago (2012-11-29 19:17:48 UTC) #10
commit-bot: I haz the power
Presubmit check for 11418114-7001 failed and returned exit status 1. Running presubmit commit checks ...
8 years ago (2012-11-29 19:17:57 UTC) #11
bartfab (slow)
Hi Scott, Dave, Mattias, Review ping.
8 years ago (2012-11-29 19:19:06 UTC) #12
sky
Can you wait for Harry to finish off his patch ( https://codereview.chromium.org/11377062/ ). He's changing ...
8 years ago (2012-11-29 20:32:48 UTC) #13
bartfab (slow)
On 2012/11/29 20:32:48, sky wrote: > Can you wait for Harry to finish off his ...
8 years ago (2012-11-29 22:34:31 UTC) #14
Harry McCleave
On 2012/11/29 22:34:31, bartfab wrote: > On 2012/11/29 20:32:48, sky wrote: > > Can you ...
8 years ago (2012-11-29 22:59:57 UTC) #15
bartfab (slow)
On 2012/11/29 22:59:57, Harry McCleave wrote: > On 2012/11/29 22:34:31, bartfab wrote: > > On ...
8 years ago (2012-11-29 23:10:06 UTC) #16
sky
https://codereview.chromium.org/11418114/diff/7001/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc (right): https://codereview.chromium.org/11418114/diff/7001/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc#newcode134 chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc:134: if (!pref_service->FindPreference(local_path)->HasUserSetting() && I'm not familiar with HasUserSetting. How ...
8 years ago (2012-11-29 23:46:06 UTC) #17
bartfab (slow)
https://chromiumcodereview.appspot.com/11418114/diff/7001/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc (right): https://chromiumcodereview.appspot.com/11418114/diff/7001/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc#newcode134 chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc:134: if (!pref_service->FindPreference(local_path)->HasUserSetting() && On 2012/11/29 23:46:06, sky wrote: > ...
8 years ago (2012-11-30 11:55:47 UTC) #18
Mattias Nissler (ping if slow)
https://chromiumcodereview.appspot.com/11418114/diff/6003/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): https://chromiumcodereview.appspot.com/11418114/diff/6003/chrome/app/policy/policy_templates.json#newcode3325 chrome/app/policy/policy_templates.json:3325: 'type': 'string-enum', Is there a good reason not to ...
8 years ago (2012-11-30 12:07:15 UTC) #19
bartfab (slow)
https://chromiumcodereview.appspot.com/11418114/diff/6003/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): https://chromiumcodereview.appspot.com/11418114/diff/6003/chrome/app/policy/policy_templates.json#newcode3325 chrome/app/policy/policy_templates.json:3325: 'type': 'string-enum', On 2012/11/30 12:07:15, Mattias Nissler wrote: > ...
8 years ago (2012-11-30 12:13:47 UTC) #20
Mattias Nissler (ping if slow)
https://chromiumcodereview.appspot.com/11418114/diff/6003/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): https://chromiumcodereview.appspot.com/11418114/diff/6003/chrome/app/policy/policy_templates.json#newcode3325 chrome/app/policy/policy_templates.json:3325: 'type': 'string-enum', On 2012/11/30 12:13:47, bartfab wrote: > On ...
8 years ago (2012-11-30 12:17:39 UTC) #21
bartfab (slow)
On 2012/11/30 12:17:39, Mattias Nissler wrote: > https://chromiumcodereview.appspot.com/11418114/diff/6003/chrome/app/policy/policy_templates.json > File chrome/app/policy/policy_templates.json (right): > > https://chromiumcodereview.appspot.com/11418114/diff/6003/chrome/app/policy/policy_templates.json#newcode3325 ...
8 years ago (2012-11-30 12:22:38 UTC) #22
sky
https://chromiumcodereview.appspot.com/11418114/diff/6003/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): https://chromiumcodereview.appspot.com/11418114/diff/6003/chrome/app/policy/policy_templates.json#newcode3325 chrome/app/policy/policy_templates.json:3325: 'type': 'string-enum', On 2012/11/30 12:17:40, Mattias Nissler wrote: > ...
8 years ago (2012-11-30 17:37:37 UTC) #23
Mattias Nissler (ping if slow)
LGTM https://chromiumcodereview.appspot.com/11418114/diff/6003/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): https://chromiumcodereview.appspot.com/11418114/diff/6003/chrome/app/policy/policy_templates.json#newcode3325 chrome/app/policy/policy_templates.json:3325: 'type': 'string-enum', On 2012/11/30 17:37:37, sky wrote: > ...
8 years ago (2012-11-30 17:39:04 UTC) #24
bartfab (slow)
Hi Dave, Scott, Review ping :).
8 years ago (2012-12-03 09:26:40 UTC) #25
sky
LGTM
8 years ago (2012-12-03 16:02:58 UTC) #26
bartfab (slow)
Hi Dave, Review ping.
8 years ago (2012-12-04 10:00:55 UTC) #27
bartfab (slow)
Since I have been unable to reach Dave in almost two weeks and the CL ...
8 years ago (2012-12-04 11:03:07 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/11418114/14003
8 years ago (2012-12-04 11:04:17 UTC) #29
commit-bot: I haz the power
8 years ago (2012-12-04 13:00:37 UTC) #30
Message was sent while issue was closed.
Change committed as 170947

Powered by Google App Engine
This is Rietveld 408576698