| 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" | |
| 10 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 11 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| 12 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 13 #include "base/path_service.h" | 12 #include "base/path_service.h" |
| 14 #include "base/prefs/json_pref_store.h" | 13 #include "base/prefs/json_pref_store.h" |
| 15 #include "base/prefs/pref_service.h" | 14 #include "base/prefs/pref_service.h" |
| 16 #include "base/process/launch.h" | 15 #include "base/process/launch.h" |
| 17 #include "base/strings/string_split.h" | 16 #include "base/strings/string_split.h" |
| 18 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
| 19 #include "base/sys_info.h" | 18 #include "base/sys_info.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 40 #include "ui/app_list/app_list_switches.h" | 39 #include "ui/app_list/app_list_switches.h" |
| 41 #include "ui/base/ui_base_switches.h" | 40 #include "ui/base/ui_base_switches.h" |
| 42 #include "ui/compositor/compositor_switches.h" | 41 #include "ui/compositor/compositor_switches.h" |
| 43 #include "ui/events/event_switches.h" | 42 #include "ui/events/event_switches.h" |
| 44 #include "ui/gfx/switches.h" | 43 #include "ui/gfx/switches.h" |
| 45 #include "ui/gl/gl_switches.h" | 44 #include "ui/gl/gl_switches.h" |
| 46 #include "ui/ozone/public/ozone_switches.h" | 45 #include "ui/ozone/public/ozone_switches.h" |
| 47 #include "ui/wm/core/wm_core_switches.h" | 46 #include "ui/wm/core/wm_core_switches.h" |
| 48 #include "url/gurl.h" | 47 #include "url/gurl.h" |
| 49 | 48 |
| 49 #if !defined(USE_ATHENA) |
| 50 #include "ash/ash_switches.h" |
| 51 #endif |
| 52 |
| 50 using content::BrowserThread; | 53 using content::BrowserThread; |
| 51 | 54 |
| 52 namespace chromeos { | 55 namespace chromeos { |
| 53 | 56 |
| 54 namespace { | 57 namespace { |
| 55 | 58 |
| 56 // Increase logging level for Guest mode to avoid INFO messages in logs. | 59 // Increase logging level for Guest mode to avoid INFO messages in logs. |
| 57 const char kGuestModeLoggingLevel[] = "1"; | 60 const char kGuestModeLoggingLevel[] = "1"; |
| 58 | 61 |
| 59 // Format of command line switch. | 62 // Format of command line switch. |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 ::switches::kEnableWebRtcHWVp8Encoding, | 158 ::switches::kEnableWebRtcHWVp8Encoding, |
| 156 ::switches::kEnableWebRtcHWH264Encoding, | 159 ::switches::kEnableWebRtcHWH264Encoding, |
| 157 #endif | 160 #endif |
| 158 ::switches::kDisableVaapiAcceleratedVideoEncode, | 161 ::switches::kDisableVaapiAcceleratedVideoEncode, |
| 159 #if defined(USE_OZONE) | 162 #if defined(USE_OZONE) |
| 160 ::switches::kOzonePlatform, | 163 ::switches::kOzonePlatform, |
| 161 ::switches::kOzoneUseSurfaceless, | 164 ::switches::kOzoneUseSurfaceless, |
| 162 #endif | 165 #endif |
| 163 app_list::switches::kDisableSyncAppList, | 166 app_list::switches::kDisableSyncAppList, |
| 164 app_list::switches::kEnableSyncAppList, | 167 app_list::switches::kEnableSyncAppList, |
| 168 #if !defined(USE_ATHENA) |
| 165 ash::switches::kAshDefaultWallpaperLarge, | 169 ash::switches::kAshDefaultWallpaperLarge, |
| 166 ash::switches::kAshDefaultWallpaperSmall, | 170 ash::switches::kAshDefaultWallpaperSmall, |
| 167 ash::switches::kAshGuestWallpaperLarge, | 171 ash::switches::kAshGuestWallpaperLarge, |
| 168 ash::switches::kAshGuestWallpaperSmall, | 172 ash::switches::kAshGuestWallpaperSmall, |
| 169 ash::switches::kAshHostWindowBounds, | 173 ash::switches::kAshHostWindowBounds, |
| 170 ash::switches::kAshTouchHud, | 174 ash::switches::kAshTouchHud, |
| 171 ash::switches::kAuraLegacyPowerButton, | 175 ash::switches::kAuraLegacyPowerButton, |
| 176 #endif |
| 172 // Please keep these in alphabetical order. Non-UI Compositor switches | 177 // Please keep these in alphabetical order. Non-UI Compositor switches |
| 173 // here should also be added to | 178 // here should also be added to |
| 174 // content/browser/renderer_host/render_process_host_impl.cc. | 179 // content/browser/renderer_host/render_process_host_impl.cc. |
| 175 cc::switches::kCompositeToMailbox, | 180 cc::switches::kCompositeToMailbox, |
| 176 cc::switches::kDisableCompositedAntialiasing, | 181 cc::switches::kDisableCompositedAntialiasing, |
| 177 cc::switches::kDisableMainFrameBeforeActivation, | 182 cc::switches::kDisableMainFrameBeforeActivation, |
| 178 cc::switches::kDisablePinchVirtualViewport, | 183 cc::switches::kDisablePinchVirtualViewport, |
| 179 cc::switches::kDisableThreadedAnimation, | 184 cc::switches::kDisableThreadedAnimation, |
| 180 cc::switches::kEnableGpuBenchmarking, | 185 cc::switches::kEnableGpuBenchmarking, |
| 181 cc::switches::kEnablePinchVirtualViewport, | 186 cc::switches::kEnablePinchVirtualViewport, |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 // Relaunch chrome without session manager on dev box. | 375 // Relaunch chrome without session manager on dev box. |
| 371 ReLaunch(command_line); | 376 ReLaunch(command_line); |
| 372 return; | 377 return; |
| 373 } | 378 } |
| 374 | 379 |
| 375 // ChromeRestartRequest deletes itself after request sent to session manager. | 380 // ChromeRestartRequest deletes itself after request sent to session manager. |
| 376 (new ChromeRestartRequest(command_line))->Start(); | 381 (new ChromeRestartRequest(command_line))->Start(); |
| 377 } | 382 } |
| 378 | 383 |
| 379 } // namespace chromeos | 384 } // namespace chromeos |
| OLD | NEW |