1// Copyright 2013 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 "ui/base/ime/linux/linux_input_method_context_factory.h"
6
7namespace {
8
9const ui::LinuxInputMethodContextFactory* g_linux_input_method_context_factory =
10    NULL;
11
12}  // namespace
13
14namespace ui {
15
16// static
17const LinuxInputMethodContextFactory*
18LinuxInputMethodContextFactory::instance() {
19  return g_linux_input_method_context_factory;
20}
21
22// static
23void LinuxInputMethodContextFactory::SetInstance(
24    const LinuxInputMethodContextFactory* instance) {
25  g_linux_input_method_context_factory = instance;
26}
27
28}  // namespace ui
29