| OLD | NEW |
| 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 #include "chrome/browser/chromeos/login/chrome_restart_request.h" | 5 #include "chrome/browser/chromeos/login/chrome_restart_request.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "ash/ash_switches.h" | 9 #include "ash/ash_switches.h" |
| 10 #include "base/base_switches.h" | 10 #include "base/base_switches.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 DCHECK_NE(&base_command_line, command_line); | 69 DCHECK_NE(&base_command_line, command_line); |
| 70 | 70 |
| 71 static const char* const kForwardSwitches[] = { | 71 static const char* const kForwardSwitches[] = { |
| 72 ::switches::kBlinkSettings, | 72 ::switches::kBlinkSettings, |
| 73 ::switches::kDisableAccelerated2dCanvas, | 73 ::switches::kDisableAccelerated2dCanvas, |
| 74 ::switches::kDisableAcceleratedJpegDecoding, | 74 ::switches::kDisableAcceleratedJpegDecoding, |
| 75 ::switches::kDisableAcceleratedMjpegDecode, | 75 ::switches::kDisableAcceleratedMjpegDecode, |
| 76 ::switches::kDisableAcceleratedVideoDecode, | 76 ::switches::kDisableAcceleratedVideoDecode, |
| 77 ::switches::kDisableBlinkFeatures, | 77 ::switches::kDisableBlinkFeatures, |
| 78 ::switches::kDisableCastStreamingHWEncoding, | 78 ::switches::kDisableCastStreamingHWEncoding, |
| 79 ::switches::kDisableCompositorAnimationTimelines, |
| 79 ::switches::kDisableDistanceFieldText, | 80 ::switches::kDisableDistanceFieldText, |
| 80 ::switches::kDisableGpu, | 81 ::switches::kDisableGpu, |
| 81 ::switches::kDisableGpuMemoryBufferVideoFrames, | 82 ::switches::kDisableGpuMemoryBufferVideoFrames, |
| 82 ::switches::kDisableGpuShaderDiskCache, | 83 ::switches::kDisableGpuShaderDiskCache, |
| 83 ::switches::kDisableGpuWatchdog, | 84 ::switches::kDisableGpuWatchdog, |
| 84 ::switches::kDisableGpuCompositing, | 85 ::switches::kDisableGpuCompositing, |
| 85 ::switches::kDisableGpuRasterization, | 86 ::switches::kDisableGpuRasterization, |
| 86 ::switches::kDisableLowResTiling, | 87 ::switches::kDisableLowResTiling, |
| 87 ::switches::kDisableMediaSource, | 88 ::switches::kDisableMediaSource, |
| 88 ::switches::kDisablePreferCompositingToLCDText, | 89 ::switches::kDisablePreferCompositingToLCDText, |
| 89 ::switches::kEnablePrefixedEncryptedMedia, | 90 ::switches::kEnablePrefixedEncryptedMedia, |
| 90 ::switches::kDisablePanelFitting, | 91 ::switches::kDisablePanelFitting, |
| 91 ::switches::kDisableRGBA4444Textures, | 92 ::switches::kDisableRGBA4444Textures, |
| 92 ::switches::kDisableSeccompFilterSandbox, | 93 ::switches::kDisableSeccompFilterSandbox, |
| 93 ::switches::kDisableSetuidSandbox, | 94 ::switches::kDisableSetuidSandbox, |
| 94 ::switches::kDisableSurfaces, | 95 ::switches::kDisableSurfaces, |
| 95 ::switches::kDisableThreadedScrolling, | 96 ::switches::kDisableThreadedScrolling, |
| 96 ::switches::kDisableTouchDragDrop, | 97 ::switches::kDisableTouchDragDrop, |
| 97 ::switches::kDisableZeroCopy, | 98 ::switches::kDisableZeroCopy, |
| 98 ::switches::kEnableBlinkFeatures, | 99 ::switches::kEnableBlinkFeatures, |
| 99 ::switches::kEnableCompositorAnimationTimelines, | |
| 100 ::switches::kDisableDisplayList2dCanvas, | 100 ::switches::kDisableDisplayList2dCanvas, |
| 101 ::switches::kEnableDisplayList2dCanvas, | 101 ::switches::kEnableDisplayList2dCanvas, |
| 102 ::switches::kForceDisplayList2dCanvas, | 102 ::switches::kForceDisplayList2dCanvas, |
| 103 ::switches::kDisableEncryptedMedia, | 103 ::switches::kDisableEncryptedMedia, |
| 104 ::switches::kDisableGpuSandbox, | 104 ::switches::kDisableGpuSandbox, |
| 105 ::switches::kEnableDistanceFieldText, | 105 ::switches::kEnableDistanceFieldText, |
| 106 ::switches::kEnableGpuMemoryBufferVideoFrames, | 106 ::switches::kEnableGpuMemoryBufferVideoFrames, |
| 107 ::switches::kEnableGpuRasterization, | 107 ::switches::kEnableGpuRasterization, |
| 108 ::switches::kEnableImageColorProfiles, | 108 ::switches::kEnableImageColorProfiles, |
| 109 ::switches::kEnableLogging, | 109 ::switches::kEnableLogging, |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 // Relaunch chrome without session manager on dev box. | 354 // Relaunch chrome without session manager on dev box. |
| 355 ReLaunch(command_line); | 355 ReLaunch(command_line); |
| 356 return; | 356 return; |
| 357 } | 357 } |
| 358 | 358 |
| 359 // ChromeRestartRequest deletes itself after request sent to session manager. | 359 // ChromeRestartRequest deletes itself after request sent to session manager. |
| 360 (new ChromeRestartRequest(command_line.argv()))->Start(); | 360 (new ChromeRestartRequest(command_line.argv()))->Start(); |
| 361 } | 361 } |
| 362 | 362 |
| 363 } // namespace chromeos | 363 } // namespace chromeos |
| OLD | NEW |