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

Unified Diff: chrome/browser/app_controller_mac.mm

Issue 2689383002: Commands should have consistent behaviors across different modes
Patch Set: Created 3 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
Index: chrome/browser/app_controller_mac.mm
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm
index 4f248343f7f799dd5ff33036365c7cdfb5f55228..cdc25fceb9aee0dc1c8867ca4131894d68f7dfa1 100644
--- a/chrome/browser/app_controller_mac.mm
+++ b/chrome/browser/app_controller_mac.mm
@@ -1497,7 +1497,7 @@ class AppControllerProfileObserver : public ProfileAttributesStorage::Observer {
chrome::BrowserCommandController::
UpdateSharedCommandsForIncognitoAvailability(
- menuState_.get(), lastProfile_);
+ menuState_.get(), lastProfile_, false);
msw 2017/02/14 22:34:50 How do you know the relevant window is not fullscr
Hzj_jie 2017/02/15 02:00:49 AFAIK, menuState_ here is the state of menu items.
msw 2017/02/15 18:40:51 Sorry, but I don't understand how your reply answe
Hzj_jie 2017/02/15 21:20:16 No, I do not know, and I do not think we are talki
profilePrefRegistrar_.reset(new PrefChangeRegistrar());
profilePrefRegistrar_->Init(lastProfile_->GetPrefs());
profilePrefRegistrar_->Add(
@@ -1505,7 +1505,8 @@ class AppControllerProfileObserver : public ProfileAttributesStorage::Observer {
base::Bind(&chrome::BrowserCommandController::
UpdateSharedCommandsForIncognitoAvailability,
menuState_.get(),
- lastProfile_));
+ lastProfile_,
+ false));
}
- (void)applicationDidChangeScreenParameters:(NSNotification*)notification {
« no previous file with comments | « no previous file | chrome/browser/ui/browser_command_controller.h » ('j') | chrome/browser/ui/browser_command_controller.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698