Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSubstitute chromium support urls #155
Conversation
|
|
||
| namespace chrome { | ||
|
|
||
| const char kAutomaticSettingsResetLearnMoreURL[] = |
This comment has been minimized.
This comment has been minimized.
bridiver
Jun 11, 2018
Collaborator
can we rewrite/redirect these urls instead of patching them? We have done that in other cases.
This comment has been minimized.
This comment has been minimized.
yrliou
Jun 11, 2018
Author
Member
Sorry, I'm not sure if I understood your comment correctly, I did copy the file into src/brave to rewrite these learn more urls instead of patching?
|
Per offline discussion, rewriting the file is more reasonable than redirecting URLs because those URLs should not be redirected in other user scenarios and also we should avoid user seeing the original URL when they hover over those support links. |
|
This copying strategy has one problem - dependency check. |
|
@simonhong if there's a problem with that then we need to fix how the chromium_src overrides work |
|
Did a test by modifying one url in the copied url_constants.cc and run |
|
It's interesting. how |
|
@simonhong I don't remember the exact details of how we implemented it in brave-core, but we setup chromium_src to allow overrides of chromium files. |
|
I need to study more about how |
|
I don't have any objection if this approach works well |
| "https://community.brave.com"; | ||
|
|
||
| const char kChromeHelpViaKeyboardURL[] = | ||
| #if defined(OS_CHROMEOS) |
This comment has been minimized.
This comment has been minimized.
bridiver
Jun 14, 2018
Collaborator
forgot to mention that you can just remove the GOOGLE_CHROME_BUILD stuff
| #endif // defined(OS_CHROMEOS) | ||
|
|
||
| const char kChromeHelpViaMenuURL[] = | ||
| #if defined(OS_CHROMEOS) |
yrliou commentedJun 11, 2018
•
edited by simonhong
This PR substitutes chromium support links to brave's community page, it's a part of solving brave/brave-browser#12.
commands used in url_constants.cc:
Then,
kUpgradeHelpCenterBaseURLis changed manually.Submitter Checklist:
git rebase -ito squash commits (if needed).Test Plan:
Reviewer Checklist: