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

Unified Diff: chrome/browser/renderer_host/chrome_render_view_host_observer.cc

Issue 8470004: Packaged apps can be granted file:/// access too. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/chrome_render_view_host_observer.cc
diff --git a/chrome/browser/renderer_host/chrome_render_view_host_observer.cc b/chrome/browser/renderer_host/chrome_render_view_host_observer.cc
index 3a2713d31eae6ba2a3cde000304abc271844688c..01ef4a67879ae0f5cf68b401dd1d9bf94964b2ff 100644
--- a/chrome/browser/renderer_host/chrome_render_view_host_observer.cc
+++ b/chrome/browser/renderer_host/chrome_render_view_host_observer.cc
@@ -114,13 +114,12 @@ void ChromeRenderViewHostObserver::InitRenderViewForExtensions() {
type == Extension::TYPE_PACKAGED_APP) {
ChildProcessSecurityPolicy::GetInstance()->GrantScheme(
process->GetID(), chrome::kChromeUIScheme);
- }
- if (type == Extension::TYPE_EXTENSION &&
- profile_->GetExtensionService()->extension_prefs()->AllowFileAccess(
+ if (profile_->GetExtensionService()->extension_prefs()->AllowFileAccess(
extension->id())) {
- ChildProcessSecurityPolicy::GetInstance()->GrantScheme(
- process->GetID(), chrome::kFileScheme);
+ ChildProcessSecurityPolicy::GetInstance()->GrantScheme(
+ process->GetID(), chrome::kFileScheme);
+ }
}
if (type == Extension::TYPE_EXTENSION ||
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698