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

Unified Diff: athena/extensions/shell/athena_shell_scheme_classifier.cc

Issue 640103002: Adds full-functional search results for Athena on Chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix DEPS Created 6 years, 2 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
Index: athena/extensions/shell/athena_shell_scheme_classifier.cc
diff --git a/athena/extensions/shell/athena_shell_scheme_classifier.cc b/athena/extensions/shell/athena_shell_scheme_classifier.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a66d3737a522987b42819168fafd8f4be5a16cf0
--- /dev/null
+++ b/athena/extensions/shell/athena_shell_scheme_classifier.cc
@@ -0,0 +1,27 @@
+// 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/extensions/shell/athena_shell_scheme_classifier.h"
+
+#include "components/metrics/proto/omnibox_input_type.pb.h"
+#include "net/url_request/url_request.h"
+
+using metrics::OmniboxInputType::Type;
+
+namespace athena {
+
+AthenaShellSchemeClassifier::AthenaShellSchemeClassifier() {
+}
+
+AthenaShellSchemeClassifier::~AthenaShellSchemeClassifier() {
+}
+
+Type AthenaShellSchemeClassifier::GetInputTypeForScheme(
+ const std::string& scheme) const {
+ if (net::URLRequest::IsHandledProtocol(scheme))
+ return metrics::OmniboxInputType::URL;
+ return metrics::OmniboxInputType::INVALID;
+}
+
+} // namespace athena
« no previous file with comments | « athena/extensions/shell/athena_shell_scheme_classifier.h ('k') | athena/extensions/shell/shell_search_controller_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698