| 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/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 std::string DeriveCommandLine(const GURL& start_url, | 65 std::string DeriveCommandLine(const GURL& start_url, |
| 66 const base::CommandLine& base_command_line, | 66 const base::CommandLine& base_command_line, |
| 67 const base::DictionaryValue& new_switches, | 67 const base::DictionaryValue& new_switches, |
| 68 base::CommandLine* command_line) { | 68 base::CommandLine* command_line) { |
| 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::kDisableAcceleratedVideoDecode, | 76 ::switches::kDisableAcceleratedVideoDecode, |
| 76 ::switches::kDisableBlinkFeatures, | 77 ::switches::kDisableBlinkFeatures, |
| 77 ::switches::kDisableCastStreamingHWEncoding, | 78 ::switches::kDisableCastStreamingHWEncoding, |
| 78 ::switches::kDisableDelegatedRenderer, | 79 ::switches::kDisableDelegatedRenderer, |
| 79 ::switches::kDisableDistanceFieldText, | 80 ::switches::kDisableDistanceFieldText, |
| 80 ::switches::kDisableGpu, | 81 ::switches::kDisableGpu, |
| 81 ::switches::kDisableGpuShaderDiskCache, | 82 ::switches::kDisableGpuShaderDiskCache, |
| 82 ::switches::kDisableGpuWatchdog, | 83 ::switches::kDisableGpuWatchdog, |
| 83 ::switches::kDisableGpuCompositing, | 84 ::switches::kDisableGpuCompositing, |
| 84 ::switches::kDisableGpuRasterization, | 85 ::switches::kDisableGpuRasterization, |
| 85 ::switches::kDisableLowResTiling, | 86 ::switches::kDisableLowResTiling, |
| 86 ::switches::kDisableMediaSource, | 87 ::switches::kDisableMediaSource, |
| 87 ::switches::kDisableOneCopy, | 88 ::switches::kDisableOneCopy, |
| 88 ::switches::kDisablePreferCompositingToLCDText, | 89 ::switches::kDisablePreferCompositingToLCDText, |
| 89 ::switches::kDisablePrefixedEncryptedMedia, | 90 ::switches::kDisablePrefixedEncryptedMedia, |
| 90 ::switches::kDisablePanelFitting, | 91 ::switches::kDisablePanelFitting, |
| 91 ::switches::kDisableSeccompFilterSandbox, | 92 ::switches::kDisableSeccompFilterSandbox, |
| 92 ::switches::kDisableSetuidSandbox, | 93 ::switches::kDisableSetuidSandbox, |
| 93 ::switches::kDisableSlimmingPaint, | 94 ::switches::kDisableSlimmingPaint, |
| 94 ::switches::kDisableSurfaces, | 95 ::switches::kDisableSurfaces, |
| 95 ::switches::kDisableTextBlobs, | 96 ::switches::kDisableTextBlobs, |
| 96 ::switches::kDisableThreadedScrolling, | 97 ::switches::kDisableThreadedScrolling, |
| 97 ::switches::kDisableTouchDragDrop, | 98 ::switches::kDisableTouchDragDrop, |
| 98 ::switches::kDisableTouchEditing, | 99 ::switches::kDisableTouchEditing, |
| 99 ::switches::kEnableAcceleratedMjpegDecode, | |
| 100 ::switches::kEnableBlinkFeatures, | 100 ::switches::kEnableBlinkFeatures, |
| 101 ::switches::kEnableCompositorAnimationTimelines, | 101 ::switches::kEnableCompositorAnimationTimelines, |
| 102 ::switches::kEnableDelegatedRenderer, | 102 ::switches::kEnableDelegatedRenderer, |
| 103 ::switches::kDisableDisplayList2dCanvas, | 103 ::switches::kDisableDisplayList2dCanvas, |
| 104 ::switches::kEnableDisplayList2dCanvas, | 104 ::switches::kEnableDisplayList2dCanvas, |
| 105 ::switches::kForceDisplayList2dCanvas, | 105 ::switches::kForceDisplayList2dCanvas, |
| 106 ::switches::kDisableEncryptedMedia, | 106 ::switches::kDisableEncryptedMedia, |
| 107 ::switches::kDisableGpuSandbox, | 107 ::switches::kDisableGpuSandbox, |
| 108 ::switches::kEnableDistanceFieldText, | 108 ::switches::kEnableDistanceFieldText, |
| 109 ::switches::kEnableGpuRasterization, | 109 ::switches::kEnableGpuRasterization, |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 // Relaunch chrome without session manager on dev box. | 383 // Relaunch chrome without session manager on dev box. |
| 384 ReLaunch(command_line); | 384 ReLaunch(command_line); |
| 385 return; | 385 return; |
| 386 } | 386 } |
| 387 | 387 |
| 388 // ChromeRestartRequest deletes itself after request sent to session manager. | 388 // ChromeRestartRequest deletes itself after request sent to session manager. |
| 389 (new ChromeRestartRequest(command_line))->Start(); | 389 (new ChromeRestartRequest(command_line))->Start(); |
| 390 } | 390 } |
| 391 | 391 |
| 392 } // namespace chromeos | 392 } // namespace chromeos |
| OLD | NEW |