| 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/shell/app/shell_main_delegate.h" | 5 #include "content/shell/app/shell_main_delegate.h" |
| 6 | 6 |
| 7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/cpu.h" | 9 #include "base/cpu.h" |
| 10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 command_line.AppendSwitch(switches::kEnableLogging); | 163 command_line.AppendSwitch(switches::kEnableLogging); |
| 164 command_line.AppendSwitch(switches::kAllowFileAccessFromFiles); | 164 command_line.AppendSwitch(switches::kAllowFileAccessFromFiles); |
| 165 // only default to osmesa if the flag isn't already specified. | 165 // only default to osmesa if the flag isn't already specified. |
| 166 if (!command_line.HasSwitch(switches::kUseGL)) { | 166 if (!command_line.HasSwitch(switches::kUseGL)) { |
| 167 command_line.AppendSwitchASCII(switches::kUseGL, | 167 command_line.AppendSwitchASCII(switches::kUseGL, |
| 168 gfx::kGLImplementationOSMesaName); | 168 gfx::kGLImplementationOSMesaName); |
| 169 } | 169 } |
| 170 command_line.AppendSwitch(switches::kSkipGpuDataLoading); | 170 command_line.AppendSwitch(switches::kSkipGpuDataLoading); |
| 171 command_line.AppendSwitchASCII(switches::kTouchEvents, | 171 command_line.AppendSwitchASCII(switches::kTouchEvents, |
| 172 switches::kTouchEventsEnabled); | 172 switches::kTouchEventsEnabled); |
| 173 command_line.AppendSwitchASCII(switches::kForceDeviceScaleFactor, "1.0"); | 173 if (!command_line.HasSwitch(switches::kForceDeviceScaleFactor)) |
| 174 command_line.AppendSwitchASCII(switches::kForceDeviceScaleFactor, "1.0"); |
| 174 command_line.AppendSwitch( | 175 command_line.AppendSwitch( |
| 175 switches::kDisableGestureRequirementForMediaPlayback); | 176 switches::kDisableGestureRequirementForMediaPlayback); |
| 176 | 177 |
| 177 if (!command_line.HasSwitch(switches::kStableReleaseMode)) { | 178 if (!command_line.HasSwitch(switches::kStableReleaseMode)) { |
| 178 command_line.AppendSwitch( | 179 command_line.AppendSwitch( |
| 179 switches::kEnableExperimentalWebPlatformFeatures); | 180 switches::kEnableExperimentalWebPlatformFeatures); |
| 180 // Only enable WebBluetooth during Layout Tests in non release mode. | 181 // Only enable WebBluetooth during Layout Tests in non release mode. |
| 181 command_line.AppendSwitch(switches::kEnableWebBluetooth); | 182 command_line.AppendSwitch(switches::kEnableWebBluetooth); |
| 182 } | 183 } |
| 183 | 184 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 | 352 |
| 352 return renderer_client_.get(); | 353 return renderer_client_.get(); |
| 353 } | 354 } |
| 354 | 355 |
| 355 ContentUtilityClient* ShellMainDelegate::CreateContentUtilityClient() { | 356 ContentUtilityClient* ShellMainDelegate::CreateContentUtilityClient() { |
| 356 utility_client_.reset(new ShellContentUtilityClient); | 357 utility_client_.reset(new ShellContentUtilityClient); |
| 357 return utility_client_.get(); | 358 return utility_client_.get(); |
| 358 } | 359 } |
| 359 | 360 |
| 360 } // namespace content | 361 } // namespace content |
| OLD | NEW |