Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5531)

Unified Diff: chrome/browser/ui/sync/one_click_signin_bubble_links_delegate.cc

Issue 18558009: Fix flaky test OneClickSigninBubbleViewBrowserTest::ShowBubble (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/sync/one_click_signin_bubble_links_delegate.cc
diff --git a/chrome/browser/ui/sync/one_click_signin_bubble_links_delegate.cc b/chrome/browser/ui/sync/one_click_signin_bubble_links_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..988891dc95a9550a079b441082c4bc69732f6100
--- /dev/null
+++ b/chrome/browser/ui/sync/one_click_signin_bubble_links_delegate.cc
@@ -0,0 +1,31 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#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/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(&params);
+}
+
+void OneClickSigninBubbleLinksDelegate::OnAdvancedLinkClicked() {
+ chrome::NavigateParams params(browser_,
+ GURL(chrome::kChromeUISettingsURL),
+ content::PAGE_TRANSITION_LINK);
+ params.disposition = CURRENT_TAB;
+ chrome::Navigate(&params);
+}

Powered by Google App Engine
This is Rietveld 408576698