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

Side by Side Diff: views/examples/examples_main.cc

Issue 8343023: rename Run in MessageLoopForUI to RunWithDispatcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 9 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « views/desktop/desktop_main.cc ('k') | views/focus/focus_manager_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "views/examples/examples_main.h" 5 #include "views/examples/examples_main.h"
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/i18n/icu_util.h" 9 #include "base/i18n/icu_util.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 // We do not use this header: chrome/common/chrome_switches.h 179 // We do not use this header: chrome/common/chrome_switches.h
180 // because that would create a bad dependency back on Chrome. 180 // because that would create a bad dependency back on Chrome.
181 views::Widget::SetPureViews( 181 views::Widget::SetPureViews(
182 CommandLine::ForCurrentProcess()->HasSwitch("use-pure-views")); 182 CommandLine::ForCurrentProcess()->HasSwitch("use-pure-views"));
183 183
184 examples::ExamplesMain main; 184 examples::ExamplesMain main;
185 main.Init(); 185 main.Init();
186 186
187 views::AcceleratorHandler accelerator_handler; 187 views::AcceleratorHandler accelerator_handler;
188 MessageLoopForUI::current()->Run(&accelerator_handler); 188 MessageLoopForUI::current()->RunWithDispatcher(&accelerator_handler);
189 189
190 #if defined(OS_WIN) 190 #if defined(OS_WIN)
191 OleUninitialize(); 191 OleUninitialize();
192 #endif 192 #endif
193 return 0; 193 return 0;
194 } 194 }
OLDNEW
« no previous file with comments | « views/desktop/desktop_main.cc ('k') | views/focus/focus_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698