Chromium Code Reviews| Index: chrome/browser/ui/cocoa/browser_window_cocoa.mm |
| diff --git a/chrome/browser/ui/cocoa/browser_window_cocoa.mm b/chrome/browser/ui/cocoa/browser_window_cocoa.mm |
| index 00357d6175ce39282020a2bca4d0a262938cc25e..19992b6b5ccddb9dd7e90b476f4c319f7f226e92 100644 |
| --- a/chrome/browser/ui/cocoa/browser_window_cocoa.mm |
| +++ b/chrome/browser/ui/cocoa/browser_window_cocoa.mm |
| @@ -15,6 +15,7 @@ |
| #include "chrome/app/chrome_command_ids.h" |
| #include "chrome/browser/chrome_notification_types.h" |
| #include "chrome/browser/download/download_shelf.h" |
| +#include "chrome/browser/extensions/extension_util.h" |
| #include "chrome/browser/extensions/tab_helper.h" |
| #include "chrome/browser/fullscreen.h" |
| #include "chrome/browser/profiles/profile.h" |
| @@ -582,7 +583,11 @@ void BrowserWindowCocoa::ShowBookmarkAppBubble( |
| base::scoped_nsobject<NSView> view([[NSView alloc] |
| initWithFrame:NSMakeRect(0, 0, kBookmarkAppBubbleViewWidth, |
| kBookmarkAppBubbleViewHeight)]); |
| - [view addSubview:open_as_window_checkbox]; |
| + |
| + // When CanHostedAppsOpenInWindows is disabled, do not show the open as window |
|
tapted
2015/08/20 00:44:02
nit: -> `CanHostedAppsOpenInWindows()` since it's
|
| + // checkbox to avoid confusing users. |
| + if (extensions::util::CanHostedAppsOpenInWindows()) |
| + [view addSubview:open_as_window_checkbox]; |
| [view addSubview:app_title]; |
| [alert setAccessoryView:view]; |