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

Unified Diff: chrome/browser/profiles/profile_io_data.cc

Issue 9909019: Add schema chrome-extension-resource:// for extension resources (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add tests 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/browser/profiles/profile_io_data.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index f1451544737f6d4dfc4d05aa1e665fade4a6f288..daa9e11e9cacb8e4a075a6d0eecbca74efa596bf 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -286,6 +286,7 @@ bool ProfileIOData::IsHandledProtocol(const std::string& scheme) {
#endif // defined(OS_CHROMEOS)
chrome::kBlobScheme,
chrome::kFileSystemScheme,
+ chrome::kExtensionResourceScheme,
};
for (size_t i = 0; i < arraysize(kProtocolList); ++i) {
if (scheme == kProtocolList[i])
@@ -473,6 +474,10 @@ void ProfileIOData::LazyInitialize() const {
profile_params_->extension_info_map));
DCHECK(set_protocol);
set_protocol = job_factory_->SetProtocolHandler(
+ chrome::kExtensionResourceScheme,
+ CreateExtensionResourceProtocolHandler());
+ DCHECK(set_protocol);
+ set_protocol = job_factory_->SetProtocolHandler(
chrome::kChromeUIScheme,
ChromeURLDataManagerBackend::CreateProtocolHandler(
chrome_url_data_manager_backend_.get()));

Powered by Google App Engine
This is Rietveld 408576698