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

Unified Diff: chrome/common/chrome_switches.cc

Issue 449623003: Integrate About page into Settings for Chrome OS settings in a window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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/common/chrome_switches.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_switches.cc
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index 43012bad9273763283680672160a1657be2adf65..58d30c56ea5e079b8752ec339af9b0c23bd7bc39 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -201,6 +201,10 @@ const char kDiagnosticsFormat[] = "diagnostics-format";
// Tells the diagnostics mode to do the requested recovery step(s).
const char kDiagnosticsRecovery[] = "diagnostics-recovery";
+// When kEnableSettingsWindow is used, About is shown as an overlay in Settings
+// instead of as a separate page, unless this flag is specified.
+const char kDisableAboutInSettings[] = "disable-about-in-settings";
+
// Disables the experimental asynchronous DNS client.
const char kDisableAsyncDns[] = "disable-async-dns";
@@ -1346,6 +1350,12 @@ const char kDebugPrint[] = "debug-print";
const char kFileManagerExtensionPath[] = "filemgr-ext-path";
#endif
+bool AboutInSettingsEnabled() {
+ return SettingsWindowEnabled() &&
+ !CommandLine::ForCurrentProcess()->HasSwitch(
+ ::switches::kDisableAboutInSettings);
+}
+
bool SettingsWindowEnabled() {
#if defined(OS_CHROMEOS)
return !CommandLine::ForCurrentProcess()->HasSwitch(
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698