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

Unified Diff: components/omnibox/browser/keyword_provider_unittest.cc

Issue 1868763002: Remove URLRequest::IsHandledProtocol and IsHandledURL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase (needs fixing) Created 4 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: components/omnibox/browser/keyword_provider_unittest.cc
diff --git a/components/omnibox/browser/keyword_provider_unittest.cc b/components/omnibox/browser/keyword_provider_unittest.cc
index 8c4e4bf7d8d5d646436fdf67e629d99ba35fb5bc..02850e2062e64d4fd9eb84ac4187e4ab7d24a1b3 100644
--- a/components/omnibox/browser/keyword_provider_unittest.cc
+++ b/components/omnibox/browser/keyword_provider_unittest.cc
@@ -26,6 +26,7 @@
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
+#include "url/url_constants.h"
using base::ASCIIToUTF16;
@@ -35,8 +36,10 @@ class TestingSchemeClassifier : public AutocompleteSchemeClassifier {
public:
metrics::OmniboxInputType::Type GetInputTypeForScheme(
const std::string& scheme) const override {
- if (net::URLRequest::IsHandledProtocol(scheme))
+ if (scheme == url::kHttpScheme || scheme == url::kHttpsScheme ||
+ scheme == url::kWsScheme || scheme == url::kWssScheme) {
return metrics::OmniboxInputType::URL;
+ }
return metrics::OmniboxInputType::INVALID;
}
};
« no previous file with comments | « components/omnibox/browser/autocomplete_provider_unittest.cc ('k') | components/omnibox/browser/test_scheme_classifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698