blob: 4e834c71662aa1c733e082ec5a7c2805a92efd80 (
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
--- a/chrome/browser/ui/sync/one_click_signin_links_delegate_impl.cc
+++ b/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);
}
--- a/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc
+++ b/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc
@@ -342,6 +342,7 @@ void InlineSigninHelper::OnClientOAuthSu
void InlineSigninHelper::OnClientOAuthSuccessAndBrowserOpened(
const ClientOAuthResult& result,
Profile* /*profile*/) {
+#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
@@ -418,6 +419,7 @@ void InlineSigninHelper::OnClientOAuthSu
}
base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, this);
+#endif
}
void InlineSigninHelper::UntrustedSigninConfirmed(
|