-
Notifications
You must be signed in to change notification settings - Fork 109
Make desktop name configurable from browser-laptop #309
Conversation
82d2304
to
bbcbd1c
Compare
requires brave/muon#309 Auditors: @bsclifton, @bbondy Test Plan:
also fix #1336 requires brave/muon#309 Auditors: @bsclifton, @bbondy Test Plan:
also fix #1336 requires brave/muon#309 Auditors: @bsclifton, @bbondy Test Plan:
also fix #1336 requires brave/muon#309 Auditors: @bsclifton, @bbondy Test Plan:
@@ -118,6 +123,12 @@ bool Browser::SetAsDefaultProtocolClient(const std::string& protocol, | |||
// |protocol|. | |||
bool Browser::IsDefaultProtocolClient(const std::string& protocol, | |||
mate::Arguments* args) { | |||
std::string desktop_name; | |||
if (!args->GetNext(&desktop_name)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we check to see if it's empty?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The empty desktop name does no harm. For IsDefaultProtocolClient, the final result will be false and SetAsDefaultProtocolClient would be no effect.
also fix #1336 requires brave/muon#309 Auditors: @bsclifton, @bbondy Test Plan:
…wser` requires brave/muon#309 fix #1336 Auditors: @bsclifton, @bbondy Test Plan: 1. Set default browser to non Brave browser 2. Open Brave from fresh profile 3. You should see Brave ask to set as default 4. Click Yes, in about:preferences#general, you should see Brave is your default browser 5. Check system setting, default browser should be Brave
…wser` requires brave/muon#309 fix #1336 Auditors: @bsclifton, @bbondy Test Plan: 1. Set default browser to non Brave browser 2. Open Brave from fresh profile 3. You should see Brave ask to set as default 4. Click Yes, in about:preferences#general, you should see Brave is your default browser 5. Check system setting, default browser should be Brave
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM 😄 I'm compiling Muon on Linux right now so that I can try this out
please mark with branch labels/milestone |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as expected- wow! 😄 👍
Should be merged for browser-laptop 0.20.x BUT it can happen earlier in Muon because browser-laptop has backwards compatible change (brave/browser-laptop#10974) |
Make desktop name configurable from browser-laptop
also fix #1336 requires brave/muon#309 Auditors: @bsclifton, @bbondy Test Plan:
Auditors: @bsclifton, @bbondy