| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ANDROID_WEBVIEW_BROWSER_COMMAND_LINE_HELPER_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_COMMAND_LINE_HELPER_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_COMMAND_LINE_HELPER_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_COMMAND_LINE_HELPER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 | 11 |
| 12 namespace base { | 12 namespace base { |
| 13 class CommandLine; | 13 class CommandLine; |
| 14 } // namespace base | 14 } // namespace base |
| 15 | 15 |
| 16 class CommandLineHelper { | 16 class CommandLineHelper { |
| 17 public: | 17 public: |
| 18 // Add a feature to the --enabled-features list, but only if it's not | 18 // Add a feature to the --enabled-features list, but only if it's not |
| 19 // already enabled or disabled. | 19 // already enabled or disabled. |
| 20 static void AddEnabledFeature(base::CommandLine& command_line, | 20 static void AddEnabledFeature(base::CommandLine& command_line, |
| 21 const std::string& feature_name); | 21 const std::string& feature_name); |
| 22 | 22 |
| 23 // Add a feature to the --disabled-features list, but only if it's not already |
| 24 // enabled or disabled. |
| 25 static void AddDisabledFeature(base::CommandLine& command_line, |
| 26 const std::string& feature_name); |
| 27 |
| 23 private: | 28 private: |
| 24 DISALLOW_IMPLICIT_CONSTRUCTORS(CommandLineHelper); | 29 DISALLOW_IMPLICIT_CONSTRUCTORS(CommandLineHelper); |
| 25 }; | 30 }; |
| 26 | 31 |
| 27 #endif // ANDROID_WEBVIEW_BROWSER_COMMAND_LINE_HELPER_H_ | 32 #endif // ANDROID_WEBVIEW_BROWSER_COMMAND_LINE_HELPER_H_ |
| OLD | NEW |