summaryrefslogtreecommitdiffstats
path: root/chrome/browser/about_flags.h
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-15 00:37:24 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-15 00:37:24 +0000
commit1a47d7ea5a641b185283228692c2767a69f09e1a (patch)
tree1bd29481a5f92314d950f18e5c599068fda26da4 /chrome/browser/about_flags.h
parent9e6499ead594ea1b46deb0145a4519bc52ea3678 (diff)
downloadchromium_src-1a47d7ea5a641b185283228692c2767a69f09e1a.zip
chromium_src-1a47d7ea5a641b185283228692c2767a69f09e1a.tar.gz
chromium_src-1a47d7ea5a641b185283228692c2767a69f09e1a.tar.bz2
Rename about:labs to about:flags, part 3/3
This renames the cc and h files, and renames the --no-labs switch to --no-experiments BUG=59139 TEST=about:flags still works Review URL: http://codereview.chromium.org/3777005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62682 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/about_flags.h')
-rw-r--r--chrome/browser/about_flags.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/chrome/browser/about_flags.h b/chrome/browser/about_flags.h
new file mode 100644
index 0000000..fd6d8e4
--- /dev/null
+++ b/chrome/browser/about_flags.h
@@ -0,0 +1,36 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_ABOUT_FLAGS_H_
+#define CHROME_BROWSER_ABOUT_FLAGS_H_
+#pragma once
+
+#include <string>
+
+class CommandLine;
+class ListValue;
+class PrefService;
+
+namespace about_flags {
+
+// Returns if Flags is enabled (it isn't for ChromeOS at the moment).
+bool IsEnabled();
+
+// Reads the Labs |prefs| (called "Labs" for historical reasons) and adds the
+// commandline flags belonging to the active experiments to |command_line|.
+void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
+
+// Get a list of all available experiments. The caller owns the result.
+ListValue* GetFlagsExperimentsData(PrefService* prefs);
+
+// Returns true if one of the experiment flags has been flipped since startup.
+bool IsRestartNeededToCommitChanges();
+
+// Enables or disables the experiment with id |internal_name|.
+void SetExperimentEnabled(
+ PrefService* prefs, const std::string& internal_name, bool enable);
+
+} // namespace about_flags
+
+#endif // CHROME_BROWSER_ABOUT_FLAGS_H_