New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: eliminate brightray #15240
Conversation
9e2dc66
to
efbc9fd
Compare
2a367f4
to
104ecdc
Compare
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 devtools components are already available as separate PR, can you also split media
, net
and rest into separate PR's, we don't have tests for any of the startup components, would be easier to review. Thanks!
@deepak1556 will split the PR, need to merge the devtools one first though. |
104ecdc
to
a6780d4
Compare
@deepak1556 separated part of this into #15288 |
e7f2f57
to
2b62603
Compare
ba956f4
to
ef084df
Compare
9c188cb
to
c855466
Compare
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.
🎉
c855466
to
dcf6ce9
Compare
👏 Solid effort, A+. Thank you so much. |
@deepak1556 this is the last PR, should be just leftovers |
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.
Awesome, thanks for the cleanup @miniak
|
||
#include "base/files/file_path.h" | ||
#include "base/mac/bundle_locations.h" | ||
#include "base/mac/foundation_util.h" | ||
#include "base/path_service.h" | ||
#include "base/strings/string_util.h" | ||
|
||
namespace brightray { | ||
namespace atom { | ||
|
||
namespace { | ||
|
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.
A possible TODO for future, could rewrite the check for Helper.app path with base::mac::IsBackgroundOnlyProcess
const char kDevToolsBoundsPref[] = "brightray.devtools.bounds"; | ||
const char kDevToolsZoomPref[] = "brightray.devtools.zoom"; | ||
const char kDevToolsPreferences[] = "brightray.devtools.preferences"; | ||
const char kDevToolsBoundsPref[] = "electron.devtools.bounds"; |
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 key name changes will break existing preferences, but since it will be in next major release, guess its fine.
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.
That and these are purely used for devtools
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 first change is for generation of media device id, but since its generated from a random value. We can freely change the name.
And the rest are devtools related. But even if its devtools related api, I don't think we can break them unless its in a major/minor release ? They are not a blocker for this PR, just wanted to highlight the result of some changes.
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.
Yeah was just agreeing we can break these in the next major easily because they're barely app facing just being keys for devtools prefs
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.
🎉
@zcbenz can you please approve for BrowserView reviewers? Thanks! |
@alexeykuzmin can you please merge? |
Release Notes Persisted
|
Description of Change
This PR definitely removes all traces of
brightray
.Checklist
npm test
passesRelease Notes
Notes: Merged code in
brightray
intoatom
.