Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(949)

Unified Diff: chrome/browser/app_controller_mac.mm

Issue 9456031: Remove PSS::ShowLoginDialog() and obsolete IDC_SYNC_BOOKMARKS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review feedback. Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/nibs/MainMenu.xib ('k') | chrome/browser/extensions/app_notify_channel_setup.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/app_controller_mac.mm
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm
index 46a8e0b40f6f223011c9e910fa6916b5807c9258..f18fc40642bb184bd76e408b83f7c201ce032794 100644
--- a/chrome/browser/app_controller_mac.mm
+++ b/chrome/browser/app_controller_mac.mm
@@ -767,7 +767,7 @@ const AEEventClass kAECloudPrintUninstallClass = 'GCPu';
// dialog.
enable = [self keyWindowIsNotModal] || ([NSApp modalWindow] == nil);
break;
- case IDC_SYNC_BOOKMARKS: {
+ case IDC_SHOW_SYNC_SETUP: {
Profile* lastProfile = [self lastProfile];
// The profile may be NULL during shutdown -- see
// http://code.google.com/p/chromium/issues/detail?id=43048 .
@@ -906,21 +906,11 @@ const AEEventClass kAECloudPrintUninstallClass = 'GCPu';
else
Browser::OpenHelpWindow(lastProfile);
break;
- case IDC_SYNC_BOOKMARKS:
- // The profile may be NULL during shutdown -- see
- // http://code.google.com/p/chromium/issues/detail?id=43048 .
- //
- // TODO(akalin,viettrungluu): Figure out whether this method can
- // be prevented from being called if lastProfile is NULL.
- if (!lastProfile) {
- LOG(WARNING) << "NULL lastProfile detected -- not doing anything";
- break;
- }
- // TODO(akalin): Add a constant to denote starting sync from the
- // main menu and use that instead of START_FROM_WRENCH.
- sync_ui_util::OpenSyncMyBookmarksDialog(
- lastProfile, ActivateBrowser(lastProfile),
- ProfileSyncService::START_FROM_WRENCH);
+ case IDC_SHOW_SYNC_SETUP:
+ if (Browser* browser = ActivateBrowser(lastProfile))
+ browser->ShowSyncSetup();
+ else
+ Browser::OpenSyncSetupWindow(lastProfile);
break;
case IDC_TASK_MANAGER:
content::RecordAction(UserMetricsAction("TaskManager"));
@@ -1045,7 +1035,7 @@ const AEEventClass kAECloudPrintUninstallClass = 'GCPu';
menuState_->UpdateCommandEnabled(IDC_HELP_PAGE, true);
menuState_->UpdateCommandEnabled(IDC_IMPORT_SETTINGS, true);
menuState_->UpdateCommandEnabled(IDC_FEEDBACK, true);
- menuState_->UpdateCommandEnabled(IDC_SYNC_BOOKMARKS, true);
+ menuState_->UpdateCommandEnabled(IDC_SHOW_SYNC_SETUP, true);
menuState_->UpdateCommandEnabled(IDC_TASK_MANAGER, true);
}
« no previous file with comments | « chrome/app/nibs/MainMenu.xib ('k') | chrome/browser/extensions/app_notify_channel_setup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698