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

Side by Side Diff: android_webview/browser/command_line_helper.h

Issue 2520053002: [Merge M-55] Disable Web Payments in WebView (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | android_webview/browser/command_line_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/command_line_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698