Commit Graph
58 Commits
Author SHA1 Message Date
Jocelyn Liu 151bbd4635 include brave's AndroidManifest.xml to be extensible 2019-10-17 16:10:35 -07:00
Jocelyn Liu 8f252d2ea9 Remove hardcode values 2019-10-16 17:06:37 -07:00
Jocelyn Liu 81d3c89815 git cl format 2019-10-16 12:12:46 -07:00
Jocelyn Liu f5b0574294 Hide default browser option in menu when Brave is the default 2019-10-16 12:08:43 -07:00
Jocelyn Liu 0aa51afac2 Set default browser notification at 11:22 2019-10-16 12:08:43 -07:00
Jocelyn Liu 8bb19051f5 Add set default browser option in settings 2019-10-16 12:08:14 -07:00
Emerick Rogul 4adecca0f8 Make custom private page with DDG switch 2019-10-15 18:56:29 -04:00
Simon Hong c94976cb53 Merge pull request #3671 from brave/replace_android_chrome_strings_grd
[Android] Replace strings of andorid_chrome_strings.grd
2019-10-14 21:54:38 +02:00
Simon Hong da4a2fcf82 Delete duplicated string
We don't need IDS_PREFS_ABOUT_CHROME anymore because we are using
brave branded android_chrome_strings.grd.
2019-10-11 15:43:45 +09:00
Simon Hong 493cb84740 Replace strings of andorid_chrome_strings.grd
This replaced grd file is overwritten to original android_chrome_strings.grd.
2019-10-11 14:48:16 +09:00
Jocelyn Liu 7b3065634d Only define PREF_HIDE_BRAVE_REWARDS_ICON in AppearancePreferences. 2019-10-10 18:06:30 -07:00
Jocelyn Liu b98949a711 Hide brave rewards icon option 2019-10-10 15:07:11 -07:00
Jocelyn Liu 8ecdac3379 Add BraveRewards feature flag for android 2019-10-10 15:07:11 -07:00
Jocelyn Liu b8bf09a8fc Remove Compat suffix from Preferences in xml files 2019-10-10 14:50:33 -07:00
Brian Clifton c8083458ec Merge pull request #3653 from brave/78.0.3904.50
Upgrade patches from Chromium 77.0.3865.90 to Chromium 78.0.3904.50
2019-10-10 11:07:12 -07:00
Max Karolinskiy c94980e7d6 Android: SigninManager c'tor/create signature changes.
Chromium changes:

https://chromium.googlesource.com/chromium/src/+/11320f06e117d93f40f0443cd67c55ad65c5943f

commit 11320f06e117d93f40f0443cd67c55ad65c5943f
Author: Pâris MEULEMAN <pmeuleman@chromium.org>
Date:   Fri Jul 26 17:11:09 2019 +0000

    Merge SigninManagerDelegate back into SigninManager

    This merges back SigninManagerDelegate.java into SigninManager.java and
    likewise for c++ code. This is in the scope of a change of strategy
    regarding the identityManager implementation on Android, using a
    layering strategy similar to what was done on iOS.

    The change consist in:
    * copy chrome_signin_manager_delegate.* methods to
      signin_manager_android.*
    * rename occurrences of ChromeSigninManagerDelegate to
      SigninManagerAndroid, in Java including JNI invocations and C++.
    * Directly invoke methods instead of calling mDelegate (java)
    * Update constructors to include the delegate dependencies.

    * A significant change that is not an obvious code move is the rollback of
      SigninManagerAndroid's constructor using
      SigninClient/PrefService(local_state) to Profile. This makes the
      remainder of the change much simpler, but does cascade to the factory.

    The above changes are described in their files in PS3:
    crrev.com/c/1700210/3
2019-10-10 02:53:26 -04:00
Max Karolinskiy 7e551dc008 Android: Remove Compat suffix from Preferences
Chromium change:

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

commit e3f6e640902edcaa2d2cb431ae9d15b419303c1c
Author: Natalie Chouinard <chouinard@chromium.org>
Date:   Fri Jul 26 20:42:38 2019 +0000

    Remove Compat suffix from Preferences

    Now that the preferences Support Library migration is complete, and
    duplicates have been removed (crrev.com/c/1709880), we can remove the
    Compat suffix from all methods and classes.

    Bug: 967022
2019-10-10 02:53:26 -04:00
Max Karolinskiy cad37251a8 Android: removed passing jcaller to the native side.
Chromium change:

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

commit d6b8adac674244c5c104cbd70bb7da0d4b6d4cab
Author: Eric Stevenson <estevenson@chromium.org>
Date:   Fri Jul 26 21:26:06 2019 +0000

    jni_generator: Fix jcaller usage.

    This CL changes static methods to not pass a jcaller object to
    the native side. This isn't necessary because there is no Java object
    instance for static methods and it was actually just passing a jclass
    as a jobject which was always unused.

    The @JCaller annotation is also removed. It isn't strictly necessary
    anymore and is often used incorrectly (i.e. using @JCaller and adding
    an unused param on the native side).

    All Java and native definitions and uses are also updated to reflect
    the changed logic.

    Tbr: agrieve@chromium.org  # Large mechanical refactor.
    Bug: 986930
2019-10-10 02:53:25 -04:00
Simon Hong 2b014a2bf8 Cleanup main menu and add brave specific menu items
Instead of modifying menu.xml, subclassing
AppMenuPropertiesDelegateImpl. This way seems more extensible.
2019-10-09 20:57:27 +09:00
Simon Hong 4896a055af Add stub welcome tour options in basic category in main settings 2019-10-08 19:40:08 +09:00
Simon Hong 363f45b376 Delete main_preferences.xml patch
We can update original preferences by programatically.
2019-10-08 14:27:53 +09:00
Simon Hong c62204f6ef Cleanup android strings
Remove redundant strings and deprecated comments.
2019-10-08 13:54:53 +09:00
Jocelyn Liu c6b5ab7306 [Android] Add enable/disable bottom toolbar option in settings
We use BRAVE_BOTTOM_TOOLBAR_ENABLED_KEY instead of the chromium one for avoid patching cacheBottomToolbarEnabled().
2019-10-07 17:40:01 -07:00
Brian Clifton 9bc99ed745 Merge pull request #3613 from brave/enable_close_all_tabs_closes_brave_option
Enable Closing all tabs closes Brave option
2019-10-07 16:33:07 -07:00
Simon Hong fd418da227 Add background video playback 2019-10-07 18:15:31 +09:00
Simon Hong 466271b044 Enable Closing all tabs closes Brave option
When NTP is set as home page, we don't close brave always.
Otherwise, follow option value regardless of homepage settings.
2019-10-07 16:04:19 +09:00
Simon Hong 89a0d3647c Add stub controls section in main preferences screen 2019-10-03 21:32:14 +09:00
Simon Hong 55e8b565e5 Cleanup site settings screen
Remove ads and background sync option from site settings screen.
2019-10-03 06:33:46 +09:00
Simon Hong a2bdc77b6c Unify JNI interface for getting/setting native prefs
Use BravePrefServiceBridget.java for it.
2019-10-03 06:33:46 +09:00
Simon Hong e6fdb9ecbb Change BraveSiteSettingsPreferencesBase as a base class
Makes SiteSettingsPreferences inherits BraveSiteSettingsPreferencesBase.
With this, we don't need to modify multiple preferences xml files.
Only need to change one SiteSettingsPreferences.java file.
2019-10-03 06:33:46 +09:00
Simon Hong e05eb96de2 Add Video playback in brave option into Media preferences
When this option is on,
ChromeInterceptNavigationDelegate::ShouldIgnoreNavigation() will return
false if url is youtube.
2019-10-03 06:33:46 +09:00
Simon Hong 0ee81e2180 Add TabHepler in c++ instead of java world
Global desktop mode setting is applied to webcontents only when tab
is created. We can know this by whether checking last committed
entry is null or not.
With this, we don't need to modify Tab.java.
2019-10-03 06:33:46 +09:00
Simon Hong df28319e93 Add desktop mode option in site settings
DesktopModeTabHelper overrides when new WebContents is created.
DesktopMode changing will affect to newly created Tab.
So, existing tab will not be changed desktop mode.
If user choose desktop view option explicitly, we respect it during the
life time of the Tab.
2019-10-03 06:33:46 +09:00
Simon Hong d248b319d2 Fix crash during the loading with clean profile
To initialize initial prefs for dual DSE, it needs default TemplateUrl.
It can be fetched after TemplateUrlService loading is done.
So, initialization is done after loading is finished.
2019-10-02 21:18:18 +09:00
Simon Hong fd7f6af624 Add search engine category in main settings screen
Brave uses different DSE for standard and private but chromium uses
single DSE for both.
To achieve our goal, we set proper DSE whenever standard/private context is
changed.
2019-10-02 08:05:33 +09:00
Simon Hong 20b5205516 Post updateBravePreferences() in onResume().
Run updateBravePreferences() after fininshing MainPreferences::updatePreferences().
Otherwise, some prefs could be added after finishing updateBravePreferences().
2019-09-26 17:50:45 +09:00
Simon Hong 72f720ce36 Remove developer prefs from main settings screen 2019-09-26 17:28:37 +09:00
Simon Hong 43bf6e62b3 Avoid SigninManager.java patch file
by overriding Java_SigninManager_create.
2019-09-26 14:38:23 +09:00
Simon Hong 0efe048af9 Use super class for customizing MainPreferences.java
With this, we can reduce patch file to one for customizing
MainPreferences.
2019-09-26 13:46:46 +09:00
Simon Hong e129e4f4b6 Remove unused settings from main settings screen 2019-09-26 13:42:14 +09:00
Simon Hong 1a8bfb9ec3 Show real brave stats on brave NTP 2019-09-18 11:57:45 +09:00
Jocelyn Liu 9e9085a248 Add close tabs on exit in Android's privacy page 2019-09-17 17:27:53 -07:00
Simon Hong 2250e8dddb Merge pull request #3436 from brave/add_exit_menu_item_in_app_menu
[Android] Add exit menu item in app menu
2019-09-18 07:58:37 +09:00
Simon Hong 1a50113731 Merge pull request #3401 from brave/add_brave_stats_on_ntp
[Android] Add brave stats ui on NTP
2019-09-17 12:37:32 +09:00
Simon Hong 17e35abd5d [Android] Add exit menu item in app menu 2019-09-17 10:49:26 +09:00
Simon Hong aef842e09b [Android] Fix shields button is not clickable when shields is off
Shields button should be clickable always.
This bug is regression from controlling enable/disable shields button.
To fix this, shields button should be always enabled.

The purpose of disabling shields button was preventing shields button
click when tab is not ready.
So, instead of disabling shields button, just return when current tab is
null during the handling of click.

And enable/disableShieldsButton methods are integrated into
updateBraveShieldsButtonState().

Also, shields popup will be displayed only for http/https protocols.
2019-09-17 10:32:54 +09:00
Simon Hong ca58824af8 Connect real brave stats to UI 2019-09-17 09:15:47 +09:00
Simon Hong 0f76344479 Add stub brave stats ui on NTP
Brave stats UI is displayed above the favorite/popular sites tile
section.
Most of codes are copied from existing brave android browser.
2019-09-17 09:15:47 +09:00
Jocelyn Liu 566ba648e5 Add httpse, adblock, and fingerprinting protection switches into Android's privacy page. 2019-09-13 01:23:53 -07:00
Brian Clifton a492c78c42 Merge pull request #3358 from brave/77.0.3865.65
Update patches from Chromium 76.0.3809.132 to Chromium 77.0.3865.65
2019-09-06 16:27:58 -07:00