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

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: fix compile 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
« no previous file with comments | « android_webview/BUILD.gn ('k') | android_webview/browser/command_line_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..9a878527d42a45d75b94903b6cc62a26c8e0448a
--- /dev/null
+++ b/android_webview/browser/command_line_helper.h
@@ -0,0 +1,27 @@
+// 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>
+
+#include "base/macros.h"
+
+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:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(CommandLineHelper);
+};
+
+#endif // ANDROID_WEBVIEW_BROWSER_COMMAND_LINE_HELPER_H_
« no previous file with comments | « android_webview/BUILD.gn ('k') | android_webview/browser/command_line_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698