blob: a66d3737a522987b42819168fafd8f4be5a16cf0 [file] [log] [blame]
// 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