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

Unified Diff: extensions/shell/common/shell_content_client.cc

Issue 1272113002: Allow url::SchemeHostPort to hold non-file scheme without port (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing copy assignment 2 Created 5 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
Index: extensions/shell/common/shell_content_client.cc
diff --git a/extensions/shell/common/shell_content_client.cc b/extensions/shell/common/shell_content_client.cc
index 1879a8f6e447b753b8e9bae981d81699188c9f6a..a4b018299e31c3e05d346d6e59a4b96e6893fba5 100644
--- a/extensions/shell/common/shell_content_client.cc
+++ b/extensions/shell/common/shell_content_client.cc
@@ -77,9 +77,13 @@ void ShellContentClient::AddPepperPlugins(
void ShellContentClient::AddAdditionalSchemes(
std::vector<std::string>* standard_schemes,
std::vector<std::string>* savable_schemes) {
- standard_schemes->push_back(kExtensionScheme);
+ standard_schemes->push_back(
+ url::SchemeWithType(extensions::kExtensionScheme,
+ url::SCHEME_WITHOUT_PORT));
savable_schemes->push_back(kExtensionScheme);
- standard_schemes->push_back(kExtensionResourceScheme);
+ standard_schemes->push_back(
+ url::SchemeWithType(extensions::kExtensionResourceScheme,
+ url::SCHEME_WITHOUT_PORT));
savable_schemes->push_back(kExtensionResourceScheme);
}

Powered by Google App Engine
This is Rietveld 408576698