| Index: chrome/browser/sync/sync_ui_util.cc
|
| diff --git a/chrome/browser/sync/sync_ui_util.cc b/chrome/browser/sync/sync_ui_util.cc
|
| index 928a4f301748b32e3ab875122d2b4ee25b8e3fc3..f1ff6ae533b1f36dbef42017b4bedc43fde299c6 100644
|
| --- a/chrome/browser/sync/sync_ui_util.cc
|
| +++ b/chrome/browser/sync/sync_ui_util.cc
|
| @@ -19,6 +19,8 @@
|
| #include "chrome/browser/sync/sessions/session_state.h"
|
| #include "chrome/browser/ui/browser.h"
|
| #include "chrome/browser/ui/browser_window.h"
|
| +#include "chrome/browser/ui/webui/signin/login_ui_service.h"
|
| +#include "chrome/browser/ui/webui/signin/login_ui_service_factory.h"
|
| #include "chrome/common/chrome_switches.h"
|
| #include "chrome/common/chrome_version_info.h"
|
| #include "chrome/common/net/gaia/google_service_auth_error.h"
|
| @@ -449,30 +451,6 @@ string16 GetSyncMenuLabel(ProfileSyncService* service) {
|
| return l10n_util::GetStringUTF16(IDS_SYNC_START_SYNC_BUTTON_LABEL);
|
| }
|
|
|
| -void OpenSyncMyBookmarksDialog(Profile* profile,
|
| - Browser* browser,
|
| - ProfileSyncService::SyncEventCodes code) {
|
| - ProfileSyncService* service =
|
| - ProfileSyncServiceFactory::GetInstance()->GetForProfile(
|
| - profile->GetOriginalProfile());
|
| - if (!service || !service->IsSyncEnabled()) {
|
| - LOG(DFATAL) << "OpenSyncMyBookmarksDialog called with sync disabled";
|
| - return;
|
| - }
|
| -
|
| - if (service->HasSyncSetupCompleted()) {
|
| - bool create_window = browser == NULL;
|
| - if (create_window)
|
| - browser = Browser::Create(profile);
|
| - browser->ShowOptionsTab(chrome::kPersonalOptionsSubPage);
|
| - if (create_window)
|
| - browser->window()->Show();
|
| - } else {
|
| - service->ShowLoginDialog();
|
| - ProfileSyncService::SyncEvent(code); // UMA stats
|
| - }
|
| -}
|
| -
|
| void AddBoolSyncDetail(ListValue* details,
|
| const std::string& stat_name,
|
| bool stat_value) {
|
|
|