| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // - Set start url if given; | 64 // - Set start url if given; |
| 65 // - Append/override switches using |new_switches|; | 65 // - Append/override switches using |new_switches|; |
| 66 std::string DeriveCommandLine(const GURL& start_url, | 66 std::string DeriveCommandLine(const GURL& start_url, |
| 67 const CommandLine& base_command_line, | 67 const CommandLine& base_command_line, |
| 68 const base::DictionaryValue& new_switches, | 68 const base::DictionaryValue& new_switches, |
| 69 CommandLine* command_line) { | 69 CommandLine* command_line) { |
| 70 DCHECK_NE(&base_command_line, command_line); | 70 DCHECK_NE(&base_command_line, command_line); |
| 71 | 71 |
| 72 static const char* kForwardSwitches[] = { | 72 static const char* kForwardSwitches[] = { |
| 73 ::switches::kDisableAccelerated2dCanvas, | 73 ::switches::kDisableAccelerated2dCanvas, |
| 74 ::switches::kDisableAcceleratedOverflowScroll, | |
| 75 ::switches::kDisableAcceleratedVideoDecode, | 74 ::switches::kDisableAcceleratedVideoDecode, |
| 76 ::switches::kDisableDelegatedRenderer, | 75 ::switches::kDisableDelegatedRenderer, |
| 77 ::switches::kDisableDistanceFieldText, | 76 ::switches::kDisableDistanceFieldText, |
| 78 ::switches::kDisableGpu, | 77 ::switches::kDisableGpu, |
| 79 ::switches::kDisableGpuShaderDiskCache, | 78 ::switches::kDisableGpuShaderDiskCache, |
| 80 ::switches::kDisableGpuWatchdog, | 79 ::switches::kDisableGpuWatchdog, |
| 81 ::switches::kDisableGpuCompositing, | 80 ::switches::kDisableGpuCompositing, |
| 82 ::switches::kDisableGpuRasterization, | 81 ::switches::kDisableGpuRasterization, |
| 83 ::switches::kDisableImplSidePainting, | 82 ::switches::kDisableImplSidePainting, |
| 84 ::switches::kDisableLowResTiling, | 83 ::switches::kDisableLowResTiling, |
| 85 ::switches::kDisableMediaSource, | 84 ::switches::kDisableMediaSource, |
| 86 ::switches::kDisablePreferCompositingToLCDText, | 85 ::switches::kDisablePreferCompositingToLCDText, |
| 87 ::switches::kDisablePrefixedEncryptedMedia, | 86 ::switches::kDisablePrefixedEncryptedMedia, |
| 88 ::switches::kDisablePanelFitting, | 87 ::switches::kDisablePanelFitting, |
| 89 ::switches::kDisableSeccompFilterSandbox, | 88 ::switches::kDisableSeccompFilterSandbox, |
| 90 ::switches::kDisableSetuidSandbox, | 89 ::switches::kDisableSetuidSandbox, |
| 91 ::switches::kDisableTouchDragDrop, | 90 ::switches::kDisableTouchDragDrop, |
| 92 ::switches::kDisableTouchEditing, | 91 ::switches::kDisableTouchEditing, |
| 93 ::switches::kDisableAcceleratedFixedRootBackground, | |
| 94 ::switches::kDisableZeroCopy, | 92 ::switches::kDisableZeroCopy, |
| 95 ::switches::kEnableAcceleratedFixedRootBackground, | |
| 96 ::switches::kEnableAcceleratedOverflowScroll, | |
| 97 ::switches::kEnableBeginFrameScheduling, | 93 ::switches::kEnableBeginFrameScheduling, |
| 98 ::switches::kEnablePreferCompositingToLCDText, | 94 ::switches::kEnablePreferCompositingToLCDText, |
| 99 ::switches::kEnableDelegatedRenderer, | 95 ::switches::kEnableDelegatedRenderer, |
| 100 ::switches::kEnableDisplayList2dCanvas, | 96 ::switches::kEnableDisplayList2dCanvas, |
| 101 ::switches::kEnableEncryptedMedia, | 97 ::switches::kEnableEncryptedMedia, |
| 102 ::switches::kDisableGpuSandbox, | 98 ::switches::kDisableGpuSandbox, |
| 103 ::switches::kDisableDeferredFilters, | 99 ::switches::kDisableDeferredFilters, |
| 104 ::switches::kEnableContainerCulling, | 100 ::switches::kEnableContainerCulling, |
| 105 ::switches::kEnableDistanceFieldText, | 101 ::switches::kEnableDistanceFieldText, |
| 106 ::switches::kEnableGpuRasterization, | 102 ::switches::kEnableGpuRasterization, |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 // Relaunch chrome without session manager on dev box. | 367 // Relaunch chrome without session manager on dev box. |
| 372 ReLaunch(command_line); | 368 ReLaunch(command_line); |
| 373 return; | 369 return; |
| 374 } | 370 } |
| 375 | 371 |
| 376 // ChromeRestartRequest deletes itself after request sent to session manager. | 372 // ChromeRestartRequest deletes itself after request sent to session manager. |
| 377 (new ChromeRestartRequest(command_line))->Start(); | 373 (new ChromeRestartRequest(command_line))->Start(); |
| 378 } | 374 } |
| 379 | 375 |
| 380 } // namespace chromeos | 376 } // namespace chromeos |
| OLD | NEW |