| OLD | NEW |
| (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_ |
| OLD | NEW |