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

Unified Diff: chrome/browser/ui/browser_dialogs_mac.cc

Issue 2004043003: Expose the MacViewsWebUIDialogs feature flag to chrome://flags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20160520-Enums-MakeThemInt-HeaderChanges-ROLLUP
Patch Set: remove unused #includes Created 4 years, 7 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/ui/browser_dialogs.h ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_dialogs_mac.cc
diff --git a/chrome/browser/ui/browser_dialogs_mac.cc b/chrome/browser/ui/browser_dialogs_mac.cc
index a85fbcbe6e1bd2a6d94dddf318f07415fde762fa..2fd94ae459686564ce9ff0c578e6302bf285de5b 100644
--- a/chrome/browser/ui/browser_dialogs_mac.cc
+++ b/chrome/browser/ui/browser_dialogs_mac.cc
@@ -4,19 +4,20 @@
#include "chrome/browser/ui/browser_dialogs.h"
-#include "base/command_line.h"
#include "base/feature_list.h"
-#include "chrome/common/chrome_switches.h"
+
+namespace chrome {
+
+const base::Feature kMacViewsNativeDialogs {
+ "MacViewsNativeDialogs", base::FEATURE_DISABLED_BY_DEFAULT
+};
const base::Feature kMacViewsWebUIDialogs {
"MacViewsWebUIDialogs", base::FEATURE_DISABLED_BY_DEFAULT
};
-namespace chrome {
-
bool ToolkitViewsDialogsEnabled() {
- return base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableMacViewsDialogs);
+ return base::FeatureList::IsEnabled(kMacViewsNativeDialogs);
}
bool ToolkitViewsWebUIDialogsEnabled() {
« no previous file with comments | « chrome/browser/ui/browser_dialogs.h ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698