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

Unified Diff: ui/ozone/demo/ozone_demo.cc

Issue 2769123002: Remove InitializeForUI() from OzonePlatform (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: ui/ozone/demo/ozone_demo.cc
diff --git a/ui/ozone/demo/ozone_demo.cc b/ui/ozone/demo/ozone_demo.cc
index 7b750b34e2bf9ede7780e4d19422d36a2508162d..aa51595d3c421278787a462bf59034eef436dafb 100644
--- a/ui/ozone/demo/ozone_demo.cc
+++ b/ui/ozone/demo/ozone_demo.cc
@@ -339,7 +339,10 @@ int main(int argc, char** argv) {
base::MessageLoopForUI message_loop;
base::TaskScheduler::CreateAndSetSimpleTaskScheduler("OzoneDemo");
- ui::OzonePlatform::InitializeForUI();
tonikitoo 2017/03/23 11:55:18 This used to implicitly call "ui::OzonePlatform::I
Chandan 2017/03/23 12:13:16 Generally, we set single_process to true for tests
fwang 2017/03/23 13:34:11 I would personally keep the current behavior, unle
Chandan 2017/03/27 11:06:40 Acknowledged.
+ ui::OzonePlatform::InitParams params;
+ params.single_process = true;
+ ui::OzonePlatform::InitializeForUI(params);
+
ui::KeyboardLayoutEngineManager::GetKeyboardLayoutEngine()
->SetCurrentLayoutByName("us");

Powered by Google App Engine
This is Rietveld 408576698