diff options
author | avi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-28 17:15:19 +0000 |
---|---|---|
committer | avi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-28 17:15:19 +0000 |
commit | e19516d9748c6bfc5798880dc0bbe03374d722c4 (patch) | |
tree | 659f1919f4e9a70ec371426aea183254daa5f962 /chrome/browser/app_controller_mac.mm | |
parent | dd2c90835a80dc956af2df39e233aef9b1057d90 (diff) | |
download | chromium_src-e19516d9748c6bfc5798880dc0bbe03374d722c4.zip chromium_src-e19516d9748c6bfc5798880dc0bbe03374d722c4.tar.gz chromium_src-e19516d9748c6bfc5798880dc0bbe03374d722c4.tar.bz2 |
Allow File>Open File with no window open.
Review URL: http://codereview.chromium.org/99128
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14737 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/app_controller_mac.mm')
-rw-r--r-- | chrome/browser/app_controller_mac.mm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm index 435bc60..d8a2738 100644 --- a/chrome/browser/app_controller_mac.mm +++ b/chrome/browser/app_controller_mac.mm @@ -121,6 +121,11 @@ case IDC_NEW_INCOGNITO_WINDOW: Browser::OpenURLOffTheRecord(default_profile, GURL()); break; + case IDC_OPEN_FILE: + Browser::OpenEmptyWindow(default_profile); + BrowserList::GetLastActive()-> + ExecuteCommandWithDisposition(IDC_OPEN_FILE, CURRENT_TAB); + break; }; } @@ -146,6 +151,7 @@ menuState_ = new CommandUpdater(NULL); menuState_->UpdateCommandEnabled(IDC_NEW_WINDOW, true); menuState_->UpdateCommandEnabled(IDC_NEW_INCOGNITO_WINDOW, true); + menuState_->UpdateCommandEnabled(IDC_OPEN_FILE, true); // TODO(pinkerton): ...more to come... } |