-
Notifications
You must be signed in to change notification settings - Fork 965
Fix 3650: Enable google sign in for extensions #5616
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
Conversation
8fc7ff4
to
407cbcb
Compare
@@ -553,6 +553,7 @@ void GaiaCookieManagerService::AddAccountToCookieWithToken( | ||
bool GaiaCookieManagerService::ListAccounts( | ||
std::vector<gaia::ListedAccount>* accounts, | ||
std::vector<gaia::ListedAccount>* signed_out_accounts) { |
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.
This removes request to accounts.google.com
on start, it is not required for enabling google sign in.
04c3b7f
to
2c5d065
Compare
app/brave_generated_resources.grd
Outdated
@@ -403,7 +403,7 @@ By installing this extension, you are agreeing to the Google Widevine Terms of U | |||
Show the number of blocked items on the Shields icon | |||
</message> | |||
<message name="IDS_SETTINGS_BRAVE_SHIELDS_GOOGLE_LOGIN_LABEL" desc="Label for a switch control which allows Google social buttons to be enabled/disabled"> | |||
Allow Google login buttons on third party sites | |||
Allow Google login in extensions and third party sites |
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.
suggest adding a link to a page (wiki?) explaining what google login in extensions entails
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.
@diracdeltas - This is the wiki: https://developer.chrome.com/apps/identity - I can add it as a comment in the code. Or do you want me to create a separate brave wiki for it?
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.
@jumde i mean add a page that explains to the user what this option means and what data gets sent to Google. i think most people understand what Google login in 3p sites means but it's not clear what gets sent to google when you enable google login in extensionos.
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.
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.
wiki page looks good, can you add an info link to it next to the setting?
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.
91ee1bf
to
984be74
Compare
9d2f11d
to
a5753f0
Compare
|
||
// Ensures that requests to accounts.google.com is not initiated at startup if | ||
// google login for extensions is enabled | ||
#define BRAVE_NO_GAIA_REQUEST_ON_STARTUP \ |
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.
Pretty sure that these defines should be named based on the class/function they're in, instead of by their use, but @bridiver can verify.
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.
LGTM modulo minor comments.
chromium_src/components/sync/driver/sync_session_durations_metrics_recorder.cc
Outdated
Show resolved
Hide resolved
6825e6c
to
80c9755
Compare
Does anyone know if this will resolve #5197 ? If so, when it is likely to be released? Many thanks! |
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.
see comments
component.properties = component.properties || {} | ||
Object.assign(component.properties, allPropertiesMap[moduleName]) |
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.
I think this would be cleaner to understand with
component.properties = {
...component.properties,
...allPropertiesMap[moduleName]
}
28ed4f8
to
5d0f022
Compare
@@ -73,6 +88,18 @@ export function RegisterPolymerComponentBehaviors(behaviorsMap) { | |||
Object.assign(allBehaviorsMap, behaviorsMap) | |||
} | |||
|
|||
export function RegisterPolymerComponentProperties(propertiesMap) { | |||
if (debug) { | |||
console.error('RegisterPolymerComponentProperties', ...Object.keys(propertiesMap)) |
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.
IMO would be better to have console.debug (or console.log) here so that we don't have things that look like errors in the long list of log entries that occur when debug
flag is on
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.
@petemill - updated
@@ -18,6 +18,8 @@ if (debug) { | |||
} | |||
|
|||
const allBehaviorsMap = {} | |||
const allPropertiesMap = {} | |||
const missingComponentsMap = {} |
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.
I think this is hard to understand and follow what it's used for.
How about calling it something explicit like componentPropertyModifications
or propertyModificationComponentBuffer
and a comment stating that components are held there in case RegisterPolymerComponentProperties
is called after the component is registered?
RegisterStyleOverride('cr-button', CrButtonStyleTemplate) | ||
|
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.
did you mean to add a blank line?
334b13d
to
b07893f
Compare
chromium_src/BUILD.gn
Outdated
@@ -5,6 +5,9 @@ | |||
|
|||
source_set("browser") { | |||
sources = [] | |||
deps = [ | |||
"//brave/chromium_src/chrome/app" |
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.
I think //brave/chromium_src/chrome/app
should not be added here because it is higher layer than chrome/browser
, chrome/common
or chrome/renderer
.
Instead, how about adding //brave/chromium_src/chrome/app
to //brave:browser_dependencies
? @jumde @bridiver
When I needed to add new dependencies to brave_main_delegate.cc
, I added them directly to //brave:browser_dependencies
. but I think I should move them into //brave/chromium_src/chrome/app
later.
BUILD.gn
Outdated
@@ -38,6 +38,7 @@ if (!is_ios) { | |||
"browser", | |||
"chromium_src:browser", | |||
"common", | |||
"//brave/chromium_src/chrome/app" |
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.
nit: to align with others, "chromium_src/chrome/app
would be better?
Hmm, we've used absolute/relative path in a mix :)
CI fails with known issues being fixed here: |
Hi! I have been away for a while and I was wondering if (a) Tabs Outliner now works (b) if so, which version of Brave can I use with it? Many thanks! |
@bwims - Can you try using Tab Outliner with the latest version. You'll have to enable There is some additional work required to fix all Paid/Premium extensions, its being tracked here: brave/brave-browser#10622 |
It half works. It lets me use the automatic backup paid feature but not others. The main problem is still as described on I don't think it is related to brave/brave-browser#10622 Oh well! |
Resolves brave/brave-browser#3650
Resolves brave/brave-browser#4672
Security Review: https://github.com/brave/security/issues/157 - (approved)
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
Allow Google login buttons on third party sites
Reviewer Checklist:
After-merge Checklist:
changes has landed on.