| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "athena/extensions/shell/athena_shell_scheme_classifier.h" | |
| 6 | |
| 7 #include "components/metrics/proto/omnibox_input_type.pb.h" | |
| 8 #include "net/url_request/url_request.h" | |
| 9 | |
| 10 using metrics::OmniboxInputType::Type; | |
| 11 | |
| 12 namespace athena { | |
| 13 | |
| 14 AthenaShellSchemeClassifier::AthenaShellSchemeClassifier() { | |
| 15 } | |
| 16 | |
| 17 AthenaShellSchemeClassifier::~AthenaShellSchemeClassifier() { | |
| 18 } | |
| 19 | |
| 20 Type AthenaShellSchemeClassifier::GetInputTypeForScheme( | |
| 21 const std::string& scheme) const { | |
| 22 if (net::URLRequest::IsHandledProtocol(scheme)) | |
| 23 return metrics::OmniboxInputType::URL; | |
| 24 return metrics::OmniboxInputType::INVALID; | |
| 25 } | |
| 26 | |
| 27 } // namespace athena | |
| OLD | NEW |