service_resolver_64: Correctly check all the bytes of the service code.
[chromium-blink-merge.git] / mandoline / app / android / mandoline_context_init.cc
blob4293a4e1783071092b087b87dd4722881f6af65e
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.
5 #include "base/bind.h"
6 #include "base/logging.h"
7 #include "base/message_loop/message_loop.h"
8 #include "mandoline/app/core_services_initialization.h"
9 #include "mojo/runner/context.h"
11 namespace mojo {
12 namespace runner {
14 void InitContext(Context* context) {
15 mandoline::InitCoreServicesForContext(context);
16 base::MessageLoopForUI::current()->PostTask(
17 FROM_HERE,
18 base::Bind(&Context::Run,
19 base::Unretained(context),
20 GURL("mojo:browser")));
23 } // namespace runner
24 } // namespace mojo