diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-14 21:25:20 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-14 21:25:20 +0000 |
commit | db60eefa06894eba873f2b323a6a7395bf8c81a0 (patch) | |
tree | 0ee3de35de8c3b3aef57f572db7c1ab8c8ccc492 /chrome/browser | |
parent | 30bdc1a5c4cd28ac796cfb74489d7f3a80685974 (diff) | |
download | chromium_src-db60eefa06894eba873f2b323a6a7395bf8c81a0.zip chromium_src-db60eefa06894eba873f2b323a6a7395bf8c81a0.tar.gz chromium_src-db60eefa06894eba873f2b323a6a7395bf8c81a0.tar.bz2 |
Disable "open in incognito window" for incognito windows.
BUG=http://crbug.com/24637
TEST=as in bug
Review URL: http://codereview.chromium.org/488018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34496 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/cocoa/bookmark_bar_controller.mm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/bookmark_bar_controller.mm b/chrome/browser/cocoa/bookmark_bar_controller.mm index 289cbed..3f92b6e 100644 --- a/chrome/browser/cocoa/bookmark_bar_controller.mm +++ b/chrome/browser/cocoa/bookmark_bar_controller.mm @@ -669,6 +669,14 @@ const NSTimeInterval kBookmarkBarAnimationDuration = 0.12; } } + // If this is an incognito window, don't allow "open in incognito". + if ((action == @selector(openBookmarkInIncognitoWindow:)) || + (action == @selector(openAllBookmarksIncognitoWindow:))) { + if (browser_->profile()->IsOffTheRecord()) { + return NO; + } + } + // Enabled by default. return YES; } |