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

Side by Side Diff: chrome/browser/labs.h

Issue 3152055: Implement about:labs (Closed)
Patch Set: chromeos fix Created 10 years, 3 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/dom_ui/plugins_ui.cc ('k') | chrome/browser/labs.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_LABS_H_
6 #define CHROME_BROWSER_LABS_H_
7 #pragma once
8
9 #include <string>
10
11 class CommandLine;
12 class ListValue;
13 class Profile;
14
15 // Can't be called "labs", that collides with the C function |labs()|.
16 namespace about_labs {
17
18 // Returns if Labs is enabled (it isn't on the stable channel).
19 bool IsEnabled();
20
21 // Reads the Labs pref from |profile| and adds the commandline flags belonging
22 // to the active experiments to |command_line|.
23 void ConvertLabsToSwitches(Profile* profile, CommandLine* command_line);
24
25 // Get a list of all available experiments. The caller owns the result.
26 ListValue* GetLabsExperimentsData(Profile* profile);
27
28 // Returns true if one of the experiment flags has been flipped since startup.
29 bool IsRestartNeededToCommitChanges();
30
31 // Enables or disables the experiment with id |internal_name|.
32 void SetExperimentEnabled(
33 Profile* profile, const std::string& internal_name, bool enable);
34
35 } // namespace Labs
36
37 #endif // CHROME_BROWSER_LABS_H_
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/plugins_ui.cc ('k') | chrome/browser/labs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698