| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "base/bind.h" | |
| 6 #include "base/logging.h" | |
| 7 #include "base/message_loop/message_loop.h" | |
| 8 #include "mojo/shell/standalone/context.h" | |
| 9 | |
| 10 namespace mojo { | |
| 11 namespace shell { | |
| 12 | |
| 13 void InitContext(Context* context) { | |
| 14 base::MessageLoopForUI::current()->PostTask( | |
| 15 FROM_HERE, | |
| 16 base::Bind(&Context::Run, | |
| 17 base::Unretained(context), | |
| 18 GURL("mojo:phone_ui"))); | |
| 19 } | |
| 20 | |
| 21 } // namespace shell | |
| 22 } // namespace mojo | |
| OLD | NEW |