Index: chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc |
diff --git a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc |
index 6f6e53c32315766aafbed87dd3b57c9d252a9bcd..4a9518e31af56ee569205b26e40b54313406205b 100644 |
--- a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc |
+++ b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc |
@@ -27,6 +27,7 @@ |
#include "chrome/browser/signin/signin_promo.h" |
#include "chrome/browser/ui/browser_finder.h" |
#include "chrome/browser/ui/browser_tabstrip.h" |
+#include "chrome/browser/ui/chrome_pages.h" |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/pref_names.h" |
#include "chrome/grit/generated_resources.h" |
@@ -299,13 +300,7 @@ void LocalDiscoveryUIHandler::HandleShowSyncUI( |
Browser* browser = chrome::FindBrowserWithWebContents( |
web_ui()->GetWebContents()); |
DCHECK(browser); |
- |
- GURL url(signin::GetPromoURL(signin::SOURCE_DEVICES_PAGE, |
- true)); // auto close after success. |
- |
- browser->OpenURL( |
- content::OpenURLParams(url, content::Referrer(), SINGLETON_TAB, |
- ui::PAGE_TRANSITION_AUTO_BOOKMARK, false)); |
+ chrome::ShowBrowserSignin(browser, signin_metrics::SOURCE_DEVICES_PAGE); |
} |
void LocalDiscoveryUIHandler::StartRegisterHTTP( |