Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Make desktop name configurable from browser-laptop #309

Merged
merged 1 commit into from
Sep 22, 2017
Merged

Conversation

darkdh
Copy link
Member

@darkdh darkdh commented Sep 14, 2017

Auditors: @bsclifton, @bbondy

@darkdh darkdh self-assigned this Sep 14, 2017
@darkdh darkdh requested review from bbondy and bsclifton September 14, 2017 15:46
darkdh added a commit to brave/browser-laptop that referenced this pull request Sep 14, 2017
darkdh added a commit to brave/browser-laptop that referenced this pull request Sep 14, 2017
darkdh added a commit to brave/browser-laptop that referenced this pull request Sep 14, 2017
darkdh added a commit to brave/browser-laptop that referenced this pull request Sep 14, 2017
@@ -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)) {
Copy link
Contributor

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?

Copy link
Member Author

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.

darkdh added a commit to brave/browser-laptop that referenced this pull request Sep 14, 2017
darkdh added a commit to brave/browser-laptop that referenced this pull request Sep 15, 2017
…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
darkdh added a commit to brave/browser-laptop that referenced this pull request Sep 16, 2017
…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
Copy link
Member

@bsclifton bsclifton left a 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

@bridiver
Copy link
Collaborator

please mark with branch labels/milestone

Copy link
Member

@bsclifton bsclifton left a 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! 😄 👍

@bsclifton
Copy link
Member

bsclifton commented Sep 21, 2017

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)

@darkdh darkdh modified the milestones: 4.4.18, 4.4.21 Sep 21, 2017
@bsclifton bsclifton merged commit 9513193 into master Sep 22, 2017
@bsclifton bsclifton deleted the desktopNameArg branch September 22, 2017 05:28
bsclifton added a commit that referenced this pull request Sep 22, 2017
Make desktop name configurable from browser-laptop
darkdh added a commit to brave/browser-laptop that referenced this pull request Sep 25, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants