| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 cc::switches::kTraceOverdraw, | 182 cc::switches::kTraceOverdraw, |
| 183 cc::switches::kUIDisablePartialSwap, | 183 cc::switches::kUIDisablePartialSwap, |
| 184 cc::switches::kUIEnablePerTilePainting, | 184 cc::switches::kUIEnablePerTilePainting, |
| 185 chromeos::switches::kDbusStub, | 185 chromeos::switches::kDbusStub, |
| 186 chromeos::switches::kDisableLoginAnimations, | 186 chromeos::switches::kDisableLoginAnimations, |
| 187 chromeos::switches::kDisableOobeAnimation, | 187 chromeos::switches::kDisableOobeAnimation, |
| 188 chromeos::switches::kHasChromeOSDiamondKey, | 188 chromeos::switches::kHasChromeOSDiamondKey, |
| 189 chromeos::switches::kHasChromeOSKeyboard, | 189 chromeos::switches::kHasChromeOSKeyboard, |
| 190 chromeos::switches::kLoginProfile, | 190 chromeos::switches::kLoginProfile, |
| 191 chromeos::switches::kNaturalScrollDefault, | 191 chromeos::switches::kNaturalScrollDefault, |
| 192 gfx::switches::kEnableBrowserTextSubpixelPositioning, | 192 ::switches::kEnableBrowserTextSubpixelPositioning, |
| 193 gfx::switches::kEnableWebkitTextSubpixelPositioning, | 193 ::switches::kEnableWebkitTextSubpixelPositioning, |
| 194 views::corewm::switches::kNoDropShadows, | 194 views::corewm::switches::kNoDropShadows, |
| 195 views::corewm::switches::kWindowAnimationsDisabled, | 195 views::corewm::switches::kWindowAnimationsDisabled, |
| 196 }; | 196 }; |
| 197 command_line->CopySwitchesFrom(base_command_line, | 197 command_line->CopySwitchesFrom(base_command_line, |
| 198 kForwardSwitches, | 198 kForwardSwitches, |
| 199 arraysize(kForwardSwitches)); | 199 arraysize(kForwardSwitches)); |
| 200 | 200 |
| 201 if (start_url.is_valid()) | 201 if (start_url.is_valid()) |
| 202 command_line->AppendArg(start_url.spec()); | 202 command_line->AppendArg(start_url.spec()); |
| 203 | 203 |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 // Relaunch chrome without session manager on dev box. | 356 // Relaunch chrome without session manager on dev box. |
| 357 ReLaunch(command_line); | 357 ReLaunch(command_line); |
| 358 return; | 358 return; |
| 359 } | 359 } |
| 360 | 360 |
| 361 // ChromeRestartRequest deletes itself after request sent to session manager. | 361 // ChromeRestartRequest deletes itself after request sent to session manager. |
| 362 (new ChromeRestartRequest(command_line))->Start(); | 362 (new ChromeRestartRequest(command_line))->Start(); |
| 363 } | 363 } |
| 364 | 364 |
| 365 } // namespace chromeos | 365 } // namespace chromeos |
| OLD | NEW |