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

Unified Diff: chrome/browser/extensions/extension_util.cc

Issue 1300763002: Add a flag to enable open in window for hosted apps on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@disable-new-bookmark-apps
Patch Set: Addressing nits Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/extension_util.h ('k') | chrome/browser/extensions/launch_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_util.cc
diff --git a/chrome/browser/extensions/extension_util.cc b/chrome/browser/extensions/extension_util.cc
index abf76f36e855b5d167f7b742b33eeab3c8a15899..c1e1c174b650f0bd1206079b6c143e326ee05066 100644
--- a/chrome/browser/extensions/extension_util.cc
+++ b/chrome/browser/extensions/extension_util.cc
@@ -366,6 +366,15 @@ bool IsNewBookmarkAppsEnabled() {
#endif
}
+bool CanHostedAppsOpenInWindows() {
+#if defined(OS_MACOSX)
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableHostedAppsInWindows);
+#else
+ return true;
+#endif
+}
+
bool IsExtensionSupervised(const Extension* extension, Profile* profile) {
return extension->was_installed_by_custodian() && profile->IsSupervised();
}
« no previous file with comments | « chrome/browser/extensions/extension_util.h ('k') | chrome/browser/extensions/launch_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698