| 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 std::string DeriveCommandLine(const GURL& start_url, | 64 std::string DeriveCommandLine(const GURL& start_url, |
| 65 const CommandLine& base_command_line, | 65 const CommandLine& base_command_line, |
| 66 const base::DictionaryValue& new_switches, | 66 const base::DictionaryValue& new_switches, |
| 67 CommandLine* command_line) { | 67 CommandLine* command_line) { |
| 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::kDisableAccelerated2dCanvas, | 71 ::switches::kDisableAccelerated2dCanvas, |
| 72 ::switches::kDisableAcceleratedOverflowScroll, | 72 ::switches::kDisableAcceleratedOverflowScroll, |
| 73 ::switches::kDisableAcceleratedVideoDecode, | 73 ::switches::kDisableAcceleratedVideoDecode, |
| 74 ::switches::kDisableBrowserPluginCompositing, | |
| 75 ::switches::kDisableDelegatedRenderer, | 74 ::switches::kDisableDelegatedRenderer, |
| 76 ::switches::kDisableFastTextAutosizing, | 75 ::switches::kDisableFastTextAutosizing, |
| 77 ::switches::kDisableFiltersOverIPC, | 76 ::switches::kDisableFiltersOverIPC, |
| 78 ::switches::kDisableForceCompositingMode, | 77 ::switches::kDisableForceCompositingMode, |
| 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, |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 // Relaunch chrome without session manager on dev box. | 369 // Relaunch chrome without session manager on dev box. |
| 371 ReLaunch(command_line); | 370 ReLaunch(command_line); |
| 372 return; | 371 return; |
| 373 } | 372 } |
| 374 | 373 |
| 375 // ChromeRestartRequest deletes itself after request sent to session manager. | 374 // ChromeRestartRequest deletes itself after request sent to session manager. |
| 376 (new ChromeRestartRequest(command_line))->Start(); | 375 (new ChromeRestartRequest(command_line))->Start(); |
| 377 } | 376 } |
| 378 | 377 |
| 379 } // namespace chromeos | 378 } // namespace chromeos |
| OLD | NEW |