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

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: Fixed analysis. 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 // Native switch kUtilityProcess 68 // Native switch kUtilityProcess
69 public static final String SWITCH_UTILITY_PROCESS = "utility"; 69 public static final String SWITCH_UTILITY_PROCESS = "utility";
70 70
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 // List of file descriptors shared by the parent process.
78 public static final String SHARED_FILES = "shared-files";
79
77 // Prevent instantiation. 80 // Prevent instantiation.
78 private ContentSwitches() {} 81 private ContentSwitches() {}
79 82
80 public static String getSwitchValue(final String[] commandLine, String switc hKey) { 83 public static String getSwitchValue(final String[] commandLine, String switc hKey) {
81 if (commandLine == null || switchKey == null) { 84 if (commandLine == null || switchKey == null) {
82 return null; 85 return null;
83 } 86 }
84 // This format should be matched with the one defined in command_line.h. 87 // This format should be matched with the one defined in command_line.h.
85 final String switchKeyPrefix = "--" + switchKey + "="; 88 final String switchKeyPrefix = "--" + switchKey + "=";
86 for (String command : commandLine) { 89 for (String command : commandLine) {
87 if (command != null && command.startsWith(switchKeyPrefix)) { 90 if (command != null && command.startsWith(switchKeyPrefix)) {
88 return command.substring(switchKeyPrefix.length()); 91 return command.substring(switchKeyPrefix.length());
89 } 92 }
90 } 93 }
91 return null; 94 return null;
92 } 95 }
93 } 96 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698