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

Unified Diff: chrome/common/extensions/extension_messages.cc

Issue 6766002: Replace bools in extension creation with flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For landing Created 9 years, 9 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/common/extensions/extension_messages.cc
diff --git a/chrome/common/extensions/extension_messages.cc b/chrome/common/extensions/extension_messages.cc
index b9ba244db75ed396f75d7be27030bd126fceba36..88c9492680bf76f177bb5e0cb3d238cc96f7a128 100644
--- a/chrome/common/extensions/extension_messages.cc
+++ b/chrome/common/extensions/extension_messages.cc
@@ -49,17 +49,11 @@ ExtensionMsg_Loaded_Params::ExtensionMsg_Loaded_Params(
scoped_refptr<Extension>
ExtensionMsg_Loaded_Params::ConvertToExtension() const {
- // Extensions that are loaded unpacked won't have a key.
- const bool kRequireKey = false;
-
- // The extension may have been loaded in a way that does not require
- // strict error checks to pass. Do not do strict checks here.
- const bool kStrictErrorChecks = false;
std::string error;
scoped_refptr<Extension> extension(
- Extension::Create(path, location, *manifest, kRequireKey,
- kStrictErrorChecks, &error));
+ Extension::Create(path, location, *manifest, Extension::NO_FLAGS,
+ &error));
if (!extension.get())
LOG(ERROR) << "Error deserializing extension: " << error;
« no previous file with comments | « chrome/common/extensions/extension_manifests_unittest.cc ('k') | chrome/common/extensions/extension_set_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698