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

Unified Diff: chrome/common/url_constants.cc

Issue 9950040: Get chrome:// dev tool urls hooked up in content_shell. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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: chrome/common/url_constants.cc
===================================================================
--- chrome/common/url_constants.cc (revision 132480)
+++ chrome/common/url_constants.cc (working copy)
@@ -418,14 +418,19 @@
const char kExtensionScheme[] = "chrome-extension";
-void RegisterChromeSchemes() {
- url_util::AddStandardScheme(kExtensionScheme);
+void GetAdditionalSchemes(
+ std::vector<std::string>* standard_schemes,
+ std::vector<std::string>* savable_schemes) {
+ standard_schemes->push_back(kExtensionScheme);
#if defined(OS_CHROMEOS)
- url_util::AddStandardScheme(kCrosScheme);
+ standard_schemes->push_back(kCrosScheme);
#endif
- // This call will also lock the list of standard schemes.
- content::RegisterContentSchemes(kSavableSchemes);
+ int i = 0;
+ while (kSavableSchemes[i]) {
+ savable_schemes->push_back(std::string(kSavableSchemes[i]));
+ ++i;
+ }
}
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698