OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ios/chrome/app/startup/provider_registration.h" |
| 6 |
| 7 #include "ios/chrome/browser/web/web_controller_provider_factory_impl.h" |
| 8 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" |
| 9 |
| 10 @implementation ProviderRegistration |
| 11 |
| 12 + (void)registerProviders { |
| 13 std::unique_ptr<ios::ChromeBrowserProvider> provider = |
| 14 ios::CreateChromeBrowserProvider(); |
| 15 |
| 16 // Leak the providers. |
| 17 ios::SetChromeBrowserProvider(provider.release()); |
| 18 ios::SetWebControllerProviderFactory(new WebControllerProviderFactoryImpl()); |
| 19 } |
| 20 |
| 21 @end |
OLD | NEW |