Commit Graph
19 Commits
Author SHA1 Message Date
Gyuyoung Kim b0ebf11e7a Fix deps in //brave/tests
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.

Resolves brave/brave-browser#10613.
2020-10-29 19:23:40 +09:00
Mario Sanchez Prada f07cca22fd Replace param-less GetOffTheRecordProfile() with GetPrimaryOTRProfile()
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
2020-10-28 14:00:05 -04:00
mkarolin d464dc67d4 Lint fix. 2020-09-11 14:45:34 -04:00
Mario Sanchez Prada 17dac626c2 Adapt BraveMockRenderViewContextMenu to use ui::ImageModel
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}
2020-09-11 14:45:34 -04:00
Pranjal Jumde a39b63087a Add missing deps 2020-07-20 09:58:02 -07:00
Pranjal Jumde 9c2501854e Fix 9365: Add gn check to npm scripts 2020-07-20 09:58:02 -07:00
mkarolin 35e73f73f7 [Browser Tests] IWYU browser_test.h.
Chromium change:

https://chromium.googlesource.com/chromium/src/+/919ce657e4e37dfa13758f1eb8fe0e9ef7ab1b20

commit 919ce657e4e37dfa13758f1eb8fe0e9ef7ab1b20
Author: Peter Kasting <pkasting@chromium.org>
Date:   Thu May 7 10:22:36 2020 +0000

    Add missing #includes of browser_test.h.

    This is a step towards doing full IWYU of browser_test.h, which will
    have other benefits.

    Completely mechanical and already R+ed as part of r765923.

    Bug: none
2020-07-01 18:12:03 -04:00
mkarolin daff413b41 Lint fixes 2020-05-26 10:02:29 -04:00
mkarolin 18e2373d55 [Browser Tests] ContextMenuParams moved.
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
2020-05-26 09:52:30 -04:00
mkarolin 423edc1235 Updated mock RenderViewContextMenu with missing API methods.
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
2019-10-10 02:53:24 -04:00
Max Karolinskiy 2c6f5da57e Browser Test: added missing overrides to BraveMockRenderViewContextMenu.
Chromium change:

https://chromium.googlesource.com/chromium/src/+/d6b794c59f423ead8b1f2633c7fd879710aa1382

commit d6b794c59f423ead8b1f2633c7fd879710aa1382
Author: Himanshu Jaju <himanshujaju@chromium.org>
Date:   Tue Jul 16 19:31:46 2019 +0000

    Context menu for click to call
    Add tel scheme to list of schemes in url

    Screenshot for multiple devices: https://storage.cloud.google.com/chromium-translation-screenshots/d3ea7c88529dd93e5f403fa57d5df3bfadf8936a

    Screenshot for single device: https://storage.cloud.google.com/chromium-translation-screenshots/bc5be9872a3e0a2c30bbb9a80ac370cafa339988

    Bug: 972060
2019-09-05 21:22:24 -04:00
bridiver e3917f6315 add support for building android-apk
required for https://github.com/brave/brave-browser/issues/2117
2019-05-08 12:35:11 -07:00
Max Karolinskiy 8114d82b30 Revert "Merge pull request #2088 from brave/revert-c74-with-deps"
Reland C74 on master.

This reverts commit f6cfa13c73, reversing
changes made to 6143676339.
2019-04-01 17:46:01 -04:00
Brian Clifton 66e6c951d4 Revert Chromium 74
(originally implemented with https://github.com/brave/brave-core/pull/2013)

Fixes https://github.com/brave/brave-browser/issues/3898
2019-03-26 18:35:47 -07:00
Max Karolinskiy 39945c8e5e Lint fixes. 2019-03-19 16:10:05 -04:00
Max Karolinskiy bbb090aa74 Browser tests fix: kAcceptLanguages pref moved to a different header.
Chromium change:

commit 572755bab76f7d4aa697fffebbdcb03ac92a44cd
Author: Alexandre Frechette <frechette@chromium.org>
Date:   Wed Feb 13 22:30:20 2019 +0000

    Moving the core language prefs (kAcceptLanguages and kPreferredLanguages) to components/language.

    Bug: 902354, 872096
2019-03-19 16:10:02 -04:00
Brian R. Bondy 1c7c198857 Lint fix 2019-02-12 00:41:31 -05:00
Brian R. Bondy 7252734a68 C73 changes for brave_browser_tests 2019-02-11 21:28:40 -05:00
Max Karolinskiy c82efbcebb Hide RenderViewContextMenu::AddSpellCheckServiceItem method with
one in BraveRenderViewContextMenu that does not add Ask Brave menu item.

Fixes brave/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.
2018-10-29 16:43:14 -07:00