From 1a47d7ea5a641b185283228692c2767a69f09e1a Mon Sep 17 00:00:00 2001 From: "thakis@chromium.org" Date: Fri, 15 Oct 2010 00:37:24 +0000 Subject: 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 --- chrome/browser/about_flags.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 chrome/browser/about_flags.h (limited to 'chrome/browser/about_flags.h') 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 + +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_ -- cgit v1.1