Add a minor text member to ui::MenuModel.
[chromium-blink-merge.git] / chrome / browser / ui / sync / one_click_signin_bubble_links_delegate.cc
blob988891dc95a9550a079b441082c4bc69732f6100
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/sync/one_click_signin_bubble_links_delegate.h"
7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/browser_navigator.h"
9 #include "chrome/common/url_constants.h"
11 OneClickSigninBubbleLinksDelegate::OneClickSigninBubbleLinksDelegate(
12 Browser* browser) : browser_(browser) {}
14 OneClickSigninBubbleLinksDelegate::~OneClickSigninBubbleLinksDelegate() {}
16 void OneClickSigninBubbleLinksDelegate::OnLearnMoreLinkClicked(
17 bool is_dialog) {
18 chrome::NavigateParams params(browser_,
19 GURL(chrome::kChromeSyncLearnMoreURL),
20 content::PAGE_TRANSITION_LINK);
21 params.disposition = is_dialog ? NEW_WINDOW : NEW_FOREGROUND_TAB;
22 chrome::Navigate(&params);
25 void OneClickSigninBubbleLinksDelegate::OnAdvancedLinkClicked() {
26 chrome::NavigateParams params(browser_,
27 GURL(chrome::kChromeUISettingsURL),
28 content::PAGE_TRANSITION_LINK);
29 params.disposition = CURRENT_TAB;
30 chrome::Navigate(&params);