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

Unified Diff: extensions/utility/unpacker.cc

Issue 2881453002: DNR Prototype: With flatbuffers
Patch Set: -- Created 3 years, 6 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/utility/DEPS ('k') | third_party/flatbuffers/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/utility/unpacker.cc
diff --git a/extensions/utility/unpacker.cc b/extensions/utility/unpacker.cc
index 81b8d5a2af349b8c2927e1a50b6b02607fc5bbfd..1ba97eb9bd3d79382c454f9800dec948cda59e6a 100644
--- a/extensions/utility/unpacker.cc
+++ b/extensions/utility/unpacker.cc
@@ -10,7 +10,6 @@
#include <set>
#include <tuple>
#include <utility>
-
#include "base/files/file_enumerator.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
@@ -235,6 +234,13 @@ bool Unpacker::Run() {
return false; // Error was already reported.
}
+ // TODO cleanup files if needed somewhere.
+ if (!file_util::IndexAndPersistRulesetIfNeeded(
+ extension.get(), file_util::GetIndexedRulesetPath(working_dir_),
+ &error)) {
+ return false; // error should be populated by the above call.
+ }
+
return DumpImagesToFile() && DumpMessageCatalogsToFile();
}
« no previous file with comments | « extensions/utility/DEPS ('k') | third_party/flatbuffers/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698