| 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..b9795b57c85a863197cf3ee6be9f65c36ae5b30c 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::SOURCE_DEVICES_PAGE);
|
| }
|
|
|
| void LocalDiscoveryUIHandler::StartRegisterHTTP(
|
|
|