Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / keyed_service / ios / browser_state_context_converter.cc
blob608bb559b5e193d800aa2ee2e3c187a344eaf4f2
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
3 // found in the LICENSE file.
5 #include "components/keyed_service/ios/browser_state_context_converter.h"
7 namespace {
9 // Global BrowserStateContextConverter* instance, may be null.
10 BrowserStateContextConverter* g_browser_state_context_converter = nullptr;
12 } // namespace
14 // static
15 void BrowserStateContextConverter::SetInstance(
16 BrowserStateContextConverter* instance) {
17 g_browser_state_context_converter = instance;
20 BrowserStateContextConverter* BrowserStateContextConverter::GetInstance() {
21 return g_browser_state_context_converter;
24 BrowserStateContextConverter::BrowserStateContextConverter() {
27 BrowserStateContextConverter::~BrowserStateContextConverter() {