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

Unified Diff: chrome/browser/ui/browser.cc

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
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 447257d4becd99f4f94e022f7811c15e9ba3b80c..87b6c89875a361c362733cd4de2c3a5fbb174870 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -3761,7 +3761,7 @@ void Browser::OnStateChanged() {
#endif
command_updater_.UpdateCommandEnabled(IDC_SYNC_BOOKMARKS,
- show_main_ui && profile_->IsSyncAccessible());
+ show_main_ui && profile_->GetOriginalProfile()->IsSyncAccessible());
}
///////////////////////////////////////////////////////////////////////////////
@@ -4026,7 +4026,7 @@ void Browser::UpdateCommandsForFullscreenMode(bool is_fullscreen) {
browser_defaults::bookmarks_enabled && show_main_ui);
command_updater_.UpdateCommandEnabled(IDC_IMPORT_SETTINGS, show_main_ui);
command_updater_.UpdateCommandEnabled(IDC_SYNC_BOOKMARKS,
- show_main_ui && profile_->IsSyncAccessible());
+ show_main_ui && profile_->GetOriginalProfile()->IsSyncAccessible());
command_updater_.UpdateCommandEnabled(IDC_OPTIONS, show_main_ui);
command_updater_.UpdateCommandEnabled(IDC_EDIT_SEARCH_ENGINES, show_main_ui);

Powered by Google App Engine
This is Rietveld 408576698