| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "content/browser/android/content_startup_flags.h" | 5 #include "content/browser/android/content_startup_flags.h" |
| 6 | 6 |
| 7 #include "base/android/build_info.h" | 7 #include "base/android/build_info.h" |
| 8 #include "base/base_switches.h" | 8 #include "base/base_switches.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // internal code checks this directly, but it wouldn't normally get set when | 34 // internal code checks this directly, but it wouldn't normally get set when |
| 35 // we are implementing an embedded WebView. | 35 // we are implementing an embedded WebView. |
| 36 parsed_command_line->AppendSwitch(switches::kSingleProcess); | 36 parsed_command_line->AppendSwitch(switches::kSingleProcess); |
| 37 } | 37 } |
| 38 | 38 |
| 39 parsed_command_line->AppendSwitch(cc::switches::kEnableBeginFrameScheduling); | 39 parsed_command_line->AppendSwitch(cc::switches::kEnableBeginFrameScheduling); |
| 40 | 40 |
| 41 parsed_command_line->AppendSwitch(switches::kEnablePinch); | 41 parsed_command_line->AppendSwitch(switches::kEnablePinch); |
| 42 parsed_command_line->AppendSwitch(switches::kEnableOverlayScrollbar); | 42 parsed_command_line->AppendSwitch(switches::kEnableOverlayScrollbar); |
| 43 parsed_command_line->AppendSwitch(switches::kValidateInputEventStream); | 43 parsed_command_line->AppendSwitch(switches::kValidateInputEventStream); |
| 44 parsed_command_line->AppendSwitch( |
| 45 switches::kEnableMediaDocumentDownloadButton); |
| 44 | 46 |
| 45 if (base::android::BuildInfo::GetInstance()->sdk_int() >= | 47 if (base::android::BuildInfo::GetInstance()->sdk_int() >= |
| 46 base::android::SDK_VERSION_MARSHMALLOW) { | 48 base::android::SDK_VERSION_MARSHMALLOW) { |
| 47 parsed_command_line->AppendSwitch(switches::kEnableLongpressDragSelection); | 49 parsed_command_line->AppendSwitch(switches::kEnableLongpressDragSelection); |
| 48 parsed_command_line->AppendSwitchASCII( | 50 parsed_command_line->AppendSwitchASCII( |
| 49 switches::kTouchTextSelectionStrategy, "direction"); | 51 switches::kTouchTextSelectionStrategy, "direction"); |
| 50 } | 52 } |
| 51 | 53 |
| 52 // There is no software fallback on Android, so don't limit GPU crashes. | 54 // There is no software fallback on Android, so don't limit GPU crashes. |
| 53 parsed_command_line->AppendSwitch(switches::kDisableGpuProcessCrashLimit); | 55 parsed_command_line->AppendSwitch(switches::kDisableGpuProcessCrashLimit); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 74 } | 76 } |
| 75 | 77 |
| 76 // Disable profiler timing by default. | 78 // Disable profiler timing by default. |
| 77 if (!parsed_command_line->HasSwitch(switches::kProfilerTiming)) { | 79 if (!parsed_command_line->HasSwitch(switches::kProfilerTiming)) { |
| 78 parsed_command_line->AppendSwitchASCII( | 80 parsed_command_line->AppendSwitchASCII( |
| 79 switches::kProfilerTiming, switches::kProfilerTimingDisabledValue); | 81 switches::kProfilerTiming, switches::kProfilerTimingDisabledValue); |
| 80 } | 82 } |
| 81 } | 83 } |
| 82 | 84 |
| 83 } // namespace content | 85 } // namespace content |
| OLD | NEW |