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

Unified Diff: ios/public/provider/chrome/browser/chrome_browser_provider.h

Issue 1547403002: Move ownership of ChromeBrowserStateManager to ApplicationContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: ios/public/provider/chrome/browser/chrome_browser_provider.h
diff --git a/ios/public/provider/chrome/browser/chrome_browser_provider.h b/ios/public/provider/chrome/browser/chrome_browser_provider.h
index 008372aae521de40e88291084845c56fd1149370..86df29a1c9bc722d78ca70a3912ad32acb3ff0c6 100644
--- a/ios/public/provider/chrome/browser/chrome_browser_provider.h
+++ b/ios/public/provider/chrome/browser/chrome_browser_provider.h
@@ -79,15 +79,15 @@ class ChromeBrowserProvider {
virtual void AssertBrowserContextKeyedFactoriesBuilt();
// Registers all prefs that will be used via a PrefService attached to a
// Profile.
- virtual void RegisterProfilePrefs(
- user_prefs::PrefRegistrySyncable* registry);
+ virtual void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
// Returns an instance of profile OAuth2 token service provider.
virtual ProfileOAuth2TokenServiceIOSProvider*
GetProfileOAuth2TokenServiceIOSProvider();
// Returns an UpdatableResourceProvider instance.
virtual UpdatableResourceProvider* GetUpdatableResourceProvider();
- // Returns a ChromeBrowserStateManager instance.
- virtual ChromeBrowserStateManager* GetChromeBrowserStateManager();
+ // Creates a new ChromeBrowserStateManager instance.
+ virtual scoped_ptr<ChromeBrowserStateManager>
+ CreateChromeBrowserStateManager();
// Returns an infobar view conforming to the InfoBarViewProtocol. The returned
// object is retained.
virtual InfoBarViewPlaceholder CreateInfoBarView(
« no previous file with comments | « ios/chrome/browser/application_context_impl.cc ('k') | ios/public/provider/chrome/browser/chrome_browser_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698