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

Unified Diff: extensions/common/extension_messages.cc

Issue 2279013002: [Extensions] Fix ExtensionMsg_Loaded_Params (Closed)
Patch Set: polish Created 4 years, 4 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
« no previous file with comments | « extensions/common/OWNERS ('k') | extensions/common/extension_messages_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/extension_messages.cc
diff --git a/extensions/common/extension_messages.cc b/extensions/common/extension_messages.cc
index 243e4b9502451ec589e48d1d7c651fa1c559601d..f16e875e051382bc9f35d40a7d5a1efb51433e9c 100644
--- a/extensions/common/extension_messages.cc
+++ b/extensions/common/extension_messages.cc
@@ -82,7 +82,7 @@ ExtensionMsg_Loaded_Params::ExtensionMsg_Loaded_Params(
scoped_refptr<Extension> ExtensionMsg_Loaded_Params::ConvertToExtension(
std::string* error) const {
scoped_refptr<Extension> extension =
- Extension::Create(path, location, *manifest, creation_flags, error);
+ Extension::Create(path, location, *manifest, creation_flags, id, error);
asargent_no_longer_on_chrome 2016/08/25 19:02:50 Doesn't the non-id-taking version of Extension::Cr
Devlin 2016/08/25 20:40:56 See CL (or bug) description. :) But this is proba
if (extension.get()) {
const extensions::PermissionsData* permissions_data =
extension->permissions_data();
@@ -374,8 +374,10 @@ void ParamTraits<ExtensionMsg_Loaded_Params>::Write(base::Pickle* m,
WriteParam(m, p.path);
WriteParam(m, *(p.manifest));
WriteParam(m, p.creation_flags);
+ WriteParam(m, p.id);
WriteParam(m, p.active_permissions);
WriteParam(m, p.withheld_permissions);
+ WriteParam(m, p.tab_specific_permissions);
}
bool ParamTraits<ExtensionMsg_Loaded_Params>::Read(const base::Pickle* m,
@@ -384,9 +386,10 @@ bool ParamTraits<ExtensionMsg_Loaded_Params>::Read(const base::Pickle* m,
p->manifest.reset(new base::DictionaryValue());
return ReadParam(m, iter, &p->location) && ReadParam(m, iter, &p->path) &&
ReadParam(m, iter, p->manifest.get()) &&
- ReadParam(m, iter, &p->creation_flags) &&
+ ReadParam(m, iter, &p->creation_flags) && ReadParam(m, iter, &p->id) &&
ReadParam(m, iter, &p->active_permissions) &&
- ReadParam(m, iter, &p->withheld_permissions);
+ ReadParam(m, iter, &p->withheld_permissions) &&
+ ReadParam(m, iter, &p->tab_specific_permissions);
}
void ParamTraits<ExtensionMsg_Loaded_Params>::Log(const param_type& p,
« no previous file with comments | « extensions/common/OWNERS ('k') | extensions/common/extension_messages_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698