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

Side by Side Diff: mojo/services/dbus_echo/dbus_echo_service.cc

Issue 281353005: Mojo: nuke EnvironmentData (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix gn Created 6 years, 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/at_exit.h" 5 #include "base/at_exit.h"
6 #include "base/callback.h" 6 #include "base/callback.h"
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 27 matching lines...) Expand all
38 base::CommandLine::Init(argc, argv); 38 base::CommandLine::Init(argc, argv);
39 39
40 logging::LoggingSettings settings; 40 logging::LoggingSettings settings;
41 settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG; 41 settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG;
42 logging::InitLogging(settings); 42 logging::InitLogging(settings);
43 logging::SetLogItems(false, // Process ID 43 logging::SetLogItems(false, // Process ID
44 false, // Thread ID 44 false, // Thread ID
45 false, // Timestamp 45 false, // Timestamp
46 false); // Tick count 46 false); // Tick count
47 47
48 mojo::Environment env;
49 mojo::embedder::Init(); 48 mojo::embedder::Init();
50 49
51 base::MessageLoopForIO message_loop; 50 base::MessageLoopForIO message_loop;
52 base::RunLoop run_loop; 51 base::RunLoop run_loop;
53 52
54 mojo::DBusExternalService<EchoServiceImpl> echo_service(kServiceName); 53 mojo::DBusExternalService<EchoServiceImpl> echo_service(kServiceName);
55 echo_service.Start(); 54 echo_service.Start();
56 55
57 run_loop.Run(); 56 run_loop.Run();
58 return 0; 57 return 0;
59 } 58 }
OLDNEW
« no previous file with comments | « mojo/service_manager/service_manager_unittest.cc ('k') | mojo/services/view_manager/view_manager_connection_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698