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

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

Issue 2684433003: Files required by a service now listed in manifest. (Closed)
Patch Set: Synced Created 3 years, 10 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // Native switch kGPUProcess 71 // Native switch kGPUProcess
72 public static final String SWITCH_GPU_PROCESS = "gpu-process"; 72 public static final String SWITCH_GPU_PROCESS = "gpu-process";
73 73
74 // Enable content intent detection in the renderer 74 // Enable content intent detection in the renderer
75 public static final String ENABLE_CONTENT_INTENT_DETECTION = "enable-content -intent-detection"; 75 public static final String ENABLE_CONTENT_INTENT_DETECTION = "enable-content -intent-detection";
76 76
77 // Use fake device for Media Stream to replace actual camera and microphone. 77 // Use fake device for Media Stream to replace actual camera and microphone.
78 public static final String USE_FAKE_DEVICE_FOR_MEDIA_STREAM = 78 public static final String USE_FAKE_DEVICE_FOR_MEDIA_STREAM =
79 "use-fake-device-for-media-stream"; 79 "use-fake-device-for-media-stream";
80 80
81 // List of file descriptors shared by the parent process.
82 public static final String SHARED_FILES = "shared-files";
boliu 2017/02/13 19:40:24 this is no longer needed
Jay Civelli 2017/02/13 23:51:58 Removed.
83
81 // Prevent instantiation. 84 // Prevent instantiation.
82 private ContentSwitches() {} 85 private ContentSwitches() {}
83 86
84 public static String getSwitchValue(final String[] commandLine, String switc hKey) { 87 public static String getSwitchValue(final String[] commandLine, String switc hKey) {
85 if (commandLine == null || switchKey == null) { 88 if (commandLine == null || switchKey == null) {
86 return null; 89 return null;
87 } 90 }
88 // This format should be matched with the one defined in command_line.h. 91 // This format should be matched with the one defined in command_line.h.
89 final String switchKeyPrefix = "--" + switchKey + "="; 92 final String switchKeyPrefix = "--" + switchKey + "=";
90 for (String command : commandLine) { 93 for (String command : commandLine) {
91 if (command != null && command.startsWith(switchKeyPrefix)) { 94 if (command != null && command.startsWith(switchKeyPrefix)) {
92 return command.substring(switchKeyPrefix.length()); 95 return command.substring(switchKeyPrefix.length());
93 } 96 }
94 } 97 }
95 return null; 98 return null;
96 } 99 }
97 } 100 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698