| 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
|
|
|