Remove unnecessary includes header files and
add missing dependencies to the proper targets.
Additionally, this PR copies TranslateManagerTest from
upstream code to TranslateManagerUnittest in order to
avoid touching the upstream code. Then, this PR renames
the file to brave_translate_manager_unittest.cc.
Resolvesbrave/brave-browser#10613.
Chromium change:
https://chromium.googlesource.com/chromium/src/+/b06b34efeb4d6648d9b014c7cf8bf5e73284b69c
commit b06b34efeb4d6648d9b014c7cf8bf5e73284b69c
Author: Ramin Halavati <rhalavati@chromium.org>
Date: Thu Sep 3 12:01:34 2020 +0000
Remove defaults from Profile::[Get/Has]OffTheRecordProfile().
The default values for OffTheRecord profile functions are removed and
all remaining use cases are replaced with [Get/Has]PrimaryOTRProfile.
The cases that need further update later are marked with TODO.
This CL does NOT change any behavior.
Bug: 1033903
It used to rely on gfx::ImageSkia, but that has changed upstream.
Also, remove the instances of AddSubMenuWith[StringIdAnd]Icon() that
relied on gfx::VectorIcon, no longer used upstream either.
Chromium change:
https://chromium.googlesource.com/chromium/src/+/347b70900793a9a2361b717053be1ba223b15a98
commit 8c5491040715619cf8aa97671d0a44f9f4fdd0c5
Author: Richard Knoll <knollr@chromium.org>
Date: Tue Aug 25 17:24:07 2020 +0000
Fix icon size for Sharing context menu entries
Before crrev.com/c/2232978 the icon size was hardcoded in MenuItemView,
but that CL changed it to respect the incoming vector icon size. We
can't modify the vector source so we need to set a size when using it.
This also cleans up the duplicated *WithIcon methods and unifies them to
a single one taking a ui::ImageModel instead.
Bug: 1109643
Change-Id: Ib78f683ffee672668c79397122a0e3f5725f58f4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2369181
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Richard Knoll <knollr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#801441}
Chromium change:
https://chromium.googlesource.com/chromium/src/+/8c4446dcf4ef6d9d58bb7f578f2946eb1638ddb8
commit 8c4446dcf4ef6d9d58bb7f578f2946eb1638ddb8
Author: Lukasz Anforowicz <lukasza@chromium.org>
Date: Wed Mar 11 22:16:42 2020 +0000
Splitting context_menu_params.h into separate browser VS common parts.
This CL takes //content/public/common/context_menu_params.h and splits
it into:
1. //content/public/common/*untrustworthy*_context_menu_params.h
which contains:
- UntrustworthyContextMenuParams
- CustomContextMenuContext (type of a field under
UntrustworthyContextMenuParams)
2. //content/public/*browser*/context_menu_params.h
which contains:
- ContextMenuParams
Bug: 534561
Chromium change:
https://chromium.googlesource.com/chromium/src/+/0d23b8d4b1e67392c80f8add8da47d14a22cac0c
commit 0d23b8d4b1e67392c80f8add8da47d14a22cac0c
Author: Evan Stade <estade@chromium.org>
Date: Wed Aug 14 17:13:41 2019 +0000
Add the ability to use a VectorIcon in MenuModel.
The color and size of the vector icon is controlled by the view, and is
not a property of the model.
This CL adds plumbing to RenderViewContextMenuModel, ui::MenuModel, and
views::MenuItemView, and updates the click-to-call context menu to use
the new abilities. The click-to-call menu icon is downsized from 20 to
16, which matches other context menu icons.
Just enough of the APIs are updated for purposes of the click to call
menu. More can be added as needed for other menus and icons.
Bug: 989353
one in BraveRenderViewContextMenu that does not add Ask Brave menu item.
Fixesbrave/brave-browser#1623
Also, overrides SpellingMenuObserver to remove a possible dangling menu
separator. Adds browser tests for spelling menu and spelling options
submenu that check that the "Ask Brave for suggestions" menu item is not
present.