summaryrefslogtreecommitdiffstats
path: root/mandoline/app/android/mandoline_context_init.cc
blob: fa60c9ce5d4b1b012e53e535507b49e5b4602cf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/bind.h"
#include "base/logging.h"
#include "base/message_loop/message_loop.h"
#include "mojo/runner/context.h"

namespace mojo {
namespace runner {

void InitContext(Context* context) {
  base::MessageLoopForUI::current()->PostTask(
      FROM_HERE,
      base::Bind(&Context::Run,
                 base::Unretained(context),
                 GURL("mojo:phone_ui")));
}

}  // namespace runner
}  // namespace mojo