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

Side by Side Diff: chrome/browser/app_controller_mac.mm

Issue 6177002: Flags: Enable Tabbed Options by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Line length fix. Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/chromeos/login/login_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "chrome/browser/app_controller_mac.h" 5 #import "chrome/browser/app_controller_mac.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/l10n_util_mac.h" 8 #include "app/l10n_util_mac.h"
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1113 object:window]; 1113 object:window];
1114 // PreferencesWindowControllers are autoreleased in 1114 // PreferencesWindowControllers are autoreleased in
1115 // -[PreferencesWindowController windowWillClose:]. 1115 // -[PreferencesWindowController windowWillClose:].
1116 prefsController_ = nil; 1116 prefsController_ = nil;
1117 } 1117 }
1118 1118
1119 // Show the preferences window, or bring it to the front if it's already 1119 // Show the preferences window, or bring it to the front if it's already
1120 // visible. 1120 // visible.
1121 - (IBAction)showPreferences:(id)sender { 1121 - (IBAction)showPreferences:(id)sender {
1122 const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess(); 1122 const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess();
1123 if (parsed_command_line.HasSwitch(switches::kEnableTabbedOptions)) { 1123 if (!parsed_command_line.HasSwitch(switches::kDisableTabbedOptions)) {
1124 if (Browser* browser = ActivateBrowser([self defaultProfile])) { 1124 if (Browser* browser = ActivateBrowser([self defaultProfile])) {
1125 // Show options tab in the active browser window. 1125 // Show options tab in the active browser window.
1126 browser->ShowOptionsTab(chrome::kDefaultOptionsSubPage); 1126 browser->ShowOptionsTab(chrome::kDefaultOptionsSubPage);
1127 } else { 1127 } else {
1128 // No browser window, so create one for the options tab. 1128 // No browser window, so create one for the options tab.
1129 Browser::OpenOptionsWindow([self defaultProfile]); 1129 Browser::OpenOptionsWindow([self defaultProfile]);
1130 } 1130 }
1131 } else { 1131 } else {
1132 [self showPreferencesWindow:sender 1132 [self showPreferencesWindow:sender
1133 page:OPTIONS_PAGE_DEFAULT 1133 page:OPTIONS_PAGE_DEFAULT
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 [appController showPreferencesWindow:nil page:page profile:profile]; 1261 [appController showPreferencesWindow:nil page:page profile:profile];
1262 } 1262 }
1263 1263
1264 namespace app_controller_mac { 1264 namespace app_controller_mac {
1265 1265
1266 bool IsOpeningNewWindow() { 1266 bool IsOpeningNewWindow() {
1267 return g_is_opening_new_window; 1267 return g_is_opening_new_window;
1268 } 1268 }
1269 1269
1270 } // namespace app_controller_mac 1270 } // namespace app_controller_mac
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/chromeos/login/login_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698