Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(316)

Unified Diff: components/keyed_service/ios/browser_state_context_converter.cc

Issue 1090373003: Allow cross dependencies between BCKSF and BSKSF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove wrapper methods Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {
+}

Powered by Google App Engine
This is Rietveld 408576698