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

Unified Diff: athena/content/shell/scheme_classifier_factory.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/content/shell/scheme_classifier_factory.cc
diff --git a/athena/content/shell/scheme_classifier_factory.cc b/athena/content/shell/scheme_classifier_factory.cc
deleted file mode 100644
index 922de5a867f50291e9f896bca8080d7615f5c150..0000000000000000000000000000000000000000
--- a/athena/content/shell/scheme_classifier_factory.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-// 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 "components/metrics/proto/omnibox_input_type.pb.h"
-#include "net/url_request/url_request.h"
-
-namespace athena {
-
-namespace {
-
-// The AutocompleteSchemeClassifier implementation for athena_main.
-class AthenaShellSchemeClassifier : public AutocompleteSchemeClassifier {
- public:
- AthenaShellSchemeClassifier() {}
- virtual ~AthenaShellSchemeClassifier() {}
-
- // AutocompleteSchemeClassifier:
- virtual metrics::OmniboxInputType::Type GetInputTypeForScheme(
- const std::string& scheme) const override {
- if (net::URLRequest::IsHandledProtocol(scheme))
- return metrics::OmniboxInputType::URL;
- return metrics::OmniboxInputType::INVALID;
- }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(AthenaShellSchemeClassifier);
-};
-
-} // namespace
-
-scoped_ptr<AutocompleteSchemeClassifier> CreateSchemeClassifier(
- content::BrowserContext* context) {
- return scoped_ptr<AutocompleteSchemeClassifier>(
- new AthenaShellSchemeClassifier());
-}
-
-} // namespace athena
« no previous file with comments | « athena/content/public/scheme_classifier_factory.h ('k') | athena/extensions/chrome/app_list_controller_delegate_athena.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698