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

Side by Side Diff: content/public/android/java/src/org/chromium/content/common/ContentSwitches.java

Issue 2851453003: Revert of Rename kDisableGestureRequirementForMediaPlayback and make it a test-only flag. (Closed)
Patch Set: Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 package org.chromium.content.common; 5 package org.chromium.content.common;
6 6
7 /** 7 /**
8 * Contains all of the command line switches that are specific to the content/ 8 * Contains all of the command line switches that are specific to the content/
9 * portion of Chromium on Android. 9 * portion of Chromium on Android.
10 */ 10 */
(...skipping 27 matching lines...) Expand all
38 38
39 // Native switch - shell_switches::kRunLayoutTest 39 // Native switch - shell_switches::kRunLayoutTest
40 public static final String RUN_LAYOUT_TEST = "run-layout-test"; 40 public static final String RUN_LAYOUT_TEST = "run-layout-test";
41 41
42 // Native switch - chrome_switches::kDisablePopupBlocking 42 // Native switch - chrome_switches::kDisablePopupBlocking
43 public static final String DISABLE_POPUP_BLOCKING = "disable-popup-blocking" ; 43 public static final String DISABLE_POPUP_BLOCKING = "disable-popup-blocking" ;
44 44
45 // Native switch kEnableCredentialManagerAPI 45 // Native switch kEnableCredentialManagerAPI
46 public static final String ENABLE_CREDENTIAL_MANAGER_API = "enable-credentia l-manager-api"; 46 public static final String ENABLE_CREDENTIAL_MANAGER_API = "enable-credentia l-manager-api";
47 47
48 // Native switch kDisableGestureRequirementForMediaPlayback
49 public static final String DISABLE_GESTURE_REQUIREMENT_FOR_MEDIA_PLAYBACK =
50 "disable-gesture-requirement-for-media-playback";
51
48 // Native switch kDisableGestureRequirementForPresentation 52 // Native switch kDisableGestureRequirementForPresentation
49 public static final String DISABLE_GESTURE_REQUIREMENT_FOR_PRESENTATION = 53 public static final String DISABLE_GESTURE_REQUIREMENT_FOR_PRESENTATION =
50 "disable-gesture-requirement-for-presentation"; 54 "disable-gesture-requirement-for-presentation";
51 55
52 // Native switch kRendererProcessLimit 56 // Native switch kRendererProcessLimit
53 public static final String RENDER_PROCESS_LIMIT = "renderer-process-limit"; 57 public static final String RENDER_PROCESS_LIMIT = "renderer-process-limit";
54 58
55 // Native switch kInProcessGPU 59 // Native switch kInProcessGPU
56 public static final String IN_PROCESS_GPU = "in-process-gpu"; 60 public static final String IN_PROCESS_GPU = "in-process-gpu";
57 61
(...skipping 23 matching lines...) Expand all
81 // This format should be matched with the one defined in command_line.h. 85 // This format should be matched with the one defined in command_line.h.
82 final String switchKeyPrefix = "--" + switchKey + "="; 86 final String switchKeyPrefix = "--" + switchKey + "=";
83 for (String command : commandLine) { 87 for (String command : commandLine) {
84 if (command != null && command.startsWith(switchKeyPrefix)) { 88 if (command != null && command.startsWith(switchKeyPrefix)) {
85 return command.substring(switchKeyPrefix.length()); 89 return command.substring(switchKeyPrefix.length());
86 } 90 }
87 } 91 }
88 return null; 92 return null;
89 } 93 }
90 } 94 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698