|
Fixed behavior of the bookmark bar visibility.
- Removed the kEnableBookmarkBar preference. This was only used from the policy
code, and duplicated what the kShowBookmarkBar preference already does.
Removed custom policy code that handle this.
- Fixed the pref UI for the kShowBookmarkBar preference, which wasn't working
when set to true by the associated policy. Removed custom UI code for this.
- Fire NOTIFICATION_BOOKMARK_BAR_VISIBILITY_CHANGED from a single place, and
every time that the preference changes.
- Made ChromeWebUI::force_bookmark_bar_visible a virtual method instead, so that
subclasses can recompute the state dynamically. The previous implementation
wouldn't react to pref changes on existing NTPs.
Current behavior of the bookmark bar:
- If kShowBookmarkBar is true, it is shown as part of the tab;
- If kShowBookmarkBar is false, it is shown inline IF the policy is not set, AND
- using the old NTP, OR
- using the new NTP without bookmark features.
The policy forces the bar to be always visible in all tabs, or to never appear
at all.
BUG= 98918
TEST=The BookmarkBarEnabled policy does what it's supposed to do in the old NTP, new NTP, and new NTP with bookmarks. The show-bookmark-bar shortcut also does the right thing in all versions.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=104827
Total comments: 4
Total comments: 6
Total comments: 2
Total comments: 2
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+126 lines, -203 lines) |
Patch |
 |
M |
chrome/app/policy/policy_templates.json
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/bookmarks/bookmark_context_menu_controller.h
|
View
|
|
2 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/bookmarks/bookmark_context_menu_controller.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/bookmarks/bookmark_model.h
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/bookmarks/bookmark_utils.cc
|
View
|
|
2 chunks |
+0 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/importer/profile_writer.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/importer/profile_writer.cc
|
View
|
|
2 chunks |
+2 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/configuration_policy_pref_store.cc
|
View
|
|
4 chunks |
+2 lines, -20 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/configuration_policy_pref_store_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/pref_model_associator.h
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/pref_model_associator.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+0 lines, -16 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/options/browser_options.js
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/bookmarks/bookmark_tab_helper.cc
|
View
|
1
2
|
2 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/browser.cc
|
View
|
1
2
3
4
5
6
|
8 chunks |
+7 lines, -18 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/browser_window_cocoa.h
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/browser_window_cocoa.mm
|
View
|
1
2
3
4
|
3 chunks |
+9 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/browser_window_cocoa_unittest.mm
|
View
|
1
2
|
2 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/gtk/global_menu_bar.h
|
View
|
1
2
|
2 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/gtk/global_menu_bar.cc
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+12 lines, -21 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/bookmarks/bookmark_context_menu_controller_views.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/bookmarks/bookmark_context_menu_controller_views.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/chrome_web_ui.h
|
View
|
1
2
|
2 chunks |
+3 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/chrome_web_ui.cc
|
View
|
1
2
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/ntp/new_tab_ui.h
|
View
|
1
2
|
3 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/ntp/new_tab_ui.cc
|
View
|
1
2
3
4
|
5 chunks |
+24 lines, -21 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/ntp/ntp_resource_cache.h
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/options/browser_options_handler.h
|
View
|
1
2
3
4
5
|
3 chunks |
+12 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/options/browser_options_handler.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+0 lines, -13 lines |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_notification_types.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/common/pref_names.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/common/pref_names.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
Total messages: 18 (0 generated)
|