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

Unified Diff: athena/content/chrome/scheme_classifier_factory.cc

Issue 584263002: Use ChromeAutocompleteSchemeClassifier for Athena on Chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « athena/content/DEPS ('k') | athena/content/public/scheme_classifier_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/content/chrome/scheme_classifier_factory.cc
diff --git a/athena/content/chrome/scheme_classifier_factory.cc b/athena/content/chrome/scheme_classifier_factory.cc
new file mode 100644
index 0000000000000000000000000000000000000000..6e23df1d6f444ff77e5f34c2feea58bbdae62e5a
--- /dev/null
+++ b/athena/content/chrome/scheme_classifier_factory.cc
@@ -0,0 +1,19 @@
+// Copyright 2014 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.
+
+#include "athena/content/public/scheme_classifier_factory.h"
+
+#include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h"
+#include "chrome/browser/profiles/profile.h"
+
+namespace athena {
+
+scoped_ptr<AutocompleteSchemeClassifier> CreateSchemeClassifier(
+ content::BrowserContext* context) {
+ return scoped_ptr<AutocompleteSchemeClassifier>(
+ new ChromeAutocompleteSchemeClassifier(
+ Profile::FromBrowserContext(context)));
+}
+
+} // namespace athena
« no previous file with comments | « athena/content/DEPS ('k') | athena/content/public/scheme_classifier_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698