Index: chrome/browser/ui/webui/options/sync_setup_handler.cc |
diff --git a/chrome/browser/ui/webui/options/sync_setup_handler.cc b/chrome/browser/ui/webui/options/sync_setup_handler.cc |
index cca522af2f1382f8988bc84b6dec75ea4fedad71..c4f119d401627870381160fe1abce4d69be87e22 100644 |
--- a/chrome/browser/ui/webui/options/sync_setup_handler.cc |
+++ b/chrome/browser/ui/webui/options/sync_setup_handler.cc |
@@ -11,6 +11,7 @@ |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/sync/profile_sync_service.h" |
#include "chrome/browser/sync/sync_setup_flow.h" |
+#include "chrome/browser/ui/browser_list.h" |
#include "chrome/common/url_constants.h" |
#include "content/browser/tab_contents/tab_contents.h" |
#include "grit/chromium_strings.h" |
@@ -332,6 +333,11 @@ void SyncSetupHandler::Focus() { |
web_ui_->tab_contents()->Activate(); |
} |
+void SyncSetupHandler::ShowSyncSetup(Profile* profile) { |
+ BrowserList::GetLastActiveWithProfile(profile)->ShowOptionsTab( |
+ chrome::kSyncSetupSubPage); |
+} |
+ |
void SyncSetupHandler::OnDidClosePage(const ListValue* args) { |
if (flow_) { |
flow_->OnDialogClosed(std::string()); |