This source file includes following definitions.
- OnLearnMoreLinkClicked
- OnAdvancedLinkClicked
#include "chrome/browser/ui/sync/one_click_signin_bubble_links_delegate.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_navigator.h"
#include "chrome/browser/ui/chrome_pages.h"
#include "chrome/common/url_constants.h"
OneClickSigninBubbleLinksDelegate::OneClickSigninBubbleLinksDelegate(
Browser* browser) : browser_(browser) {}
OneClickSigninBubbleLinksDelegate::~OneClickSigninBubbleLinksDelegate() {}
void OneClickSigninBubbleLinksDelegate::OnLearnMoreLinkClicked(
bool is_dialog) {
chrome::NavigateParams params(browser_,
GURL(chrome::kChromeSyncLearnMoreURL),
content::PAGE_TRANSITION_LINK);
params.disposition = is_dialog ? NEW_WINDOW : NEW_FOREGROUND_TAB;
chrome::Navigate(¶ms);
}
void OneClickSigninBubbleLinksDelegate::OnAdvancedLinkClicked() {
chrome::ShowSettingsSubPage(browser_, chrome::kSyncSetupSubPage);
}