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

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

Issue 207054: Have the dock menu "New Incognito Window" item always open a new... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 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 | « AUTHORS ('k') | no next file » | 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_mac.h" 7 #include "app/l10n_util_mac.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/mac_util.h" 9 #include "base/mac_util.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 - (void)commandDispatch:(id)sender { 444 - (void)commandDispatch:(id)sender {
445 Profile* defaultProfile = [self defaultProfile]; 445 Profile* defaultProfile = [self defaultProfile];
446 446
447 NSInteger tag = [sender tag]; 447 NSInteger tag = [sender tag];
448 switch (tag) { 448 switch (tag) {
449 case IDC_NEW_TAB: 449 case IDC_NEW_TAB:
450 case IDC_NEW_WINDOW: 450 case IDC_NEW_WINDOW:
451 Browser::OpenEmptyWindow(defaultProfile); 451 Browser::OpenEmptyWindow(defaultProfile);
452 break; 452 break;
453 case IDC_NEW_INCOGNITO_WINDOW: 453 case IDC_NEW_INCOGNITO_WINDOW:
454 Browser::OpenURLOffTheRecord(defaultProfile, GURL()); 454 Browser::OpenEmptyWindow(defaultProfile->GetOffTheRecordProfile());
455 break; 455 break;
456 case IDC_RESTORE_TAB: 456 case IDC_RESTORE_TAB:
457 Browser::OpenWindowWithRestoredTabs(defaultProfile); 457 Browser::OpenWindowWithRestoredTabs(defaultProfile);
458 break; 458 break;
459 case IDC_OPEN_FILE: 459 case IDC_OPEN_FILE:
460 Browser::OpenEmptyWindow(defaultProfile); 460 Browser::OpenEmptyWindow(defaultProfile);
461 BrowserList::GetLastActive()-> 461 BrowserList::GetLastActive()->
462 ExecuteCommandWithDisposition(IDC_OPEN_FILE, CURRENT_TAB); 462 ExecuteCommandWithDisposition(IDC_OPEN_FILE, CURRENT_TAB);
463 break; 463 break;
464 case IDC_CLEAR_BROWSING_DATA: 464 case IDC_CLEAR_BROWSING_DATA:
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 @end 677 @end
678 678
679 //--------------------------------------------------------------------------- 679 //---------------------------------------------------------------------------
680 680
681 // Stub for cross-platform method that isn't called on Mac OS X. 681 // Stub for cross-platform method that isn't called on Mac OS X.
682 void ShowOptionsWindow(OptionsPage page, 682 void ShowOptionsWindow(OptionsPage page,
683 OptionsGroup highlight_group, 683 OptionsGroup highlight_group,
684 Profile* profile) { 684 Profile* profile) {
685 NOTIMPLEMENTED(); 685 NOTIMPLEMENTED();
686 } 686 }
OLDNEW
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698