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

Unified Diff: chrome/utility/utility_thread.cc

Issue 115595: Have the browser process rewrite manifest.json and theme images that the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | « chrome/test/data/extensions/page_action.crx ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/utility_thread.cc
===================================================================
--- chrome/utility/utility_thread.cc (revision 16736)
+++ chrome/utility/utility_thread.cc (working copy)
@@ -4,6 +4,7 @@
#include "chrome/utility/utility_thread.h"
+#include "base/values.h"
#include "chrome/common/child_process.h"
#include "chrome/common/extensions/extension_unpacker.h"
#include "chrome/common/render_messages.h"
@@ -32,9 +33,13 @@
void UtilityThread::OnUnpackExtension(const FilePath& extension_path) {
ExtensionUnpacker unpacker(extension_path);
- bool success = unpacker.Run();
- Send(new UtilityHostMsg_UnpackExtension_Reply(success,
- unpacker.error_message()));
+ if (unpacker.Run()) {
+ Send(new UtilityHostMsg_UnpackExtension_Succeeded(
+ *unpacker.parsed_manifest(), unpacker.decoded_images()));
+ } else {
+ Send(new UtilityHostMsg_UnpackExtension_Failed(
+ unpacker.error_message()));
+ }
ChildProcess::current()->ReleaseProcess();
}
« no previous file with comments | « chrome/test/data/extensions/page_action.crx ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698