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

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller.mm

Issue 7511024: [Sync] [Mac] Show sync menu item in app menu even in incognito mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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/browser/ui/browser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/browser_window_controller.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.mm b/chrome/browser/ui/cocoa/browser_window_controller.mm
index 6df4d70f2622ae63fd30ad400b4c6f103a8af8ca..4eeabcd0536843942b2115a5230a5fbc5c60ebab 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller.mm
@@ -1023,10 +1023,13 @@ typedef NSInteger NSWindowAnimationBehavior;
}
break;
}
- case IDC_SYNC_BOOKMARKS:
- enable &= browser_->profile()->IsSyncAccessible();
- sync_ui_util::UpdateSyncItem(item, enable, browser_->profile());
+ case IDC_SYNC_BOOKMARKS: {
+ Profile* original_profile =
+ browser_->profile()->GetOriginalProfile();
+ enable &= original_profile->IsSyncAccessible();
+ sync_ui_util::UpdateSyncItem(item, enable, original_profile);
Scott Hess - ex-Googler 2011/08/04 22:28:20 The only other place UpdateSyncItem() is called fr
break;
+ }
default:
// Special handling for the contents of the Text Encoding submenu. On
// Mac OS, instead of enabling/disabling the top-level menu item, we
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698