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

Unified Diff: components/autocomplete/test_scheme_classifier.cc

Issue 443043003: Rename components/autocomplete to components/omnibox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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
« no previous file with comments | « components/autocomplete/test_scheme_classifier.h ('k') | components/autocomplete/url_prefix.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autocomplete/test_scheme_classifier.cc
diff --git a/components/autocomplete/test_scheme_classifier.cc b/components/autocomplete/test_scheme_classifier.cc
deleted file mode 100644
index 8eef9b0685943c938b80df0339b2ab9ab9e623d9..0000000000000000000000000000000000000000
--- a/components/autocomplete/test_scheme_classifier.cc
+++ /dev/null
@@ -1,29 +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 "components/autocomplete/test_scheme_classifier.h"
-#include "components/metrics/proto/omnibox_input_type.pb.h"
-#include "net/url_request/url_request.h"
-#include "url/url_constants.h"
-
-TestSchemeClassifier::TestSchemeClassifier() {}
-
-TestSchemeClassifier::~TestSchemeClassifier() {}
-
-metrics::OmniboxInputType::Type TestSchemeClassifier::GetInputTypeForScheme(
- const std::string& scheme) const {
- // This doesn't check the preference but check some chrome-ish schemes.
- const char* kKnownURLSchemes[] = {
- url::kFileScheme, url::kAboutScheme, url::kFtpScheme, url::kBlobScheme,
- url::kFileSystemScheme, "view-source", "javascript", "chrome", "chrome-ui",
- };
- for (size_t i = 0; i < arraysize(kKnownURLSchemes); ++i) {
- if (scheme == kKnownURLSchemes[i])
- return metrics::OmniboxInputType::URL;
- }
- if (net::URLRequest::IsHandledProtocol(scheme))
- return metrics::OmniboxInputType::URL;
-
- return metrics::OmniboxInputType::INVALID;
-}
« no previous file with comments | « components/autocomplete/test_scheme_classifier.h ('k') | components/autocomplete/url_prefix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698