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

Unified Diff: components/keyed_service/ios/browser_state_helper.h

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_helper.h
diff --git a/components/keyed_service/ios/browser_state_helper.h b/components/keyed_service/ios/browser_state_helper.h
deleted file mode 100644
index 2c4e0b5c433607404910b8acd335e43875d29392..0000000000000000000000000000000000000000
--- a/components/keyed_service/ios/browser_state_helper.h
+++ /dev/null
@@ -1,32 +0,0 @@
-// 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.
-
-#ifndef COMPONENTS_KEYED_SERVICE_IOS_BROWSER_STATE_HELPER_H_
-#define COMPONENTS_KEYED_SERVICE_IOS_BROWSER_STATE_HELPER_H_
-
-namespace base {
-class SupportsUserData;
-}
-
-namespace web {
-class BrowserState;
-}
-
-// TODO(sdefresne): remove this file and all usage of the methods once iOS code
-// only use BrowserStateKeyedServiceFactory, http://crbug.com/419366
-
-// |BrowserStateFromContextFn| converts from a base::SupportsUserData as passed
-// to a (Refcounted)?BrowserStateKeyedServiceFactory to a web::BrowserState.
-using BrowserStateFromContextFn =
- web::BrowserState* (*)(base::SupportsUserData*);
-
-// Registers an helper function to convert a |context| to a web::BrowserState
-// to allow the embedder to overrides how the BSKSF does the conversion.
-void SetBrowserStateFromContextHelper(BrowserStateFromContextFn helper);
-
-// Converts a |context| to a web::BrowserState using the helper registered by
-// the embedder if any. Usage is restricted to //components/keyed_service/ios.
-web::BrowserState* BrowserStateFromContext(base::SupportsUserData* context);
-
-#endif // COMPONENTS_KEYED_SERVICE_IOS_BROWSER_STATE_HELPER_H_
« no previous file with comments | « components/keyed_service/ios/browser_state_dependency_manager.cc ('k') | components/keyed_service/ios/browser_state_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698