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

Side by Side Diff: ash/shell/shell_delegate_impl.cc

Issue 1640503002: ash: Do not use MessageLoopForUI when not needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ash/shell/shell_delegate_impl.h" 5 #include "ash/shell/shell_delegate_impl.h"
6 6
7 #include "ash/accessibility_delegate.h" 7 #include "ash/accessibility_delegate.h"
8 #include "ash/default_accessibility_delegate.h" 8 #include "ash/default_accessibility_delegate.h"
9 #include "ash/default_user_wallpaper_delegate.h" 9 #include "ash/default_user_wallpaper_delegate.h"
10 #include "ash/gpu_support_stub.h" 10 #include "ash/gpu_support_stub.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 return false; 165 return false;
166 } 166 }
167 167
168 void ShellDelegateImpl::PreInit() { 168 void ShellDelegateImpl::PreInit() {
169 } 169 }
170 170
171 void ShellDelegateImpl::PreShutdown() { 171 void ShellDelegateImpl::PreShutdown() {
172 } 172 }
173 173
174 void ShellDelegateImpl::Exit() { 174 void ShellDelegateImpl::Exit() {
175 base::MessageLoopForUI::current()->QuitWhenIdle(); 175 base::MessageLoop::current()->QuitWhenIdle();
176 } 176 }
177 177
178 keyboard::KeyboardUI* ShellDelegateImpl::CreateKeyboardUI() { 178 keyboard::KeyboardUI* ShellDelegateImpl::CreateKeyboardUI() {
179 return new TestKeyboardUI; 179 return new TestKeyboardUI;
180 } 180 }
181 181
182 void ShellDelegateImpl::VirtualKeyboardActivated(bool activated) { 182 void ShellDelegateImpl::VirtualKeyboardActivated(bool activated) {
183 } 183 }
184 184
185 void ShellDelegateImpl::AddVirtualKeyboardStateObserver( 185 void ShellDelegateImpl::AddVirtualKeyboardStateObserver(
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 base::string16 ShellDelegateImpl::GetProductName() const { 240 base::string16 ShellDelegateImpl::GetProductName() const {
241 return base::string16(); 241 return base::string16();
242 } 242 }
243 243
244 gfx::Image ShellDelegateImpl::GetDeprecatedAcceleratorImage() const { 244 gfx::Image ShellDelegateImpl::GetDeprecatedAcceleratorImage() const {
245 return gfx::Image(); 245 return gfx::Image();
246 } 246 }
247 247
248 } // namespace shell 248 } // namespace shell
249 } // namespace ash 249 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698