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

Side by Side 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: rebase for patch conflict (r395672 probably) Created 4 years, 6 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/browser_dialogs.h" 5 #include "chrome/browser/ui/browser_dialogs.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
msw 2016/05/25 16:48:16 nit: remove
tapted 2016/05/26 00:49:19 Done.
8 #include "base/feature_list.h" 8 #include "base/feature_list.h"
9 #include "chrome/common/chrome_switches.h" 9 #include "chrome/common/chrome_switches.h"
msw 2016/05/25 16:48:15 nit: remove
tapted 2016/05/26 00:49:19 Done.
10 10
11 namespace chrome {
12
13 const base::Feature kMacViewsNativeDialogs {
14 "MacViewsNativeDialogs", base::FEATURE_DISABLED_BY_DEFAULT
15 };
16
11 const base::Feature kMacViewsWebUIDialogs { 17 const base::Feature kMacViewsWebUIDialogs {
12 "MacViewsWebUIDialogs", base::FEATURE_DISABLED_BY_DEFAULT 18 "MacViewsWebUIDialogs", base::FEATURE_DISABLED_BY_DEFAULT
13 }; 19 };
14 20
15 namespace chrome {
16
17 bool ToolkitViewsDialogsEnabled() { 21 bool ToolkitViewsDialogsEnabled() {
18 return base::CommandLine::ForCurrentProcess()->HasSwitch( 22 return base::FeatureList::IsEnabled(kMacViewsNativeDialogs);
19 switches::kEnableMacViewsDialogs);
20 } 23 }
21 24
22 bool ToolkitViewsWebUIDialogsEnabled() { 25 bool ToolkitViewsWebUIDialogsEnabled() {
23 return base::FeatureList::IsEnabled(kMacViewsWebUIDialogs); 26 return base::FeatureList::IsEnabled(kMacViewsWebUIDialogs);
24 } 27 }
25 28
26 } // namespace chrome 29 } // namespace chrome
OLDNEW
« 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