Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Removing clear cache and clear site data options from the history menu #5251

Merged
merged 1 commit into from
Oct 30, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions app/browser/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,21 +322,11 @@ const createHistorySubmenu = () => {
CommonMenu.separatorMenuItem,
*/
{
label: locale.translation('clearHistory'),
label: locale.translation('clearBrowsingData'),
accelerator: 'Shift+CmdOrCtrl+Delete',
click: function (item, focusedWindow) {
CommonMenu.sendToFocusedWindow(focusedWindow, [messages.SHORTCUT_OPEN_CLEAR_BROWSING_DATA_PANEL, {browserHistory: true}])
}
}, {
label: locale.translation('clearCache'),
click: function (item, focusedWindow) {
CommonMenu.sendToFocusedWindow(focusedWindow, [messages.SHORTCUT_OPEN_CLEAR_BROWSING_DATA_PANEL, {cachedImagesAndFiles: true}])
}
}, {
label: locale.translation('clearSiteData'),
click: function (item, focusedWindow) {
CommonMenu.sendToFocusedWindow(focusedWindow, [messages.SHORTCUT_OPEN_CLEAR_BROWSING_DATA_PANEL, {allSiteCookies: true, cachedImagesAndFiles: true}])
}
}
]
submenu = submenu.concat(menuUtil.createRecentlyClosedMenuItems(Immutable.fromJS(Object.keys(closedFrames).map(key => closedFrames[key]))))
Expand Down
1 change: 1 addition & 0 deletions app/extensions/brave/locales/en-US/menu.properties
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ back=Back
forward=Forward
reopenLastClosedWindow=Reopen Last Closed Window
showAllHistory=Show History
clearBrowsingData=Clear Browsing Data…
clearHistory=Clear History…
clearCache=Clear Cache…
clearSiteData=Clear All Cookies and Site Data…
Expand Down
1 change: 1 addition & 0 deletions app/locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ var rendererIdentifiers = function () {
'clearCache',
'clearHistory',
'clearSiteData',
'clearBrowsingData',
'recentlyClosed',
'recentlyVisited',
'bookmarks',
Expand Down