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

Side by Side Diff: ios/chrome/app/startup/provider_registration.mm

Issue 2580363002: Upstream Chrome on iOS source code [1/11]. (Closed)
Patch Set: Created 3 years, 12 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 unified diff | Download patch
OLDNEW
(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
OLDNEW
« no previous file with comments | « ios/chrome/app/startup/provider_registration.h ('k') | ios/chrome/app/startup/register_experimental_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698