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

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

Issue 22793018: <webview>: Implement support for package-local chrome-extension:// URLs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a test to verify that a privileged partition can access a local resource Created 7 years, 3 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_impl_io_data.cc
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc
index a096dd17c7b32a2df962dbdce61b56194fbd7778..dd912032b87b01c657440b7f91080391c9b8a2fe 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -18,6 +18,7 @@
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/custom_handlers/protocol_handler_registry.h"
#include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h"
+#include "chrome/browser/extensions/extension_protocols.h"
#include "chrome/browser/io_thread.h"
#include "chrome/browser/net/chrome_net_log.h"
#include "chrome/browser/net/chrome_network_delegate.h"
@@ -593,6 +594,10 @@ ProfileImplIOData::InitializeAppRequestContext(
network_delegate(),
ftp_factory_.get());
} else {
+ job_factory->SetProtocolHandler(
Charlie Reis 2013/09/24 19:41:55 This doesn't make sense to me. First, the comment
nasko 2013/09/24 20:02:01 This indeed looks incorrect and I think it goes ba
Fady Samuel 2013/09/24 23:05:02 Looks like profile_impl_io_data doesn't have enoug
+ extensions::kExtensionScheme,
+ CreateExtensionProtocolHandler(is_incognito(),
+ GetExtensionInfoMap()));
Charlie Reis 2013/09/24 19:41:55 nit: 598-600 all have too much indent.
Fady Samuel 2013/09/24 23:05:02 Done.
top_job_factory = job_factory.PassAs<net::URLRequestJobFactory>();
}
context->SetJobFactory(top_job_factory.Pass());

Powered by Google App Engine
This is Rietveld 408576698