summaryrefslogtreecommitdiff
path: root/www/chromium-uc/patches/core/ungoogled-chromium/fix-building-without-one-click-signin.patch
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium-uc/patches/core/ungoogled-chromium/fix-building-without-one-click-signin.patch')
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/fix-building-without-one-click-signin.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/fix-building-without-one-click-signin.patch b/www/chromium-uc/patches/core/ungoogled-chromium/fix-building-without-one-click-signin.patch
new file mode 100644
index 0000000..17b383f
--- /dev/null
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/fix-building-without-one-click-signin.patch
@@ -0,0 +1,32 @@
1# Fix building without one click signin
2
3--- chrome/browser/ui/sync/one_click_signin_links_delegate_impl.cc.orig
4+++ chrome/browser/ui/sync/one_click_signin_links_delegate_impl.cc
5@@ -16,9 +16,4 @@ OneClickSigninLinksDelegateImpl::OneClic
6 OneClickSigninLinksDelegateImpl::~OneClickSigninLinksDelegateImpl() {}
7
8 void OneClickSigninLinksDelegateImpl::OnLearnMoreLinkClicked(bool is_dialog) {
9- NavigateParams params(browser_, GURL(chrome::kChromeSyncLearnMoreURL),
10- ui::PAGE_TRANSITION_LINK);
11- params.disposition = is_dialog ? WindowOpenDisposition::NEW_WINDOW
12- : WindowOpenDisposition::NEW_FOREGROUND_TAB;
13- Navigate(&params);
14 }
15--- chrome/browser/ui/webui/signin/inline_login_handler_impl.cc.orig
16+++ chrome/browser/ui/webui/signin/inline_login_handler_impl.cc
17@@ -360,6 +360,7 @@ void InlineSigninHelper::OnClientOAuthSu
18 const ClientOAuthResult& result,
19 Profile* /*profile*/,
20 Profile::CreateStatus /*status*/) {
21+#if BUILDFLAG(ENABLE_ONE_CLICK_SIGNIN)
22 HandlerSigninReason reason = GetHandlerSigninReason(current_url_);
23 if (reason == HandlerSigninReason::kFetchLstOnly) {
24 // Constants are only available on Windows for the Google Credential
25@@ -436,6 +437,7 @@ void InlineSigninHelper::OnClientOAuthSu
26 }
27
28 base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, this);
29+#endif
30 }
31
32 void InlineSigninHelper::UntrustedSigninConfirmed(