| Index: chrome/browser/ui/browser.cc
|
| ===================================================================
|
| --- chrome/browser/ui/browser.cc (revision 92222)
|
| +++ chrome/browser/ui/browser.cc (working copy)
|
| @@ -2463,6 +2463,7 @@
|
| case IDC_INTERNET_OPTIONS: OpenInternetOptionsDialog(); break;
|
| case IDC_LANGUAGE_OPTIONS: OpenLanguageOptionsDialog(); break;
|
| #endif
|
| + case IDC_SHOW_SYNC_SETUP: ShowSyncSetup(); break;
|
|
|
| default:
|
| LOG(WARNING) << "Received Unimplemented Command: " << id;
|
| @@ -3862,6 +3863,7 @@
|
| command_updater_.UpdateCommandEnabled(IDC_SYSTEM_OPTIONS, true);
|
| command_updater_.UpdateCommandEnabled(IDC_INTERNET_OPTIONS, true);
|
| #endif
|
| + command_updater_.UpdateCommandEnabled(IDC_SHOW_SYNC_SETUP, true);
|
|
|
| ExtensionService* extension_service = profile()->GetExtensionService();
|
| bool enable_extensions =
|
| @@ -4754,3 +4756,11 @@
|
| BookmarkBar::DONT_ANIMATE_STATE_CHANGE;
|
| window_->BookmarkBarStateChanged(animate_type);
|
| }
|
| +
|
| +void Browser::ShowSyncSetup() {
|
| + ProfileSyncService* service = profile()->GetProfileSyncService();
|
| + if (service->HasSyncSetupCompleted())
|
| + ShowOptionsTab(chrome::kSyncSetupSubPage);
|
| + else
|
| + profile()->GetProfileSyncService()->ShowLoginDialog();
|
| +}
|
|
|