Skip to content

refactor: don't use AppIndicatorIcon directly - #15536

Merged
nornagon merged 4 commits into
masterfrom
use-linuxui
Nov 6, 2018
Merged

nornagon merged 4 commits into
masterfrom
use-linuxui

Conversation

@nornagon

@nornagon nornagon commented Nov 2, 2018

Copy link
Copy Markdown
Contributor

Description of Change

This code is identical to what Chromium has: https://chromium.googlesource.com/chromium/src/+/69.0.3497.128/chrome/browser/ui/libgtkui/gtk_ui.cc#646

and it gets us closer to removing/upstreaming the libgtkui_export patch :)

I'm not totally sure why this was done the way it was previously, though I do see #6145 which changed it to the way it is now.

Checklist

  • PR description included and stakeholders cc'd
  • PR title follows semantic commit guidelines

Release Notes

Notes: no-notes

@nornagon
nornagon requested review from a team, deepak1556 and zcbenz November 2, 2018 00:30

@deepak1556 deepak1556 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure but can you confirm if the kAppIndicatorIdPrefix used for the indicator starting with this PR collide with chrome ? Probably a way to customize the id in upstream would be better.

Comment thread atom/browser/ui/tray_icon_gtk.cc Outdated
icon_.reset(new libgtkui::Gtk2StatusIcon(image.AsImageSkia(), toolTip));
}
icon_.reset(
LinuxUI::instance()->CreateLinuxStatusIcon(image.AsImageSkia(), toolTip));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

views::LinuxUI

@nornagon

nornagon commented Nov 2, 2018

Copy link
Copy Markdown
Contributor Author

ah, yes, you're right, i think those will collide. I'll look into making it customizable upstream.

@nornagon

nornagon commented Nov 5, 2018

Copy link
Copy Markdown
Contributor Author

Merged a change to make this customizable upstream https://chromium-review.googlesource.com/c/chromium/src/+/1315840, will backport and build on top of that.

@deepak1556 deepak1556 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@nornagon

nornagon commented Nov 6, 2018

Copy link
Copy Markdown
Contributor Author

Merging even though MAS failure because a) it's flake and b) this PR doesn't touch any mac code.

@nornagon
nornagon merged commit 934a7fc into master Nov 6, 2018
@release-clerk

release-clerk Bot commented Nov 6, 2018

Copy link
Copy Markdown

No Release Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants