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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/providers/chromium_browser_provider.mm
diff --git a/ios/chrome/browser/providers/chromium_browser_provider.mm b/ios/chrome/browser/providers/chromium_browser_provider.mm
new file mode 100644
index 0000000000000000000000000000000000000000..1cdae69b2878bb768350a87bb7269a81aeccc7a2
--- /dev/null
+++ b/ios/chrome/browser/providers/chromium_browser_provider.mm
@@ -0,0 +1,28 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#import "ios/chrome/browser/providers/chromium_browser_provider.h"
+
+#include "base/memory/ptr_util.h"
+#import "ios/chrome/browser/providers/chromium_logo_controller.h"
+#import "ios/chrome/browser/providers/chromium_voice_search_provider.h"
+
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
+ChromiumBrowserProvider::ChromiumBrowserProvider()
+ : voice_search_provider_(base::MakeUnique<ChromiumVoiceSearchProvider>()) {}
+
+ChromiumBrowserProvider::~ChromiumBrowserProvider() {}
+
+VoiceSearchProvider* ChromiumBrowserProvider::GetVoiceSearchProvider() const {
+ return voice_search_provider_.get();
+}
+
+id<LogoVendor> ChromiumBrowserProvider::CreateLogoVendor(
+ ios::ChromeBrowserState* browser_state,
+ id<UrlLoader> loader) const {
+ return [[ChromiumLogoController alloc] init];
+}
« 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