Commit Graph
181 Commits
Author SHA1 Message Date
Max Karolinskiy 40b5012e89 [Android] TEMP: Commented out BraveShieldsMenu pieces.
Broken due to Chromium change:

https://chromium.googlesource.com/chromium/src/+/016b18a82b6b94c9244d2aa2be0c7af8826d1f8b

commit 016b18a82b6b94c9244d2aa2be0c7af8826d1f8b
Author: Theresa Wellington <twellington@chromium.org>
Date:   Wed Nov 13 19:14:49 2019 +0000

    Move chrome/android/.../appmenu/ to its own build target

    Move chrome/android/java/.../appmenu/ (excluding a handful of classes)
    to its chrome/browser/ui/android/appmenu/ and create a separate build
    target for the app menu.

    Also splits appmenu classes and resources between public and internal/

    BUG=966644
2020-01-29 07:43:56 -05:00
Max Karolinskiy 3ffd0ad211 [Android] Use SEARCH_SUGGEST_ENABLED with PrefServiceBridge.
Chromium change:

https://chromium.googlesource.com/chromium/src/+/97fd6bcffbe752b404b4664f2314f6045095ba69

commit 97fd6bcffbe752b404b4664f2314f6045095ba69
Author: Natalie Chouinard <chouinard@chromium.org>
Date:   Wed Oct 23 21:28:19 2019 +0000

    Add isManagedPreference to PrefServiceBridge

    Add a generic isManagedPreference method to PrefServiceBridge, making
    use of the prefs.h enums.

    Migrate Java usages of prefs::kSearchSuggestEnabled to use the generic
    methods as a sample (more to follow).

    Bug: 1016957
2020-01-29 07:43:56 -05:00
Max Karolinskiy 6450337246 [Android] Bottom toolbar button wrappers have been removed.
Chromium changes:

https://chromium.googlesource.com/chromium/src/+/2a77e07a61c243be136ddbe8ff78c8e548897243

commit 2a77e07a61c243be136ddbe8ff78c8e548897243
Author: Lijin Shen <lazzzis@google.com>
Date:   Thu Dec 19 22:28:41 2019 +0000

    [duet] Remove bottom toolbar button wrappers and labels

    ChromeDuetLabel will not be supported any more. The wrappers and labels
    were originally implemented by http://crrev.com/c/1552152. This CL
    removes these wrappers and labels.

    (cherry picked from commit f3d73f2c6760fc955c88f7e180f835cf50e338f2)

    Bug: 965556

Also, BottomToolbarCoordinator c'tor signature change:

https://chromium.googlesource.com/chromium/src/+/6de109fb7c37bc6a6a9ac64e9361acdc16d03a4c

commit 6de109fb7c37bc6a6a9ac64e9361acdc16d03a4c
Author: Kyle Milka <kmilka@chromium.org>
Date:   Tue Nov 19 21:49:14 2019 +0000

    Set share button onclick only when ShareDelegate is ready

    As a follow-up to https://crrev.com/c/1869491 only hook up the bottom
    toolbar's onclick listener once ShareDelegate is available
    (bottomSheetController has been initialized).

    Bug: 1869491
2020-01-29 07:43:56 -05:00
Max Karolinskiy 776466f9cf [Android] AppMenuPropertiesDelegateImpl.prepareMenu signature change.
Chromium change:

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

commit eb7da349e164fb82fe1f68f9cb2591852e977480
Author: Theresa Wellington <twellington@chromium.org>
Date:   Wed Oct 30 18:33:45 2019 +0000

    Introduce appmenu.CustomViewBinder interface for update menu item

    Introduce a new CustomViewBinder interface that allows
    AppMenuPropertiesDelegates to handle binding for custom menu items.

    This interface is used to provide a custom binder for the update menu
    item, which relies on UpdateMenuItemHelper methods/classes that will not
    be moved to the appmenu/ package when its modularized.

    Bug: 966644
2020-01-29 07:43:56 -05:00
Max Karolinskiy 9446ef0e66 [Android] Moved BravePreferenceManager to BraveFeatureUtilities.
The only functionality in there was for a method used in FeatureUtilities,
which no longer imports ChromePreferenceManager. Also, moved keys to a
separate class similarly to Chromium - BravePreferenceKeys.

Chromium change:

https://chromium.googlesource.com/chromium/src/+/545eecd948d81dc98904e8f39a75df7acb50668c

commit 545eecd948d81dc98904e8f39a75df7acb50668c
Author: Henrique Nakashima <hnakashima@chromium.org>
Date:   Fri Nov 8 15:28:57 2019 +0000

    Move remaining SharedPreferences keys to ChromePreferenceKeys.

    Bug: 1022107
2020-01-29 07:43:56 -05:00
Max Karolinskiy 138550f2a7 [Android] Tab -> TabImpl.
Chromium change:

https://chromium.googlesource.com/chromium/src/+/9b9170600e22b6a51be6183a46f9f93d203de061

commit 9b9170600e22b6a51be6183a46f9f93d203de061
Author: Jinsuk Kim <jinsukkim@chromium.org>
Date:   Sun Nov 24 01:23:13 2019 +0000

    Android: Tab interface

    This CL defines Tab as an interface, and provides a concrete
    implementation of it (TabImpl). Initially the codebase switches to
    TabImpl for accessing non-public interface methods. The interface
    starts with a subset of methods and gradually includes more,
    and eventually replace all the references of TabImpl with Tab.

    See https://bit.ly/2WibHVy for the design proposal.

    Bug: 995903
2020-01-29 07:43:56 -05:00
Max Karolinskiy 58c1b5e175 [Android] Color methods moved from ColorUtils.
Chromium changes:

https://chromium.googlesource.com/chromium/src/+/0b4e397d6bcb90f40bbe44bd10f6f3a5c64201dd

commit 0b4e397d6bcb90f40bbe44bd10f6f3a5c64201dd
Author: Henrique Nakashima <hnakashima@chromium.org>
Date:   Thu Oct 24 16:30:06 2019 +0000

    Create chrome.browser.ui.widget.styles.

    Initially, it contains:
    - ChromeColors (was part of ColorUtils)
    - @color
      - toolbar_background_primary
      - toolbar_background_primary_dark
      - standard_mode_tint
      - tint_on_dark_bg

    Shared resources that correspond to Chrome style should be moved here.

    Bug: 995916

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

commit e79684562f1eeb693cc475acf99611f6a78c29ff
Author: Henrique Nakashima <hnakashima@chromium.org>
Date:   Thu Oct 17 15:29:50 2019 +0000

    Create ToolbarColors in chrome/browser/toolbar.

    Move some methods from ColorUtils to it:
    - getTextBoxColorForToolbarBackground()
    - getToolbarSceneLayerBackground()
    - getTextBoxAlphaForToolbarBackground()
    - isUsingDefaultToolbarColor()
    - getThemedToolbarIconTintRes()
    - getThemedToolbarIconTint()

    This breaks the dependency from ColorUtils to Tab and NewTabPage.

    Bug: 995916

https://chromium.googlesource.com/chromium/src/+/26abb7309105ddb3f393f1558adb265bd559e54b

commit 26abb7309105ddb3f393f1558adb265bd559e54b
Author: Lijin Shen <lazzzis@google.com>
Date:   Mon Nov 4 19:32:02 2019 +0000

    Fix URL bar background flash on swiping tabs and entering/exiting tab switcher

    The background of URL bar is not displayed on swiping tabs or entering/existing
    tab switcher. This CL is trying to correct location bar background color by
    detecting whether it is an NTP and location bar is on top of the NTP or not.

    Bug: 874101
2020-01-29 07:43:56 -05:00
Max Karolinskiy d426a7255a [Android] Use SharedPreferencesManager instead of ChromePreferenceManager.
Chromium change:

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

commit d822cd296cb10e0f7256cc4834f438df609ae650
Author: Henrique Nakashima <hnakashima@chromium.org>
Date:   Wed Nov 6 17:12:04 2019 +0000

    Remove Boolean methods from ChromePreferenceManager.

    Use SharedPreferencesManager instead.

    Bug: 1017800
2020-01-29 07:43:55 -05:00
Max Karolinskiy 1085fda44f [Android] chrome/android/.../appmenu/ moved.
Chromium change:

https://chromium.googlesource.com/chromium/src/+/016b18a82b6b94c9244d2aa2be0c7af8826d1f8b

commit 016b18a82b6b94c9244d2aa2be0c7af8826d1f8b
Author: Theresa Wellington <twellington@chromium.org>
Date:   Wed Nov 13 19:14:49 2019 +0000

    Move chrome/android/.../appmenu/ to its own build target

    Move chrome/android/java/.../appmenu/ (excluding a handful of classes)
    to its chrome/browser/ui/android/appmenu/ and create a separate build
    target for the app menu.

    Also splits appmenu classes and resources between public and internal/

    BUG=966644
2020-01-29 07:43:55 -05:00
Max Karolinskiy 2277295f79 [Android] Preferences renamed to SettingsActivity.
Chromium change:

https://chromium.googlesource.com/chromium/src/+/6aaf6675519259d97b0cb9d46a6a9db51188fb1e

commit 6aaf6675519259d97b0cb9d46a6a9db51188fb1e
Author: Natalie Chouinard <chouinard@chromium.org>
Date:   Tue Dec 3 01:20:29 2019 +0000

    Rename Preferences class to SettingsActivity

    This is a mostly mechanical refactor done with Android Studio, with a
    few additional manual renames of symbols and comments.

    Bug: 1029146
2020-01-29 07:43:55 -05:00
Max Karolinskiy bbf8318a50 [Android] Keys moved to ChromePreferenceKeys.
Chromium change:

https://chromium.googlesource.com/chromium/src/+/545eecd948d81dc98904e8f39a75df7acb50668c

commit 545eecd948d81dc98904e8f39a75df7acb50668c
Author: Henrique Nakashima <hnakashima@chromium.org>
Date:   Fri Nov 8 15:28:57 2019 +0000

    Move remaining SharedPreferences keys to ChromePreferenceKeys.

    Bug: 1022107
2020-01-29 07:43:55 -05:00
Max Karolinskiy 657033e14a [Android] Preferences and settings got separated.
Chromium changes:

https://chromium.googlesource.com/chromium/src/+/4b1887815272e0870334035e0788bb6a3c2ec162

commit 4b1887815272e0870334035e0788bb6a3c2ec162
Author: Natalie Chouinard <chouinard@chromium.org>
Date:   Wed Nov 27 20:29:55 2019 +0000

    Separate preferences and settings subpackages

    Move all classes under org.chromium.chrome.browser.preferences which are
    related to Android settings screens (rather than the underlying
    preferences persistence layers) to org.chromium.chrome.browser.settings
    instead.

    This disambiguation was decided in go/clank-preferences-refactor.

    Dependent downstream change: https://crrev.com/i/2222930

    Bug: 1027271

https://chromium.googlesource.com/chromium/src/+/6f29369b254c8f82a23c2583d6fcc2dfe585c547

commit 6f29369b254c8f82a23c2583d6fcc2dfe585c547
Author: Natalie Chouinard <chouinard@chromium.org>
Date:   Tue Dec 3 19:24:25 2019 +0000

    Rename PreferenceUtils to SettingsUtils

    This is a purely mechanical rename done with Android Studio.

    This class is being renamed to adhere to the conventions described in
    go/clank-preferences-refactor.

    TBR=gogerald@chromium.org

    Bug: 1029146
2020-01-29 07:43:55 -05:00
Max Karolinskiy c269f26dfa [Android] FeatureUtilities has moved.
Chromium changes:

https://chromium.googlesource.com/chromium/src/+/991cea18ce9b350b9875066683a1ebc87587bc2d

commit 991cea18ce9b350b9875066683a1ebc87587bc2d
Author: Henrique Nakashima <hnakashima@chromium.org>
Date:   Fri Oct 25 20:11:49 2019 +0000

    Move FeatureUtilities to chrome.browser.flags.

    chrome.browser.utils should only contain leaf-node util classes, and is
    now in a separate build target.

    Bug: 995916
2020-01-29 07:43:55 -05:00
mkarolin 1bda6c083d [Android] android_chrome_strings.grd has moved.
chrome/android/java/strings -> chrome/browser/ui/android/strings

Moved android_brave_strings.grd to the same location.
Moved XTBs as well.

Chromium change:

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

commit c5ff0bef24795c5e26308674f015ea75cc17225f
Author: Theresa Wellington <twellington@chromium.org>
Date:   Thu Nov 7 02:08:21 2019 +0000

    [Android] Create shared strings module

    Move android_chrome_strings.grd to its own separate build target
    and merge ui widget strings back into android_chrome_strings.grd.

    BUG=1002534
2020-01-29 07:42:49 -05:00
SergeyZhukovsky 40b07688dd disables data reduction promo on Android 2020-01-28 19:27:54 -05:00
SergeyZhukovsky c48a2da6d8 fixes android sync crash on 4.4 devices 2020-01-28 11:31:47 -05:00
Jocelyn Liu 61f534738e [Android] Add brave's icon for the incognito shortcut. 2020-01-27 16:13:16 -08:00
SergeyZhukovsky 34ecf9fa6d adds a check on a dying main Activity 2020-01-27 14:29:15 -05:00
Emerick Rogul 6a350b4b16 Merge pull request #4422 from brave/developer-options-android
Add Developer Options for Android
2020-01-24 19:05:54 -05:00
Serg d8e90773b7 Merge pull request #4429 from brave/android_x86_rewards
Hide rewards on Android x86 builds
2020-01-24 16:57:03 -05:00
SergeyZhukovsky 2d2983d6b0 Hide rewards on Android x86 builds 2020-01-24 16:52:22 -05:00
Emerick Rogul 44e38a33cd Add support for QA code 2020-01-24 15:25:10 -05:00
Emerick Rogul 9fb52f2865 Add Developer Options for Android 2020-01-24 15:25:10 -05:00
Jocelyn Liu 3219b6c946 [Android] Disable first-run-experience on arm64 2020-01-23 13:32:54 -08:00
SergeyZhukovsky 1d4b382900 add private theme on Android 2020-01-20 14:03:40 -05:00
SergeyZhukovsky 796690e02c fixes a crash on Android on menu Settings 2020-01-17 20:54:18 -05:00
AlexeyBarabash a1e02d8f88 Merge pull request #4329 from brave/android_access_permission_v2
Use sync adapter stub xml; Fixes brave-browser#4837
2020-01-17 10:20:02 +02:00
AlexeyBarabash 0784cf526f Add sync adapter stub xml; Fixes brave-browser#4837 2020-01-16 13:12:34 +02:00
AlexeyBarabash d0ac25cd9e Reverting changes from pr2823: sync adapter manifest section, resources, BraveBrowserSyncAdapterService 2020-01-16 13:05:59 +02:00
Emerick Rogul 00bb439c6f Remove help info button from Settings page on Android 2020-01-15 12:28:54 -05:00
SergeyZhukovsky 97e711e8f5 Correct translations with placeholders on Android 2020-01-13 16:54:40 -05:00
samartnik c0140c4be4 Disabled Brave Rewards for android x86 devices 2020-01-11 07:45:16 -05:00
Emerick Rogul a2f5636326 Add Brave License on android 2020-01-10 16:25:52 -05:00
Jocelyn Liu a5563f4347 Merge pull request #4355 from brave/fix_google_play_string
Update Brave Play back to Google Play
2020-01-09 16:36:02 -08:00
samartnik 1e8c535b03 Merge pull request #4349 from brave/android_brave_referrer
Support for Brave referrer (android)
2020-01-09 19:18:00 -05:00
Jocelyn Liu eed86c855d Update Brave Play back to Google Play
Generated by running `npm run chromium_rebase_l10n`.
2020-01-09 16:02:03 -08:00
Jocelyn Liu 588764b680 Merge pull request #4350 from brave/android_privacy_prefs
[Android] Remove services link and add search suggestion pref in privacy settings
2020-01-09 12:44:35 -08:00
Jocelyn Liu 8680cb853a Merge pull request #4333 from brave/android_NTP_stats
[Android] Disable InterestFeedContentSuggestions to fix NTP stats on Android.
2020-01-09 12:29:51 -08:00
Jocelyn Liu eafc7c4614 [Android] Remove services link and add search suggestion pref in privacy settings 2020-01-09 11:51:25 -08:00
samartnik 7c707ae24d Specified file path in error log 2020-01-09 14:41:52 -05:00
samartnik 402a12b37e Support for Brave referrer (android) 2020-01-09 14:29:48 -05:00
Emerick Rogul 387456ae38 Update ToS and Privacy links for Android 2020-01-09 09:34:33 -05:00
Jocelyn Liu 2302c86d62 Disable InterestFeedContentSuggestions to fix NTP stats on Android.
Also fixes the bug that chromium_src override of chrome_main_delegate_android.cc
is not working as expected.
2020-01-08 19:16:21 -08:00
Serg f0b530221e Merge pull request #4332 from brave/android_sync_proguard
adds proguard file for Android sync
2020-01-08 16:10:14 -05:00
Emerick Rogul 8eb2102412 Fix one-time tips not showing in panel on Android 2020-01-08 12:37:18 -05:00
SergeyZhukovsky 83f900ecee adds proguard file for Android sync 2020-01-08 12:08:45 -05:00
SergeyZhukovsky aba94330d2 connects sync UI with functionality 2020-01-06 22:14:32 -05:00
SergeyZhukovsky 30111ecbcc old sync Android integration 2020-01-06 09:53:42 -05:00
Nejc Zdovc 34a9ede674 Merge pull request #4280 from darrylbutcher/issue-7500-brave-rewards
Issue 7500 Fixed phrasing in brave rewards messages
2020-01-01 07:39:28 +01:00
darrylbutcher 7410cb18fc Issue 7500 Fixed phrasing in brave rewards messages for browser and android 2019-12-23 11:18:06 +00:00