Commit Graph
48 Commits
Author SHA1 Message Date
Brian R. Bondy 64a3778dc7 Move wallet browser code to components/brave_wallet/browser 2021-03-24 15:27:42 -04:00
Ed DuVall 72de27f98f Honor BrowserGuestModeEnabled policy.
If the BrowserGuestModeEnabled policy is set to false, do not include
a menu item for the guest mode window.

Tests by Jocelyn Liu <yrliou@gmail.com>.

Fixes brave/brave-browser#12524
2021-02-11 00:11:05 +09:00
Simon Hong d32ce10c5d Disable sidebar for incognito profile
Some default sidebar items(ex, history/bookmarks) can't load with incognito profile.
2021-02-04 11:02:20 +09:00
Simon Hong 336bde9378 Use multi select settings option for showing sidebar
Also app menu has sidebar submenu.
2021-02-04 11:02:19 +09:00
Anthony Tseng cbf1323da0 Remove IsTorProfile 2020-11-18 15:13:23 -08:00
Anthony Tseng 55afff5070 Make Tor profile an OTR profile associated with the original profile 2020-11-18 15:13:16 -08:00
Anthony Tseng 08e8604cd4 Move buildflag 2020-10-27 16:27:22 -07:00
Brian R. Bondy 2584c92ba2 Collapse brave_wallet browser/common subdirs 2020-10-14 16:16:26 -04:00
Pete Miller 414c67ab33 Sync: Reintroduce app menu command to open Sync setup / configure 2020-07-06 15:21:11 -07:00
Anthony Tseng 7ab37ec508 Cleanup sync v1 code 2020-06-08 23:12:15 -07:00
Ivan Efremov 1617f66021 Issue 8416: Introduce speedreader button. 2020-04-13 12:33:43 +07:00
Anthony Tseng 33b3d7a1bc Check result from ProfileSyncServiceFactory::GetForProfile which will
be null when --disable-sync specified

Also remove redundant `--disable-brave-sync` switch because brave sync relies
on chromium sync, it won't work properly with chromium sync disabled.
2020-02-06 22:13:01 -08:00
Brian R. Bondy 32269ca00e Add setting to select web3 provider 2020-01-31 13:39:42 -05:00
Simon Hong dfa3dfb285 Re-order brave menus at app menu
Insert & reorder brave menus based on corresponding commands enable status.
If we want to add/remove from app menu, adjust enable commands status
instead of adjusting it in app menu model directly.
App menu model will add/delete based on commands status.

Fix https://github.com/brave/brave-browser/issues/5552
2019-12-19 06:07:27 +09:00
Jocelyn Liu fd7483a6e0 Add IsTorDisabledForProfile 2019-12-09 08:41:29 +08:00
Jocelyn Liu 7b7945b4c9 Disable opening Tor options in guest window 2019-12-07 07:59:34 +08:00
Simon Hong 3e01e1fffe Don't need to restart after changing tor option
Browsr commands will be updated after changing tor option.
If user turns it off, tor component will be removed at the next
launching. If there is already opened tor window, it can be used.
But, user can't create new tor window anymore.
2019-12-04 11:18:40 +09:00
Anton Lazarev 63f176c7e9 bring up reporter modal via new help menu option 2019-11-26 19:10:50 -08:00
Simon Hong 58d429d3ad Address review comments
* Fix trivial var naming and refactoring
* Delete un-related header including
* Add BraveTorClientUpdater::Cleanup() instead of deleting tor extension
  directly from BraveExtensionManagement.
2019-11-05 10:36:07 +09:00
Simon Hong 29c0084c86 Move some more codes into ENABLE_TOR build flag 2019-11-05 10:36:07 +09:00
Simon Hong 3c2d2b6b7f Move kTorDisabled prefs to local state. 2019-11-05 10:36:07 +09:00
Simon Hong 6c86856871 Disable and hide tor related commands
* From app menu
* From context menu
* From profile view of private window
2019-11-05 10:36:07 +09:00
Jocelyn Liu 7b33229c07 clang format 2019-10-29 11:42:40 -07:00
Jocelyn Liu bf3ff0426f Support opening new regular, private, private with Tor window in Tor window.
New window, New private window, New private window with Tor are shown in the
hamburger and file menu, and users could use them to open any type of new
window in Tor window.
2019-10-29 11:37:47 -07:00
Anthony Tseng bad388a584 Move brave sync switches under components/brave_sync 2019-08-21 11:52:33 -07:00
Anthony Tseng 99b97f5d4a Review Feedback (1)
1. Patch standardization
2. Apply clang-format
2019-08-19 15:10:03 -07:00
Anthony Tseng 7fcee9d29b Fix enable_brave_sync=false
Remove unused code
2019-08-19 15:10:01 -07:00
Anthony Tseng e2617dcd39 Replace brave_sync::BraveSyncService::is_enabled() with switches::IsBraveSyncAllowedByFlag() 2019-08-19 15:09:57 -07:00
Pete Miller d483d939d8 App Menu gets Create Profile and Switch to Guest Profile items
Fix https://github.com/brave/brave-browser/issues/5212
2019-08-05 22:21:57 -07:00
Anthony Tseng 9bb8d68ed5 Fix enable_tor=false build 2019-07-08 13:42:59 -07:00
bridiver 1d63b885f3 remove new tor identity for now because destroying a guest profile has issues 2019-06-26 21:28:15 -07:00
bridiver fba8d4c0a6 fix new tor identity 2019-06-26 19:58:23 -07:00
ryanml 5e1429abcd Resolves brave/brave-browser#4579 - adds Brave Wallet app menu item 2019-05-29 09:58:18 -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 b249e69bea Updated method signature of
BraveBrowserCommandController::ExecuteCommandWithDisposition.

Chromium change:

commit 6f6fc1e333f968d4caddb52f11b6ff9f3ef1c0f9
Author: Edwin Joe <ejoe@google.com>
Date:   Wed Feb 27 20:00:37 2019 +0000

    Added a new UMA to track tab switching latency time

    Created a new TabSwitchEventLatencyRecorder class that will track
    the latency between input event timestamp and the time when tab
    switching begin processing, and upload the metric to a UMA.

    Changed the TabStripModel::ActivateTabAt method interface to take
    enough input event context from the Tab to the TabStripModel,
    and changed all TabStripModel::ActivateTabAt callsites accordingly.

    Bug: 921120
2019-03-19 16:09:57 -04:00
Simon Hong 59b3d1d287 fix lint 2019-02-19 11:58:59 +09:00
Simon Hong d4ed1e0670 Cleanup displaying sync & rewards items in app menu
Sync & Rewards pages are only valid in normal window. And they are also
valid in private window because they are redirected to normal window.
However, they doesn't work properly in tor(guest) window. So, sync and
rewards items are should be visible only normal and private window's app
menu. Also, corresponding commands should be disabled in tor(guest) window.
2019-02-19 11:58:47 +09:00
Anthony Tseng cf5f057a65 Address review comments
https://github.com/brave/brave-core/pull/226#pullrequestreview-170438130
2018-11-01 19:02:43 +02:00
AlexeyBarabash d7823ab7ec command line key to enable use of sync, disabled by default 2018-11-01 19:02:43 +02:00
AlexeyBarabash 5f72a3e6ad WIP branch. Rebasing Brave-sync to Chromium69
fixed broken build in the branch

can update bookmarks in a sync cloud

intermediate commit 8

WIP, moving js lib to extension

move js lib to extension background page; BrowserToBackgroundPage calls

move js lib to extension background page; extension is packed

move js lib to extension background page; sync client class

move js lib to extension background page; modifying background.js

fixes after Chromium 69 rebase

fixed var keyword

reorganizing dirs

reorganizing file names

fixed classes naming

another forgotten class naming fix

don't copy resources inside src
auditors @AlexeyBarabash

fix brave_sync background page resource loading

move js lib to extension background page; strict calls schema; move brave sync api from browser to components

brave-sync and brave-crypto are built from DEPS hooks now

fixed chrome.braveSync api load

rebased patch for cr70

fixing issues after rebase to cr70

workaround for issue of binary type of json schema modified from vector<char> to vector<unsigned char> at cr69=>cr70

fixes sync-ui webpack for rebase

fixed after rebase

sync classes are per-profile now

WIP for sync history

fixes after rebase

fix after rebase

some history stuff

file work is in correct thread now; removed mutex

fix for threading during bookmarks creation

fixed threading for reset sync

fixed build after rebase

fixed missing break after rebase

initialization of bookmarks base order

can send bookmark order

storage of objects map is now typed for local id

fix for object map not existing local ids

fixed GetLocalIdByObjectId

fixes for bookmarks folders

fix for permanent folders order

switched passphrase encoding to bip39 from niceware

save order when bookmark is added

fix for add bookmark from sync situation

fixed assigning bookmark order after device just connected to chain

can delete bookmark by event from sync

wip update bookmark by event from sync

test for bookmark order utils

avoid double initialize request

object_map depends on profile path, not on whole profile

backend for ui set sync this device,bookmarks,history,settings

simple ui does set sync this device,bookmarks,history,settings
2018-11-01 18:02:39 +02:00
Taylor `Riastradh' Campbell 83a9f96390 Menu items for opening Tor windows
fix https://github.com/brave/brave-browser/issues/1387

- Main hamburger menu in non-Tor windows:
  New private window with Tor

- Context menu for right-click on links:
  Open link in private window with Tor

This pushes IsTorProfile() into BrowserContext where it now resides
alongside IsOffTheRecord(), since we need it in order to determine
whether the 'Open link in private window with Tor' item should be
greyed out or not.  (Is this a little silly?  Maybe, but it's what the
browser already does with 'Open link in incognito window' item.)

Test plan:

1. 1. Open a fresh browser instance.
   2. Confirm that hamburger -> 'New private window with Tor' (NPWWT)
      opens a private window with Tor.
   3. In the _Tor_ window, open <https://check.torproject.org/>.
   4. Confirm that you are using Tor.
   5. Right-click any link on the page.
   6. Confirm that items to open in a private window, with or without
      Tor, are greyed out.
   7. Confirm that in the _normal_ window's hamburger, NPWWT switches
      to the private window with Tor it just opened.
   8. Confirm that in the _Tor_ window's hamburger, 'New window' opens
      a new private window with Tor.
   9. Confirm that in the _Tor_ window's hamburger, there is no NPWWT.

3. 1. Open a fresh browser instance.
   2. In a _normal_ window, open <https://www.example.com/>.
   3. Right-click the 'More information...' link.
   4. Select 'Open link in private window with Tor'.
   5. Confirm that the link opens in a Tor window.
   6. In the normal window, do it again.
   7. Confirm that the link opens in a new tab in the existing Tor
      window.

TODO: Rename IsTorProfile to make more sense for BrowserContext.
2018-10-11 23:11:12 +00:00
Brian R. Bondy 3a0d49a875 Remove patch for chrome/browser/extensions/extension_service.cc 2018-09-18 01:44:52 -04:00
Anthony Tseng a7d1103d05 Add 'New Tor Identity' menu item 2018-09-13 10:50:06 -07:00
Brian R. Bondy 6e84b43490 Don't try to compile brave-rewards webui when disabled
Auditors: @SergeyZhukovsky
2018-09-05 08:42:40 -04:00
Brian R. Bondy 7d47f655f4 Add chrome://adblock page 2018-07-05 10:15:39 -04:00
Brian R. Bondy 504adc4fae Refactor and rename Brave Payments 2018-07-05 10:15:39 -04:00
Simon Hong 7243661456 Add brave payments item to app menu
This item opens tab with chrome://payments
2018-03-27 20:43:06 +09:00