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

Unified Diff: chrome/browser/ui/browser_command_controller_base.h

Issue 11906008: Make Mac menu code obey incognito availability. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test fix Created 7 years, 11 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_command_controller_base.h
diff --git a/chrome/browser/ui/browser_command_controller_base.h b/chrome/browser/ui/browser_command_controller_base.h
new file mode 100644
index 0000000000000000000000000000000000000000..72761582f614810e0ff13e305c66d357f72cd7cb
--- /dev/null
+++ b/chrome/browser/ui/browser_command_controller_base.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_BROWSER_COMMAND_CONTROLLER_BASE_H_
+#define CHROME_BROWSER_UI_BROWSER_COMMAND_CONTROLLER_BASE_H_
+
+class CommandUpdater;
+class Profile;
+
+namespace chrome {
+
+class BrowserCommandControllerBase {
Robert Sesek 2013/01/15 22:27:18 Why split this up? And it's not really a Base clas
Avi (use Gerrit) 2013/01/15 22:35:06 I need to split this because AppController(Mac) ne
Robert Sesek 2013/01/15 22:44:37 Why can't they just be static on the main BrowserC
Avi (use Gerrit) 2013/01/15 22:49:30 It felt awkward to have two random things that App
+ public:
+ // Update commands whose state depends on incognito mode availability.
+ static void UpdateCommandsForIncognitoAvailability(
+ CommandUpdater* command_updater,
+ Profile* profile);
+
+ // Updates the open-file state (Mac Only).
+ static void UpdateOpenFileState(CommandUpdater* command_updater);
+};
+
+} // namespace chrome
+
+#endif // CHROME_BROWSER_UI_BROWSER_COMMAND_CONTROLLER_BASE_H_

Powered by Google App Engine
This is Rietveld 408576698