blob: 17b383f4ad0b33bcb0b6c4fd7e8ab59c1c72bdf9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Fix building without one click signin
--- chrome/browser/ui/sync/one_click_signin_links_delegate_impl.cc.orig
+++ chrome/browser/ui/sync/one_click_signin_links_delegate_impl.cc
@@ -16,9 +16,4 @@ OneClickSigninLinksDelegateImpl::OneClic
OneClickSigninLinksDelegateImpl::~OneClickSigninLinksDelegateImpl() {}
void OneClickSigninLinksDelegateImpl::OnLearnMoreLinkClicked(bool is_dialog) {
- NavigateParams params(browser_, GURL(chrome::kChromeSyncLearnMoreURL),
- ui::PAGE_TRANSITION_LINK);
- params.disposition = is_dialog ? WindowOpenDisposition::NEW_WINDOW
- : WindowOpenDisposition::NEW_FOREGROUND_TAB;
- Navigate(¶ms);
}
--- chrome/browser/ui/webui/signin/inline_login_handler_impl.cc.orig
+++ chrome/browser/ui/webui/signin/inline_login_handler_impl.cc
@@ -360,6 +360,7 @@ void InlineSigninHelper::OnClientOAuthSu
const ClientOAuthResult& result,
Profile* /*profile*/,
Profile::CreateStatus /*status*/) {
+#if BUILDFLAG(ENABLE_ONE_CLICK_SIGNIN)
HandlerSigninReason reason = GetHandlerSigninReason(current_url_);
if (reason == HandlerSigninReason::kFetchLstOnly) {
// Constants are only available on Windows for the Google Credential
@@ -436,6 +437,7 @@ void InlineSigninHelper::OnClientOAuthSu
}
base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, this);
+#endif
}
void InlineSigninHelper::UntrustedSigninConfirmed(
|