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

Unified Diff: ios/chrome/browser/autocomplete/in_memory_url_index_factory.h

Issue 1405093012: [iOS] Add InMemoryURLIndexFactory::GetDefaultFactory() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Format Created 5 years, 1 month 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
« no previous file with comments | « no previous file | ios/chrome/browser/autocomplete/in_memory_url_index_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/autocomplete/in_memory_url_index_factory.h
diff --git a/ios/chrome/browser/autocomplete/in_memory_url_index_factory.h b/ios/chrome/browser/autocomplete/in_memory_url_index_factory.h
index 03cf9c89b927c4e2b49ffde093f85ab26b219458..7e7cdeddebd6df25840d5c8ecfccfffb0f29a43c 100644
--- a/ios/chrome/browser/autocomplete/in_memory_url_index_factory.h
+++ b/ios/chrome/browser/autocomplete/in_memory_url_index_factory.h
@@ -28,6 +28,11 @@ class InMemoryURLIndexFactory : public BrowserStateKeyedServiceFactory {
ios::ChromeBrowserState* browser_state);
static InMemoryURLIndexFactory* GetInstance();
+ // Returns the default factory used to build InMemoryURLIndex. Can be
+ // registered with SetTestingFactory to use the InMemoryURLIndex instance
+ // during testing.
+ static TestingFactoryFunction GetDefaultFactory();
+
private:
friend struct base::DefaultSingletonTraits<InMemoryURLIndexFactory>;
« no previous file with comments | « no previous file | ios/chrome/browser/autocomplete/in_memory_url_index_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698