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

Unified Diff: android_webview/browser/command_line_helper.h

Issue 2396803002: [Android WebView] Add functionality to enable features and enable the spellcheck feature. (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/browser/command_line_helper.h
diff --git a/android_webview/browser/command_line_helper.h b/android_webview/browser/command_line_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..7a1564192cb0248e6cb1b41b099b99a5aba1ab98
--- /dev/null
+++ b/android_webview/browser/command_line_helper.h
@@ -0,0 +1,25 @@
+// Copyright 2016 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 ANDROID_WEBVIEW_BROWSER_COMMAND_LINE_HELPER_H_
+#define ANDROID_WEBVIEW_BROWSER_COMMAND_LINE_HELPER_H_
+
+#include <string>
+
+namespace base {
+class CommandLine;
+} // namespace base
+
+class CommandLineHelper {
+ public:
+ // Add a feature to the --enabled-features list, but only if it's not
+ // already enabled or disabled.
+ static void AddEnabledFeature(base::CommandLine& command_line,
+ const std::string& feature_name);
+
+ private:
+ CommandLineHelper();
+};
+
+#endif // ANDROID_WEBVIEW_BROWSER_COMMAND_LINE_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698