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

Unified Diff: chromecast/common/cast_content_client.cc

Issue 2622693002: Cleanup of static lists of schemes & origins that are created at startup. (Closed)
Patch Set: merge Created 3 years, 11 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 | « chromecast/common/cast_content_client.h ('k') | components/test/components_test_suite.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/common/cast_content_client.cc
diff --git a/chromecast/common/cast_content_client.cc b/chromecast/common/cast_content_client.cc
index 1ad43e347b92f11f8681434bc11c35d1f442e493..3f4cc700354f96aded3923e64a03c172b3365b7d 100644
--- a/chromecast/common/cast_content_client.cc
+++ b/chromecast/common/cast_content_client.cc
@@ -56,10 +56,6 @@ std::string BuildAndroidOsInfo() {
}
#endif
-const url::SchemeWithType kChromeResourceSchemeWithType = {
- kChromeResourceScheme, url::SCHEME_WITHOUT_PORT
-};
-
} // namespace
std::string GetUserAgent() {
@@ -83,11 +79,8 @@ std::string GetUserAgent() {
CastContentClient::~CastContentClient() {
}
-void CastContentClient::AddAdditionalSchemes(
- std::vector<url::SchemeWithType>* standard_schemes,
- std::vector<url::SchemeWithType>* referrer_schemes,
- std::vector<std::string>* savable_schemes) {
- standard_schemes->push_back(kChromeResourceSchemeWithType);
+void CastContentClient::AddAdditionalSchemes(Schemes* schemes) {
+ schemes->standard_schemes.push_back(kChromeResourceScheme);
}
std::string CastContentClient::GetUserAgent() const {
« no previous file with comments | « chromecast/common/cast_content_client.h ('k') | components/test/components_test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698