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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 ::switches::kV, | 124 ::switches::kV, |
125 ash::switches::kAshTouchHud, | 125 ash::switches::kAshTouchHud, |
126 ash::switches::kAuraLegacyPowerButton, | 126 ash::switches::kAuraLegacyPowerButton, |
127 ash::switches::kAshDisableNewNetworkStatusArea, | 127 ash::switches::kAshDisableNewNetworkStatusArea, |
128 // Please keep these in alphabetical order. Non-UI Compositor switches | 128 // Please keep these in alphabetical order. Non-UI Compositor switches |
129 // here should also be added to | 129 // here should also be added to |
130 // content/browser/renderer_host/render_process_host_impl.cc. | 130 // content/browser/renderer_host/render_process_host_impl.cc. |
131 cc::switches::kBackgroundColorInsteadOfCheckerboard, | 131 cc::switches::kBackgroundColorInsteadOfCheckerboard, |
132 cc::switches::kCompositeToMailbox, | 132 cc::switches::kCompositeToMailbox, |
133 cc::switches::kDisableCheapnessEstimator, | 133 cc::switches::kDisableCheapnessEstimator, |
| 134 cc::switches::kDisableColorEstimator, |
134 cc::switches::kDisableImplSidePainting, | 135 cc::switches::kDisableImplSidePainting, |
135 cc::switches::kDisableThreadedAnimation, | 136 cc::switches::kDisableThreadedAnimation, |
136 cc::switches::kEnableCompositorFrameMessage, | 137 cc::switches::kEnableCompositorFrameMessage, |
137 cc::switches::kEnableImplSidePainting, | 138 cc::switches::kEnableImplSidePainting, |
138 cc::switches::kEnablePartialSwap, | 139 cc::switches::kEnablePartialSwap, |
139 cc::switches::kEnablePerTilePainting, | 140 cc::switches::kEnablePerTilePainting, |
140 cc::switches::kEnablePredictionBenchmarking, | 141 cc::switches::kEnablePredictionBenchmarking, |
141 cc::switches::kEnableRightAlignedScheduling, | 142 cc::switches::kEnableRightAlignedScheduling, |
142 cc::switches::kEnableTopControlsPositionCalculation, | 143 cc::switches::kEnableTopControlsPositionCalculation, |
143 cc::switches::kLowResolutionContentsScaleFactor, | 144 cc::switches::kLowResolutionContentsScaleFactor, |
144 cc::switches::kMaxPrepaintTileDistance, | 145 cc::switches::kMaxPrepaintTileDistance, |
145 cc::switches::kMaxTilesForInterestArea, | 146 cc::switches::kMaxTilesForInterestArea, |
146 cc::switches::kMaxUnusedResourceMemoryUsagePercentage, | 147 cc::switches::kMaxUnusedResourceMemoryUsagePercentage, |
147 cc::switches::kNumRasterThreads, | 148 cc::switches::kNumRasterThreads, |
148 cc::switches::kShowCompositedLayerBorders, | 149 cc::switches::kShowCompositedLayerBorders, |
149 cc::switches::kShowCompositedLayerTree, | 150 cc::switches::kShowCompositedLayerTree, |
150 cc::switches::kShowFPSCounter, | 151 cc::switches::kShowFPSCounter, |
151 cc::switches::kShowNonOccludingRects, | 152 cc::switches::kShowNonOccludingRects, |
152 cc::switches::kShowOccludingRects, | 153 cc::switches::kShowOccludingRects, |
153 cc::switches::kShowPropertyChangedRects, | 154 cc::switches::kShowPropertyChangedRects, |
154 cc::switches::kShowReplicaScreenSpaceRects, | 155 cc::switches::kShowReplicaScreenSpaceRects, |
155 cc::switches::kShowScreenSpaceRects, | 156 cc::switches::kShowScreenSpaceRects, |
156 cc::switches::kShowSurfaceDamageRects, | 157 cc::switches::kShowSurfaceDamageRects, |
157 cc::switches::kSlowDownRasterScaleFactor, | 158 cc::switches::kSlowDownRasterScaleFactor, |
158 cc::switches::kTraceAllRenderedFrames, | 159 cc::switches::kTraceAllRenderedFrames, |
159 cc::switches::kTraceOverdraw, | 160 cc::switches::kTraceOverdraw, |
160 cc::switches::kUseColorEstimator, | |
161 cc::switches::kUIEnablePartialSwap, | 161 cc::switches::kUIEnablePartialSwap, |
162 cc::switches::kUIEnablePerTilePainting, | 162 cc::switches::kUIEnablePerTilePainting, |
163 chromeos::switches::kDbusStub, | 163 chromeos::switches::kDbusStub, |
164 gfx::switches::kEnableBrowserTextSubpixelPositioning, | 164 gfx::switches::kEnableBrowserTextSubpixelPositioning, |
165 gfx::switches::kEnableWebkitTextSubpixelPositioning, | 165 gfx::switches::kEnableWebkitTextSubpixelPositioning, |
166 views::corewm::switches::kNoDropShadows, | 166 views::corewm::switches::kNoDropShadows, |
167 views::corewm::switches::kWindowAnimationsDisabled, | 167 views::corewm::switches::kWindowAnimationsDisabled, |
168 }; | 168 }; |
169 command_line->CopySwitchesFrom(base_command_line, | 169 command_line->CopySwitchesFrom(base_command_line, |
170 kForwardSwitches, | 170 kForwardSwitches, |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 // Relaunch chrome without session manager on dev box. | 328 // Relaunch chrome without session manager on dev box. |
329 ReLaunch(command_line); | 329 ReLaunch(command_line); |
330 return; | 330 return; |
331 } | 331 } |
332 | 332 |
333 // ChromeRestartRequest deletes itself after request sent to session manager. | 333 // ChromeRestartRequest deletes itself after request sent to session manager. |
334 (new ChromeRestartRequest(command_line))->Start(); | 334 (new ChromeRestartRequest(command_line))->Start(); |
335 } | 335 } |
336 | 336 |
337 } // namespace chromeos | 337 } // namespace chromeos |
OLD | NEW |