Commit Graph
181 Commits
Author SHA1 Message Date
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
Emerick Rogul 420c323fae Show Brave version number in "Settings -> About Brave" on Android 2019-09-06 10:34:25 -04:00
Max Karolinskiy cc72bc8e95 Android TemplateUrlService moved to //components.
The only method we were overriding - doesDefaultSearchEngineHaveLogo
has moved to the native side, so removed our java override and added
a chromium_src override.

Chromium change:

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

commit f517f7d559cb1fcde37dced14cfde71312adaeab
Author: Peter Wen <wnwen@chromium.org>
Date:   Thu Jun 13 15:28:27 2019 +0000

    Move Android TemplateUrlService to //components

    The code that TemplateUrlServiceAndroid depends on has been moved to
    //components/search_engines. The only piece that is still required is
    Profile, which is now supplied by TemplateUrlServiceFactory.

    Change-Id: Ic16991570fb5332d7f7b99b09c324021f7a440f0
    Bug: 968156
2019-09-05 21:22:30 -04:00
Simon Hong 7cdb47110a Improve shields button state update logic
Initially, button should be disabled state. If not, it could be clicked
while tab is not displayed.
Also, button should be only enabled when shields is on for current tab
and button state should be updated when visible tab is changed.
2019-09-05 22:17:52 +09:00
Emerick Rogul 518004ce44 Send stats update ping on resume on Android 2019-08-15 19:14:24 -04:00
Serg 5a217978ee Android bottom toolbar (#3164)
* bottom toolbar, bat icon

* bookmarks button instead of share button

* bookmark's button business logic

* Correct bottom toolbar behaviour

* remove unneeded patch

* update patches after code review

* missing file, correct a patch
2019-08-15 16:08:55 -04:00
Serg 8dce98a0e1 Android Brave shields UI (#2998)
* brave shields UI init

* adds lions head on toolbar

* Brave Shields UI

* brave shields switches functionality

* Auto-refresh page on shields switches triggers, catch onLoad and etc events

* shields counters

* Correct Android BUILD.gn patch

* Enable components updater on Android

* Updates URL after page load finished

* make it compilable

* load websites when adblock lin is not ready yet

* lint fixes

* lint errors fix

* corrects patches, lint errors

* use common approach for content settings shields

* correct profile usage

* corrects a profile usage for incognito mode

* changes Top shields and HTTPSE shield functions calls

* Adds a comment

* Removes redundant switch
2019-08-01 17:49:24 -04:00
samartnik 056f47a71d Disabled NTP suggestions and FTR experience 2019-06-28 16:54:39 -04:00
Serg d8b6a3121c Android deep rebranding new (#2604)
* Disable first time run dialog
* Remove Google's logo
2019-06-06 15:07:56 -04:00