| 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
|
|
|