Index: components/keyed_service/ios/browser_state_context_converter.cc |
diff --git a/components/keyed_service/ios/browser_state_context_converter.cc b/components/keyed_service/ios/browser_state_context_converter.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..608bb559b5e193d800aa2ee2e3c187a344eaf4f2 |
--- /dev/null |
+++ b/components/keyed_service/ios/browser_state_context_converter.cc |
@@ -0,0 +1,28 @@ |
+// Copyright 2014 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 "components/keyed_service/ios/browser_state_context_converter.h" |
+ |
+namespace { |
+ |
+// Global BrowserStateContextConverter* instance, may be null. |
+BrowserStateContextConverter* g_browser_state_context_converter = nullptr; |
+ |
+} // namespace |
+ |
+// static |
+void BrowserStateContextConverter::SetInstance( |
+ BrowserStateContextConverter* instance) { |
+ g_browser_state_context_converter = instance; |
+} |
+ |
+BrowserStateContextConverter* BrowserStateContextConverter::GetInstance() { |
+ return g_browser_state_context_converter; |
+} |
+ |
+BrowserStateContextConverter::BrowserStateContextConverter() { |
+} |
+ |
+BrowserStateContextConverter::~BrowserStateContextConverter() { |
+} |