| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 ::switches::kDisableAccelerated2dCanvas, | 69 ::switches::kDisableAccelerated2dCanvas, |
| 70 ::switches::kDisableAcceleratedOverflowScroll, | 70 ::switches::kDisableAcceleratedOverflowScroll, |
| 71 ::switches::kDisableAcceleratedVideoDecode, | 71 ::switches::kDisableAcceleratedVideoDecode, |
| 72 ::switches::kDisableBrowserPluginCompositing, | 72 ::switches::kDisableBrowserPluginCompositing, |
| 73 ::switches::kDisableDelegatedRenderer, | 73 ::switches::kDisableDelegatedRenderer, |
| 74 ::switches::kDisableFiltersOverIPC, | 74 ::switches::kDisableFiltersOverIPC, |
| 75 ::switches::kDisableForceCompositingMode, | 75 ::switches::kDisableForceCompositingMode, |
| 76 ::switches::kDisableGpuShaderDiskCache, | 76 ::switches::kDisableGpuShaderDiskCache, |
| 77 ::switches::kDisableGpuWatchdog, | 77 ::switches::kDisableGpuWatchdog, |
| 78 ::switches::kDisableGpuCompositing, | 78 ::switches::kDisableGpuCompositing, |
| 79 ::switches::kDisableGpuRasterization, |
| 80 ::switches::kDisableImplSidePainting, |
| 81 ::switches::kDisableMapImage, |
| 79 ::switches::kDisablePrefixedEncryptedMedia, | 82 ::switches::kDisablePrefixedEncryptedMedia, |
| 80 ::switches::kDisablePanelFitting, | 83 ::switches::kDisablePanelFitting, |
| 81 ::switches::kDisableRepaintAfterLayout, | 84 ::switches::kDisableRepaintAfterLayout, |
| 82 ::switches::kDisableSeccompFilterSandbox, | 85 ::switches::kDisableSeccompFilterSandbox, |
| 83 ::switches::kDisableSetuidSandbox, | 86 ::switches::kDisableSetuidSandbox, |
| 84 ::switches::kDisableThreadedCompositing, | 87 ::switches::kDisableThreadedCompositing, |
| 85 ::switches::kDisableTouchDragDrop, | 88 ::switches::kDisableTouchDragDrop, |
| 86 ::switches::kDisableTouchEditing, | 89 ::switches::kDisableTouchEditing, |
| 87 ::switches::kDisableUniversalAcceleratedOverflowScroll, | 90 ::switches::kDisableUniversalAcceleratedOverflowScroll, |
| 88 ::switches::kDisableUnprefixedMediaSource, | 91 ::switches::kDisableUnprefixedMediaSource, |
| 89 ::switches::kDisableWebKitMediaSource, | 92 ::switches::kDisableWebKitMediaSource, |
| 90 ::switches::kDisableAcceleratedFixedRootBackground, | 93 ::switches::kDisableAcceleratedFixedRootBackground, |
| 91 ::switches::kEnableAcceleratedFixedRootBackground, | 94 ::switches::kEnableAcceleratedFixedRootBackground, |
| 92 ::switches::kEnableAcceleratedOverflowScroll, | 95 ::switches::kEnableAcceleratedOverflowScroll, |
| 93 ::switches::kEnableBeginFrameScheduling, | 96 ::switches::kEnableBeginFrameScheduling, |
| 94 ::switches::kEnableCompositingForFixedPosition, | 97 ::switches::kEnableCompositingForFixedPosition, |
| 95 ::switches::kEnableDelegatedRenderer, | 98 ::switches::kEnableDelegatedRenderer, |
| 96 ::switches::kEnableEncryptedMedia, | 99 ::switches::kEnableEncryptedMedia, |
| 97 ::switches::kEnableGestureTapHighlight, | 100 ::switches::kEnableGestureTapHighlight, |
| 98 ::switches::kDisableGestureTapHighlight, | 101 ::switches::kDisableGestureTapHighlight, |
| 99 ::switches::kDisableGpuSandbox, | 102 ::switches::kDisableGpuSandbox, |
| 100 ::switches::kEnableDeferredFilters, | 103 ::switches::kEnableDeferredFilters, |
| 104 ::switches::kEnableGpuRasterization, |
| 105 ::switches::kEnableImplSidePainting, |
| 101 ::switches::kEnableLogging, | 106 ::switches::kEnableLogging, |
| 107 ::switches::kEnableMapImage, |
| 102 ::switches::kEnablePinch, | 108 ::switches::kEnablePinch, |
| 103 ::switches::kEnableRepaintAfterLayout, | 109 ::switches::kEnableRepaintAfterLayout, |
| 104 ::switches::kEnableThreadedCompositing, | 110 ::switches::kEnableThreadedCompositing, |
| 105 ::switches::kEnableTouchDragDrop, | 111 ::switches::kEnableTouchDragDrop, |
| 106 ::switches::kEnableTouchEditing, | 112 ::switches::kEnableTouchEditing, |
| 107 ::switches::kEnableUniversalAcceleratedOverflowScroll, | 113 ::switches::kEnableUniversalAcceleratedOverflowScroll, |
| 108 ::switches::kEnableViewport, | 114 ::switches::kEnableViewport, |
| 109 ::switches::kEnableViewportMeta, | 115 ::switches::kEnableViewportMeta, |
| 110 ::switches::kMainFrameResizesAreOrientationChanges, | 116 ::switches::kMainFrameResizesAreOrientationChanges, |
| 111 ::switches::kForceDeviceScaleFactor, | 117 ::switches::kForceDeviceScaleFactor, |
| 118 ::switches::kForceGpuRasterization, |
| 112 ::switches::kGpuStartupDialog, | 119 ::switches::kGpuStartupDialog, |
| 113 ::switches::kGpuSandboxAllowSysVShm, | 120 ::switches::kGpuSandboxAllowSysVShm, |
| 114 ::switches::kMultiProfiles, | 121 ::switches::kMultiProfiles, |
| 115 ::switches::kNoSandbox, | 122 ::switches::kNoSandbox, |
| 116 ::switches::kNumRasterThreads, | 123 ::switches::kNumRasterThreads, |
| 117 ::switches::kPpapiFlashArgs, | 124 ::switches::kPpapiFlashArgs, |
| 118 ::switches::kPpapiFlashPath, | 125 ::switches::kPpapiFlashPath, |
| 119 ::switches::kPpapiFlashVersion, | 126 ::switches::kPpapiFlashVersion, |
| 120 ::switches::kPpapiInProcess, | 127 ::switches::kPpapiInProcess, |
| 121 ::switches::kRendererStartupDialog, | 128 ::switches::kRendererStartupDialog, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 152 ash::switches::kAshGuestWallpaperSmall, | 159 ash::switches::kAshGuestWallpaperSmall, |
| 153 ash::switches::kAshHostWindowBounds, | 160 ash::switches::kAshHostWindowBounds, |
| 154 ash::switches::kAshTouchHud, | 161 ash::switches::kAshTouchHud, |
| 155 ash::switches::kAuraLegacyPowerButton, | 162 ash::switches::kAuraLegacyPowerButton, |
| 156 // Please keep these in alphabetical order. Non-UI Compositor switches | 163 // Please keep these in alphabetical order. Non-UI Compositor switches |
| 157 // here should also be added to | 164 // here should also be added to |
| 158 // content/browser/renderer_host/render_process_host_impl.cc. | 165 // content/browser/renderer_host/render_process_host_impl.cc. |
| 159 cc::switches::kCompositeToMailbox, | 166 cc::switches::kCompositeToMailbox, |
| 160 cc::switches::kDisableCompositedAntialiasing, | 167 cc::switches::kDisableCompositedAntialiasing, |
| 161 cc::switches::kDisableCompositorTouchHitTesting, | 168 cc::switches::kDisableCompositorTouchHitTesting, |
| 162 cc::switches::kDisableGPURasterization, | |
| 163 cc::switches::kDisableImplSidePainting, | |
| 164 cc::switches::kDisableMapImage, | |
| 165 cc::switches::kDisableThreadedAnimation, | 169 cc::switches::kDisableThreadedAnimation, |
| 166 cc::switches::kEnableGpuBenchmarking, | 170 cc::switches::kEnableGpuBenchmarking, |
| 167 cc::switches::kEnableGPURasterization, | |
| 168 cc::switches::kEnableImplSidePainting, | |
| 169 cc::switches::kEnableMapImage, | |
| 170 cc::switches::kEnablePinchVirtualViewport, | 171 cc::switches::kEnablePinchVirtualViewport, |
| 171 cc::switches::kEnableTopControlsPositionCalculation, | 172 cc::switches::kEnableTopControlsPositionCalculation, |
| 172 cc::switches::kMaxTilesForInterestArea, | 173 cc::switches::kMaxTilesForInterestArea, |
| 173 cc::switches::kMaxUnusedResourceMemoryUsagePercentage, | 174 cc::switches::kMaxUnusedResourceMemoryUsagePercentage, |
| 174 cc::switches::kShowCompositedLayerBorders, | 175 cc::switches::kShowCompositedLayerBorders, |
| 175 cc::switches::kShowFPSCounter, | 176 cc::switches::kShowFPSCounter, |
| 176 cc::switches::kShowLayerAnimationBounds, | 177 cc::switches::kShowLayerAnimationBounds, |
| 177 cc::switches::kShowNonOccludingRects, | 178 cc::switches::kShowNonOccludingRects, |
| 178 cc::switches::kShowOccludingRects, | 179 cc::switches::kShowOccludingRects, |
| 179 cc::switches::kShowPropertyChangedRects, | 180 cc::switches::kShowPropertyChangedRects, |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 // Relaunch chrome without session manager on dev box. | 351 // Relaunch chrome without session manager on dev box. |
| 351 ReLaunch(command_line); | 352 ReLaunch(command_line); |
| 352 return; | 353 return; |
| 353 } | 354 } |
| 354 | 355 |
| 355 // ChromeRestartRequest deletes itself after request sent to session manager. | 356 // ChromeRestartRequest deletes itself after request sent to session manager. |
| 356 (new ChromeRestartRequest(command_line))->Start(); | 357 (new ChromeRestartRequest(command_line))->Start(); |
| 357 } | 358 } |
| 358 | 359 |
| 359 } // namespace chromeos | 360 } // namespace chromeos |
| OLD | NEW |