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

Side by Side Diff: ios/chrome/browser/providers/chromium_browser_provider.mm

Issue 2463463002: [ios] Adds ChromiumBrowserProvider. (Closed)
Patch Set: Review. Created 4 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 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 #import "ios/chrome/browser/providers/chromium_browser_provider.h"
6
7 #include "base/memory/ptr_util.h"
8 #import "ios/chrome/browser/providers/chromium_logo_controller.h"
9 #import "ios/chrome/browser/providers/chromium_voice_search_provider.h"
10
11 #if !defined(__has_feature) || !__has_feature(objc_arc)
12 #error "This file requires ARC support."
13 #endif
14
15 ChromiumBrowserProvider::ChromiumBrowserProvider()
16 : voice_search_provider_(base::MakeUnique<ChromiumVoiceSearchProvider>()) {}
17
18 ChromiumBrowserProvider::~ChromiumBrowserProvider() {}
19
20 VoiceSearchProvider* ChromiumBrowserProvider::GetVoiceSearchProvider() const {
21 return voice_search_provider_.get();
22 }
23
24 id<LogoVendor> ChromiumBrowserProvider::CreateLogoVendor(
25 ios::ChromeBrowserState* browser_state,
26 id<UrlLoader> loader) const {
27 return [[ChromiumLogoController alloc] init];
28 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/providers/chromium_browser_provider.h ('k') | ios/chrome/browser/providers/chromium_logo_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698