| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/extensions/installed_loader.h" | 5 #include "chrome/browser/extensions/installed_loader.h" |
| 6 | 6 |
| 7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
| 9 #include "base/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 11 #include "base/threading/thread_restrictions.h" | 11 #include "base/threading/thread_restrictions.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
| 14 #include "chrome/browser/extensions/api/runtime/runtime_api.h" | 14 #include "chrome/browser/extensions/api/runtime/runtime_api.h" |
| 15 #include "chrome/browser/extensions/extension_action_manager.h" | 15 #include "chrome/browser/extensions/extension_action_manager.h" |
| 16 #include "chrome/browser/extensions/extension_prefs.h" | 16 #include "chrome/browser/extensions/extension_prefs.h" |
| 17 #include "chrome/browser/extensions/extension_service.h" | 17 #include "chrome/browser/extensions/extension_service.h" |
| 18 #include "chrome/browser/extensions/extension_system.h" | 18 #include "chrome/browser/extensions/extension_system.h" |
| 19 #include "chrome/browser/extensions/management_policy.h" | 19 #include "chrome/browser/extensions/management_policy.h" |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 int InstalledLoader::GetCreationFlags(const ExtensionInfo* info) { | 404 int InstalledLoader::GetCreationFlags(const ExtensionInfo* info) { |
| 405 int flags = extension_prefs_->GetCreationFlags(info->extension_id); | 405 int flags = extension_prefs_->GetCreationFlags(info->extension_id); |
| 406 if (!Manifest::IsUnpackedLocation(info->extension_location)) | 406 if (!Manifest::IsUnpackedLocation(info->extension_location)) |
| 407 flags |= Extension::REQUIRE_KEY; | 407 flags |= Extension::REQUIRE_KEY; |
| 408 if (extension_prefs_->AllowFileAccess(info->extension_id)) | 408 if (extension_prefs_->AllowFileAccess(info->extension_id)) |
| 409 flags |= Extension::ALLOW_FILE_ACCESS; | 409 flags |= Extension::ALLOW_FILE_ACCESS; |
| 410 return flags; | 410 return flags; |
| 411 } | 411 } |
| 412 | 412 |
| 413 } // namespace extensions | 413 } // namespace extensions |
| OLD | NEW |