Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: chrome/browser/chromeos/login/chrome_restart_request.cc

Issue 689683004: Make login code not depend on Ash when use_athena=1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@athena_do_not_use_ash44_ui
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 ::switches::kEnableWebRtcHWVp8Encoding, 159 ::switches::kEnableWebRtcHWVp8Encoding,
157 ::switches::kEnableWebRtcHWH264Encoding, 160 ::switches::kEnableWebRtcHWH264Encoding,
158 #endif 161 #endif
159 ::switches::kDisableVaapiAcceleratedVideoEncode, 162 ::switches::kDisableVaapiAcceleratedVideoEncode,
160 #if defined(USE_OZONE) 163 #if defined(USE_OZONE)
161 ::switches::kOzonePlatform, 164 ::switches::kOzonePlatform,
162 ::switches::kOzoneUseSurfaceless, 165 ::switches::kOzoneUseSurfaceless,
163 #endif 166 #endif
164 app_list::switches::kDisableSyncAppList, 167 app_list::switches::kDisableSyncAppList,
165 app_list::switches::kEnableSyncAppList, 168 app_list::switches::kEnableSyncAppList,
169 #if !defined(USE_ATHENA)
166 ash::switches::kAshDefaultWallpaperLarge, 170 ash::switches::kAshDefaultWallpaperLarge,
167 ash::switches::kAshDefaultWallpaperSmall, 171 ash::switches::kAshDefaultWallpaperSmall,
168 ash::switches::kAshGuestWallpaperLarge, 172 ash::switches::kAshGuestWallpaperLarge,
169 ash::switches::kAshGuestWallpaperSmall, 173 ash::switches::kAshGuestWallpaperSmall,
170 ash::switches::kAshHostWindowBounds, 174 ash::switches::kAshHostWindowBounds,
171 ash::switches::kAshTouchHud, 175 ash::switches::kAshTouchHud,
172 ash::switches::kAuraLegacyPowerButton, 176 ash::switches::kAuraLegacyPowerButton,
177 #endif
173 // Please keep these in alphabetical order. Non-UI Compositor switches 178 // Please keep these in alphabetical order. Non-UI Compositor switches
174 // here should also be added to 179 // here should also be added to
175 // content/browser/renderer_host/render_process_host_impl.cc. 180 // content/browser/renderer_host/render_process_host_impl.cc.
176 cc::switches::kCompositeToMailbox, 181 cc::switches::kCompositeToMailbox,
177 cc::switches::kDisableCompositedAntialiasing, 182 cc::switches::kDisableCompositedAntialiasing,
178 cc::switches::kDisableMainFrameBeforeActivation, 183 cc::switches::kDisableMainFrameBeforeActivation,
179 cc::switches::kDisablePinchVirtualViewport, 184 cc::switches::kDisablePinchVirtualViewport,
180 cc::switches::kDisableThreadedAnimation, 185 cc::switches::kDisableThreadedAnimation,
181 cc::switches::kEnableGpuBenchmarking, 186 cc::switches::kEnableGpuBenchmarking,
182 cc::switches::kEnablePinchVirtualViewport, 187 cc::switches::kEnablePinchVirtualViewport,
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 // Relaunch chrome without session manager on dev box. 376 // Relaunch chrome without session manager on dev box.
372 ReLaunch(command_line); 377 ReLaunch(command_line);
373 return; 378 return;
374 } 379 }
375 380
376 // ChromeRestartRequest deletes itself after request sent to session manager. 381 // ChromeRestartRequest deletes itself after request sent to session manager.
377 (new ChromeRestartRequest(command_line))->Start(); 382 (new ChromeRestartRequest(command_line))->Start();
378 } 383 }
379 384
380 } // namespace chromeos 385 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/helper.cc » ('j') | chrome/browser/chromeos/login/ui/login_display_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698