| 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/chromeos/chromeos_version.h" | 10 #include "base/chromeos/chromeos_version.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 DCHECK_NE(&base_command_line, command_line); | 68 DCHECK_NE(&base_command_line, command_line); |
| 69 | 69 |
| 70 static const char* kForwardSwitches[] = { | 70 static const char* kForwardSwitches[] = { |
| 71 ::switches::kAllowWebUICompositing, | 71 ::switches::kAllowWebUICompositing, |
| 72 ::switches::kDeviceManagementUrl, | 72 ::switches::kDeviceManagementUrl, |
| 73 ::switches::kDisableAccelerated2dCanvas, | 73 ::switches::kDisableAccelerated2dCanvas, |
| 74 ::switches::kDisableAcceleratedOverflowScroll, | 74 ::switches::kDisableAcceleratedOverflowScroll, |
| 75 ::switches::kDisableAcceleratedPlugins, | 75 ::switches::kDisableAcceleratedPlugins, |
| 76 ::switches::kDisableAcceleratedVideoDecode, | 76 ::switches::kDisableAcceleratedVideoDecode, |
| 77 ::switches::kDisableBrowserPluginCompositing, | 77 ::switches::kDisableBrowserPluginCompositing, |
| 78 ::switches::kDisableEncryptedMedia, | |
| 79 ::switches::kDisableForceCompositingMode, | 78 ::switches::kDisableForceCompositingMode, |
| 80 ::switches::kDisableGpuShaderDiskCache, | 79 ::switches::kDisableGpuShaderDiskCache, |
| 81 ::switches::kDisableGpuWatchdog, | 80 ::switches::kDisableGpuWatchdog, |
| 81 ::switches::kDisableLegacyEncryptedMedia, |
| 82 ::switches::kDisablePanelFitting, | 82 ::switches::kDisablePanelFitting, |
| 83 ::switches::kDisableSeccompFilterSandbox, | 83 ::switches::kDisableSeccompFilterSandbox, |
| 84 ::switches::kDisableThreadedCompositing, | 84 ::switches::kDisableThreadedCompositing, |
| 85 ::switches::kDisableTouchDragDrop, | 85 ::switches::kDisableTouchDragDrop, |
| 86 ::switches::kDisableTouchEditing, | 86 ::switches::kDisableTouchEditing, |
| 87 ::switches::kDisableWebKitMediaSource, |
| 87 ::switches::kEnableAcceleratedOverflowScroll, | 88 ::switches::kEnableAcceleratedOverflowScroll, |
| 88 ::switches::kEnableBeginFrameScheduling, | 89 ::switches::kEnableBeginFrameScheduling, |
| 89 ::switches::kEnableBrowserInputController, | 90 ::switches::kEnableBrowserInputController, |
| 90 ::switches::kEnableCompositingForFixedPosition, | 91 ::switches::kEnableCompositingForFixedPosition, |
| 92 ::switches::kEnableEncryptedMedia, |
| 91 ::switches::kEnableGestureTapHighlight, | 93 ::switches::kEnableGestureTapHighlight, |
| 92 ::switches::kDisableGestureTapHighlight, | 94 ::switches::kDisableGestureTapHighlight, |
| 93 ::switches::kDisableGpuSandbox, | 95 ::switches::kDisableGpuSandbox, |
| 94 ::switches::kEnableLogging, | 96 ::switches::kEnableLogging, |
| 95 ::switches::kEnablePinch, | 97 ::switches::kEnablePinch, |
| 96 ::switches::kEnableThreadedCompositing, | 98 ::switches::kEnableThreadedCompositing, |
| 97 ::switches::kEnableTouchDragDrop, | 99 ::switches::kEnableTouchDragDrop, |
| 98 ::switches::kEnableTouchEditing, | 100 ::switches::kEnableTouchEditing, |
| 99 ::switches::kEnableViewport, | 101 ::switches::kEnableViewport, |
| 100 ::switches::kForceDeviceScaleFactor, | 102 ::switches::kForceDeviceScaleFactor, |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 // Relaunch chrome without session manager on dev box. | 340 // Relaunch chrome without session manager on dev box. |
| 339 ReLaunch(command_line); | 341 ReLaunch(command_line); |
| 340 return; | 342 return; |
| 341 } | 343 } |
| 342 | 344 |
| 343 // ChromeRestartRequest deletes itself after request sent to session manager. | 345 // ChromeRestartRequest deletes itself after request sent to session manager. |
| 344 (new ChromeRestartRequest(command_line))->Start(); | 346 (new ChromeRestartRequest(command_line))->Start(); |
| 345 } | 347 } |
| 346 | 348 |
| 347 } // namespace chromeos | 349 } // namespace chromeos |
| OLD | NEW |